:root {
            --primary: #ff4757;
            --dark: #1a1a1a;
            --light: #f8f9fa;
            --gray: #6c757d;
            --bg-color: #0f0f0f;
            --card-bg: rgba(26, 26, 26, 0.9);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', sans-serif;
            background: var(--bg-color) url('https://winterpe.online/images/background.png') no-repeat center/cover fixed;
            color: var(--light);
            line-height: 1.6;
        }

        /* Стилизация скроллбара */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(26, 26, 26, 0.5);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #ff6b81;
        }

        * {
            scrollbar-width: thin;
            scrollbar-color: var(--primary) rgba(26, 26, 26, 0.5);
        }

        /* Шапка */
        .header {
            background: rgba(26, 26, 26, 0.9);
            padding: 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            position: relative;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.2rem;
            font-weight: bold;
            color: var(--primary);
            text-decoration: none;
        }

        .logo img {
            height: 30px;
        }

        .nav-links {
            display: flex;
            gap: 1rem;
            margin-top: 0.5rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .nav-links a {
            color: var(--light);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.9rem;
            padding: 0.3rem 0;
            transition: color 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--primary);
        }

        .nav-links .active {
            color: var(--primary);
        }

        .btn {
            display: inline-block;
            background: var(--primary);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            font-size: 0.9rem;
            margin-top: 0.5rem;
            transition: all 0.3s ease;
        }

        .btn:hover {
            background: #ff6b81;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
        }

        /* Основной контент */
        .main {
            max-width: 1200px;
            margin: 1rem auto;
            padding: 0 1rem;
        }

        .page-title {
            text-align: center;
            margin-bottom: 1rem;
            font-size: 1.8rem;
            color: var(--primary);
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .page-description {
            text-align: center;
            margin-bottom: 2rem;
            color: var(--gray);
            font-size: 0.95rem;
        }

        /* Секции правил */
        .rules-section {
            background: var(--card-bg);
            border-radius: 8px;
            padding: 0;
            margin-bottom: 1.5rem;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }

        .rules-section:hover {
            box-shadow: 0 6px 12px rgba(0,0,0,0.2);
        }

        .rules-section h2 {
            font-size: 1.2rem;
            padding: 1rem;
            margin: 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            background: rgba(51, 51, 51, 0.5);
            transition: background 0.3s ease;
        }

        .rules-section h2:hover {
            background: rgba(51, 51, 51, 0.7);
        }

        .rules-section h2 .arrow {
            font-size: 1rem;
            transition: transform 0.3s ease;
            color: var(--primary);
        }

        .rules-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease, padding 0.3s ease;
        }

        .rules-content.visible {
            max-height: 2000px; /* Достаточно большое значение для анимации */
            padding: 1rem;
        }

        .rules-content ul {
            list-style: none;
            padding-left: 0;
        }

        .rules-content ul li {
            margin-bottom: 0.8rem;
            font-size: 0.95rem;
            padding-left: 1.5rem;
            position: relative;
            line-height: 1.5;
        }

        .rules-content ul li:before {
            content: "•";
            color: var(--primary);
            position: absolute;
            left: 0;
        }

        .rules-content p {
            margin-bottom: 1rem;
            line-height: 1.6;
        }

        .rules-content a {
            color: var(--primary);
            text-decoration: none;
        }

        .rules-content a:hover {
            text-decoration: underline;
        }

        /* Футер */
        .footer {
            background: rgba(26, 26, 26, 0.9);
            padding: 1.5rem 0;
            margin-top: 2rem;
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1rem;
            width: 100%;
        }

        .footer-link {
            color: var(--gray);
            text-decoration: none;
            font-size: 0.8rem;
            transition: color 0.3s ease;
        }

        .footer-link:hover {
            color: var(--primary);
        }

        .copyright {
            text-align: center;
            color: var(--gray);
            font-size: 0.8rem;
            grid-column: 1 / -1;
        }

        .payment-methods {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .payment-methods img {
            width: 40px;
            height: 25px;
            object-fit: contain;
        }

        .back-to-top {
            display: block;
            width: 200px;
            margin: 2rem auto;
            text-align: center;
        }

        /* Анимации */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .rules-section {
            animation: fadeIn 0.5s ease forwards;
            opacity: 0;
        }

        .rules-section:nth-child(1) { animation-delay: 0.1s; }
        .rules-section:nth-child(2) { animation-delay: 0.2s; }
        .rules-section:nth-child(3) { animation-delay: 0.3s; }
        .rules-section:nth-child(4) { animation-delay: 0.4s; }

        /* Адаптация под мобильные устройства */
        @media (max-width: 768px) {
            .nav-container {
                flex-direction: column;
                text-align: center;
            }

            .nav-links {
                margin-top: 1rem;
            }

            .btn {
                margin-top: 1rem;
            }

            .main {
                padding: 0 0.5rem;
            }

            .page-title {
                font-size: 1.5rem;
            }

            .rules-section h2 {
                font-size: 1.1rem;
                padding: 0.8rem;
            }

            .rules-content ul li {
                font-size: 0.9rem;
            }

            .footer-container {
                grid-template-columns: 1fr;
                text-align: center;
            }
        }