/* Cookie Overlay - затемнение всей страницы */
    .cookie-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 99999;
        display: flex;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(5px);
    }

    /* Cookie Banner */
    .cookie-banner {
        background: #1f2937;
        color: white;
        padding: 30px;
        border-radius: 12px;
        max-width: 600px;
        width: 90%;
        margin: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        animation: slideIn 0.3s ease-out;
    }

    @keyframes slideIn {
        from {
            transform: translateY(-30px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .cookie-content {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .cookie-text {
        font-size: 16px;
        line-height: 1.6;
        text-align: center;
    }

    .cookie-text p {
        margin: 0 0 15px 0;
    }

    .cookie-text p:last-child {
        margin-bottom: 0;
    }

    .cookie-policy-link {
        color: #60a5fa;
        text-decoration: none;
        font-weight: 500;
    }

    .cookie-policy-link:hover {
        text-decoration: underline;
    }

    .cookie-buttons {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cookie-btn {
        padding: 12px 24px;
        border-radius: 8px;
        border: none;
        cursor: pointer;
        font-weight: 500;
        font-size: 15px;
        transition: all 0.2s;
        min-width: 140px;
    }

    .cookie-reject {
        background: #4b5563;
        color: white;
    }

    .cookie-reject:hover {
        background: #6b7280;
    }

    .cookie-customize {
        background: #374151;
        color: white;
        border: 1px solid #4b5563;
    }

    .cookie-customize:hover {
        background: #4b5563;
    }

    .cookie-accept {
        background: #3b82f6;
        color: white;
    }

    .cookie-accept:hover {
        background: #2563eb;
    }

    /* Стили для модального окна политики Cookie */
    .cookie-policy-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.8);
        z-index: 100001;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        backdrop-filter: blur(5px);
    }

    .cookie-policy-content {
        background: white;
        border-radius: 16px;
        width: 100%;
        max-width: 800px;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 25px 80px rgba(0,0,0,0.4);
        display: flex;
        flex-direction: column;
    }

    .cookie-policy-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 24px 32px;
        border-bottom: 2px solid #e5e7eb;
        background: #f9fafb;
        border-radius: 16px 16px 0 0;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .cookie-policy-header h2 {
        margin: 0;
        font-size: 24px;
        color: #111827;
        font-weight: 700;
    }

    .cookie-policy-close {
        background: none;
        border: none;
        font-size: 32px;
        cursor: pointer;
        color: #6b7280;
        line-height: 1;
        padding: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: all 0.2s;
    }

    .cookie-policy-close:hover {
        background: #e5e7eb;
        color: #111827;
    }

    .cookie-policy-body {
        padding: 32px;
        flex: 1;
        overflow-y: auto;
    }

    .cookie-policy-section {
        margin-bottom: 32px;
    }

    .cookie-policy-section:last-child {
        margin-bottom: 0;
    }

    .cookie-policy-section h3 {
        color: #1f2937;
        font-size: 20px;
        font-weight: 600;
        margin: 0 0 16px 0;
        padding-bottom: 8px;
        border-bottom: 2px solid #3b82f6;
        display: inline-block;
    }

    .cookie-policy-section h4 {
        color: #374151;
        font-size: 16px;
        font-weight: 600;
        margin: 20px 0 12px 0;
    }

    .cookie-policy-section p {
        color: #4b5563;
        line-height: 1.7;
        margin: 0 0 12px 0;
    }

    .cookie-type {
        background: #f9fafb;
        border-left: 4px solid #3b82f6;
        padding: 20px;
        margin: 16px 0;
        border-radius: 0 8px 8px 0;
    }

    .cookie-type h4 {
        margin-top: 0;
        color: #1f2937;
    }

    .cookie-note {
        font-size: 14px;
        color: #6b7280;
        font-style: italic;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e5e7eb;
    }

    .cookie-table-wrapper {
        overflow-x: auto;
        margin-top: 16px;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
    }

    .cookie-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .cookie-table th {
        background: #f3f4f6;
        padding: 12px 16px;
        text-align: left;
        font-weight: 600;
        color: #374151;
        border-bottom: 2px solid #e5e7eb;
    }

    .cookie-table td {
        padding: 12px 16px;
        border-bottom: 1px solid #e5e7eb;
        color: #4b5563;
    }

    .cookie-table tr:last-child td {
        border-bottom: none;
    }

    .cookie-table tr:hover {
        background: #f9fafb;
    }

    .cookie-table code {
        background: #e5e7eb;
        padding: 2px 6px;
        border-radius: 4px;
        font-family: monospace;
        font-size: 13px;
    }

    .badge {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
    }

    .badge.necessary {
        background: #fee2e2;
        color: #991b1b;
    }

    .badge.analytics {
        background: #dbeafe;
        color: #1e40af;
    }

    .badge.functional {
        background: #d1fae5;
        color: #065f46;
    }

    .cookie-warning {
        background: #fef3c7;
        border: 1px solid #f59e0b;
        border-radius: 8px;
        padding: 16px;
        margin-top: 20px;
        color: #92400e;
    }

    .cookie-policy-footer {
        padding: 20px 32px;
        border-top: 1px solid #e5e7eb;
        text-align: center;
        background: #f9fafb;
        border-radius: 0 0 16px 16px;
        position: sticky;
        bottom: 0;
    }

    /* Стили для модального окна настроек Cookie */
    .cookie-settings-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 100000;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        backdrop-filter: blur(5px);
    }

    .cookie-settings-content {
        background: white;
        border-radius: 12px;
        width: 100%;
        max-width: 500px;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }

    .cookie-settings-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        border-bottom: 1px solid #e5e7eb;
    }

    .cookie-settings-header h3 {
        margin: 0;
        font-size: 20px;
        color: #111827;
    }

    .cookie-settings-close {
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #6b7280;
        line-height: 1;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
    }

    .cookie-settings-close:hover {
        background: #f3f4f6;
    }

    .cookie-settings-body {
        padding: 24px;
    }

    .cookie-setting {
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #e5e7eb;
    }

    .cookie-setting:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .cookie-setting-label {
        display: flex;
        gap: 12px;
        cursor: pointer;
        align-items: flex-start;
    }

    .cookie-setting-label input[type="checkbox"] {
        margin-top: 4px;
    }

    .cookie-setting-title {
        font-weight: 600;
        color: #111827;
        display: block;
        margin-bottom: 4px;
    }

    .cookie-setting-desc {
        font-size: 14px;
        color: #6b7280;
        line-height: 1.4;
        display: block;
    }

    .cookie-settings-footer {
        padding: 20px 24px;
        border-top: 1px solid #e5e7eb;
        text-align: right;
    }

    .cookie-save {
        background: #3b82f6;
        color: white;
        padding: 10px 24px;
        font-size: 15px;
    }

    .cookie-save:hover {
        background: #2563eb;
    }

    @media (max-width: 640px) {
        .cookie-banner {
            padding: 20px;
        }

        .cookie-buttons {
            flex-direction: column;
        }

        .cookie-btn {
            width: 100%;
        }

        .cookie-settings-content,
        .cookie-policy-content {
            margin: 10px;
            max-height: 95vh;
        }

        .cookie-policy-header,
        .cookie-policy-footer {
            padding: 16px 20px;
        }

        .cookie-policy-body {
            padding: 20px;
        }

        .cookie-policy-header h2 {
            font-size: 20px;
        }

        .cookie-table {
            font-size: 12px;
        }

        .cookie-table th,
        .cookie-table td {
            padding: 8px 12px;
        }
    }

/* Дополнительные стили для управления cookie в футере */
    .cookie-control-item {
        margin-top: 8px;
    }

    .cookie-control-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #3b82f6 !important;
        font-weight: 500;
        transition: all 0.2s;
    }

    .cookie-control-link:hover {
        color: #2563eb !important;
    }

    .cookie-icon {
        font-size: 16px;
    }

    .cookie-management-hint {
        margin-top: 12px;
        font-size: 14px;
    }

    .footer-cookie-link {
        color: #9ca3af;
        text-decoration: underline;
        transition: color 0.2s;
    }

    .footer-cookie-link:hover {
        color: #3b82f6;
    }
