
        /* ОСНОВНЫЕ СТИЛИ (ПК) — ширина уменьшена на 1/4 */
        .cookie-popup {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 285px;            /* Было 380px -> 285px (75% от 380) */
            max-width: calc(100% - 40px);
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
            z-index: 9999;
            font-family: sans-serif;
            border: 1px solid #e0e0e0;
        }
        .cookie-popup.active {
            display: block;
        }
        .cookie-content {
            padding: 20px;
            text-align: left;
        }
        .cookie-content p {
            font-size: 13px;
            line-height: 1.4;
            color: #333;
            margin-bottom: 20px;
        }
        .cookie-buttons {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            flex-wrap: wrap;
        }
        .btn-agree {
            background-color: #808080;
            color: white;
            border: none;
            padding: 8px 18px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.2s;
            white-space: nowrap;
        }
        .btn-agree:hover {
            background-color: #5a5a5a;
        }
        .btn-settings {
            background-color: transparent;
            color: #808080;
            border: 1px solid #808080;
            padding: 8px 18px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .btn-settings:hover {
            background-color: #f0f0f0;
        }

        /* ПЛАНШЕТЫ И МОБИЛЬНЫЕ (до 600px) — блок занимает 75% ширины и прижат к правому краю */
        @media (max-width: 600px) {
            .cookie-popup {
                left: auto;
                right: 10px;
                bottom: 10px;
                width: 75%;          /* 1/4 обрезана слева */
                max-width: none;
                border-radius: 10px;
            }
            .cookie-content {
                padding: 12px;
                display: flex;
                flex-direction: column;
                gap: 8px;
            }
            .cookie-content p {
                font-size: 11px;
                margin-bottom: 0;
                line-height: 1.3;
            }
            .cookie-buttons {
                justify-content: space-between;
                gap: 8px;
                flex-wrap: wrap;
            }
            .btn-agree, .btn-settings {
                padding: 6px 12px;
                font-size: 11px;
                white-space: nowrap;
                flex: 1;
                text-align: center;
            }
        }

        /* ОЧЕНЬ УЗКИЕ ТЕЛЕФОНЫ (до 400px) — кнопки в столбик */
        @media (max-width: 400px) {
            .cookie-content {
                padding: 10px;
            }
            .cookie-content p {
                font-size: 10px;
            }
            .cookie-buttons {
                flex-direction: column;
                gap: 6px;
            }
            .btn-agree, .btn-settings {
                white-space: normal;
                padding: 8px 10px;
                font-size: 11px;
                width: 100%;
            }
        }

        /* СТИЛИ ДЛЯ ОКНА С ИНСТРУКЦИЕЙ (остаётся по центру) */
        .instruction-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            z-index: 10000;
            max-width: 400px;
            text-align: center;
            font-family: sans-serif;
        }
        .instruction-popup .url {
            background: #f0f0f0;
            padding: 10px;
            border-radius: 6px;
            font-family: monospace;
            margin: 15px 0;
            word-break: break-all;
        }
        .instruction-popup button {
            background-color: #808080;
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px;
        }
        .instruction-popup .close {
            position: absolute;
            top: 10px;
            right: 15px;
            cursor: pointer;
            font-size: 20px;
        }
    