* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body, html {
            width: 100%;
            height: 100%;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: black;
            overflow: hidden; /* Убираем прокрутку у body */
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .modal {
            width: 98vw;
            height: 99vh;
            background-color: white;
            border-radius: 16px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: fadeIn 0.3s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }
        .header {
            background-color: #373737;
            color: white;
            padding: 20px 24px;
            text-align: center;
            border-bottom: 4px solid #fdad1a;
            flex-shrink: 0;
        }

        .header h1 {
            font-size: clamp(1.5rem, 5vw, 2.2rem);
            margin-bottom: 8px;
            font-weight: 600;
            letter-spacing: 0.5px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        }

        .header p {
            font-size: clamp(1rem, 3vw, 1.2rem);
            opacity: 0.95;
            margin: 0 auto;
            line-height: 1.5;
        }

        .header strong {
            background-color: #f48e20;
            color: #333;
            padding: 4px 12px;
            border-radius: 50px;
            font-weight: 700;
            margin-top: 10px;
            display: inline-block;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }

        /* Контейнер для PDF */
        .pdf-container {
            flex: 1 1 auto;
            width: 100%;
            background-color: #2d2d2d; /* Темный фон для лучшего контраста страниц */
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden; /* Убираем прокрутку у контейнера */
            position: relative;
        }

        /* Кастомный iframe для постраничного отображения PDF */
        .pdf-viewer {
            width: 100%;
            height: 100%;
            border: none;
            background-color: white;
        }

        /* Альтернативный вариант: object (тоже работает) */
        /*
        .pdf-object {
            width: 100%;
            height: 100%;
            border: none;
        }
        */

        /* Небольшая подсказка для мобильных */
        .mobile-hint {
            display: none;
            position: absolute;
            bottom: 10px;
            left: 0;
            right: 0;
            text-align: center;
            color: #aaa;
            font-size: 12px;
            background: rgba(0,0,0,0.5);
            padding: 5px;
            border-radius: 20px;
            width: fit-content;
            margin: 0 auto;
            pointer-events: none;
        }

        @media (max-width: 768px) {
            .modal {
                width: 100vw;
                height: 100vh;
                border-radius: 0;
            }
            .mobile-hint {
                display: block;
            }
        }