/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: none;
}

.cookie-banner.show {
    display: block;
    transform: translateY(0);
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner__text h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.cookie-banner__text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.cookie-banner__text a {
    color: #667eea;
    text-decoration: underline;
}

.cookie-banner__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn--accept {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.cookie-btn--accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.cookie-btn--reject {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.cookie-btn--reject:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-btn--settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn--settings:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ============================================
   COOKIE MODAL
   ============================================ */

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cookie-modal__dialog {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eef2f7;
}

.cookie-modal__header h2 {
    margin: 0;
    font-size: 22px;
    color: #1a1a2e;
}

.cookie-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s;
}

.cookie-modal__close:hover {
    background: #f0f2f5;
    color: #333;
}

.cookie-modal__body {
    padding: 20px 25px;
}

.cookie-modal__intro {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eef2f7;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category__info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #1a1a2e;
}

.cookie-category__info p {
    margin: 0;
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

/* Переключатель */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 50px;
    transition: 0.3s;
}

.cookie-switch__slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-switch input:checked + .cookie-switch__slider {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.cookie-switch input:checked + .cookie-switch__slider::before {
    transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-switch__slider {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-modal__footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px 25px;
    border-top: 1px solid #eef2f7;
    flex-wrap: wrap;
}

/* ============================================
   АДАПТИВ
   ============================================ */

@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-modal__footer {
        flex-direction: column;
    }

    .cookie-modal__footer .cookie-btn {
        width: 100%;
    }

    .cookie-category {
        flex-direction: row;
        align-items: center;
    }
}