/* ========== СТИЛИ ДЛЯ COOKIE БАННЕРА ========== */
.cookie-supernova *,
.cookie-supernova *::before,
.cookie-supernova *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cookie-supernova {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    pointer-events: none;
}

.cookie-banner-modern {
    pointer-events: auto;
    margin: 20px 24px 24px 24px;
    background: rgba(18, 25, 45, 0.95);
    backdrop-filter: blur(16px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.cookie-banner-modern.hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

.banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 1.8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.banner-message {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 2;
    min-width: 240px;
}

.cookie-icon-glow {
    font-size: 2.6rem;
    filter: drop-shadow(0 0 6px rgba(0, 245, 255, 0.6));
}

.text-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.text-content p {
    font-size: 0.9rem;
    color: #cfdfed;
    line-height: 1.4;
}

.text-content a {
    color: #6DC6FF;
    text-decoration: none;
    border-bottom: 1px dashed rgba(109, 198, 255, 0.6);
}

.text-content a:hover {
    color: #b8e2ff;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.cookie-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.btn-primary-glow {
    background: linear-gradient(105deg, #2A6F9C, #1E4A76);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    background: linear-gradient(105deg, #3288bb, #235c8c);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ECF9FF;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-outline-light {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.7);
    color: #FFCECE;
}

.btn-outline-light:hover {
    background: rgba(239, 68, 68, 0.25);
    color: white;
}

/* Модальное окно */
.cookie-modal-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 16, 28, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s, opacity 0.25s ease;
    pointer-events: none;
}

.cookie-modal-modern.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.modal-card-modern {
    background: rgba(20, 28, 40, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 48px;
    max-width: 520px;
    width: 90%;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.cookie-modal-modern.active .modal-card-modern {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

.modal-header span {
    font-size: 2.2rem;
}

.modal-header h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: white;
}

.modal-sub {
    color: #9cb4d0;
    font-size: 0.85rem;
    margin-bottom: 1.8rem;
    border-left: 2px solid #2f8bc0;
    padding-left: 0.8rem;
}

.cookie-option-modern {
    margin: 1.3rem 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 0.7rem 1rem;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #eef4ff;
}

.option-label input {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    accent-color: #2f9bdf;
}

.option-title {
    font-size: 1rem;
}

.option-desc {
    font-size: 0.75rem;
    color: #99b8da;
    margin-top: 0.3rem;
    margin-left: 2.2rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-save-btn {
    background: linear-gradient(100deg, #2580b5, #1c577e);
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.modal-save-btn:hover {
    transform: scale(0.98);
}

.modal-cancel-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    color: #cdddee;
    cursor: pointer;
}

.modal-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 700px) {
    .banner-inner {
        flex-direction: column;
        text-align: center;
    }
    .banner-message {
        flex-direction: column;
        text-align: center;
    }
    .button-group {
        justify-content: center;
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner-modern:not(.hidden) {
    animation: floatIn 0.5s ease-out;
}
/* Модальное окно для политики cookie */
.cookie-policy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s, opacity 0.25s ease;
}

.cookie-policy-modal.active {
    visibility: visible;
    opacity: 1;
}

.cookie-policy-modal-content {
    background: rgba(20, 28, 40, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
}

.cookie-policy-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.cookie-policy-header span {
    font-size: 1.8rem;
}

.cookie-policy-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.cookie-policy-close {
    position: absolute;
    right: 1.2rem;
    top: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: 0.2s;
}

.cookie-policy-close:hover {
    color: white;
}

.cookie-policy-body {
    padding: 1.2rem 1.5rem;
    color: #cfdfed;
    line-height: 1.5;
}

.cookie-policy-body h4 {
    color: white;
    margin: 1rem 0 0.5rem 0;
}

.cookie-policy-body ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.cookie-policy-body li {
    margin: 0.3rem 0;
}

.cookie-policy-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.cookie-policy-ok-btn {
    background: linear-gradient(105deg, #2A6F9C, #1E4A76);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.cookie-policy-ok-btn:hover {
    transform: scale(0.98);
}