:root {
    --cookie-gradient: linear-gradient(143deg, rgb(84, 194, 208) 0%, rgb(168, 188, 255) 50%, rgb(228, 129, 217) 100%);
    
    --cookie-accent: rgb(228, 129, 217);
}


/* --- Стили для уведомления о Cookie --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 20px 25px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cookie-banner-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.6;
    color: #4a4a4a;
}

.cookie-banner-text a {
    color: #333333;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner-text a:hover {
    text-decoration: none;
}

.cookie-banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 380px;
    flex-shrink: 0;
}

.cookie-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    outline: none;
    box-sizing: border-box;
}

.cookie-btn-primary {
    background-color: var(--blue);
    color: #ffffff;
    border-color: var(--blue);
}

.cookie-btn-primary:hover {
    background-color: var(--blue);
    border-color: var(--blue);
}

/* Контурная кнопка настроек */
.cookie-btn-outline {
    background-color: transparent;
    color: #333333;
    border-color: #333333;
}

.cookie-btn-outline:hover {
    background-color: #f5f5f5;
}

@media (max-width: 991px) {
    .cookie-banner-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .cookie-banner-buttons {
        max-width: 100%;
    }
}









.cookie-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
}

.cookie-modal-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.cookie-modal-content {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 850px;
    height: 80%;
    max-height: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: cookieModalFade 0.3s ease;
}

@keyframes cookieModalFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookie-modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    font-size: 28px; cursor: pointer; color: #666;
    line-height: 1; z-index: 2;
}

.cookie-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e5e5e5;
}
.cookie-modal-header h3 {
    margin: 0; font-size: 18px; color: #333; font-weight: bold;
}

.cookie-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.cookie-modal-tabs {
    width: 250px;
    background: #f7f7f7;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cookie-tab-btn {
    background: none; border: none;
    text-align: left;
    padding: 15px 20px;
    font-size: 13px; font-weight: 600; color: #555;
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    outline: none;
}

.cookie-tab-btn:hover {
    background: #eeeeee;
}

.cookie-tab-btn.active {
    background: #ffffff;
    color: var(--blue);
    border-left-color: var(--blue);
}

.cookie-modal-panes {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.cookie-tab-pane {
    display: none;
}

.cookie-tab-pane.active {
    display: block;
}

.cookie-tab-pane h4 {
    margin-top: 0; margin-bottom: 15px;
    font-size: 16px; color: #333;
}

.cookie-tab-pane p {
    font-size: 13px; line-height: 1.6; color: #555; margin: 0;
}

.pane-header-with-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.pane-header-with-toggle h4 { margin: 0; }

.always-active {
    font-size: 13px; font-weight: bold; color: #2e7d32;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px; height: 24px;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .3s; border-radius: 24px;
}
.cookie-slider:before {
    position: absolute; content: "";
    height: 16px; width: 16px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .3s; border-radius: 50%;
}
.cookie-switch input:checked + .cookie-slider { background-color: var(--blue); }
.cookie-switch input:checked + .cookie-slider:before { transform: translateX(20px); }

.cookie-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-modal-btn {
    padding: 10px 20px;
    font-size: 13px; font-weight: 600;
    border: 1px solid var(--blue);
    transition: all 0.2s ease;
}

#cookie-save-settings {
    background: var(--blue); color: #fff;
}
#cookie-save-settings:hover { background: var(--blue); border-color: var(--blue);}

.cookie-modal-btn.btn-outline {
    background: transparent; color: #333; border-color: #333;
}
.cookie-modal-btn.btn-outline:hover { background: #f5f5f5; }

.cookie-modal-btn.btn-solid {
    background: var(--blue); color: #fff; border-color: var(--blue);
}
.cookie-modal-btn.btn-solid:hover { background: var(--blue); border-color: var(--blue); }

@media (max-width: 768px) {
    .cookie-modal-content { height: 90%; max-height: none; }
    .cookie-modal-body { flex-direction: column; }
    .cookie-modal-tabs {
        width: 100%; height: auto;
        flex-direction: row;
        border-right: none; border-bottom: 1px solid #e5e5e5;
        overflow-x: auto; white-space: nowrap;
    }
    .cookie-tab-btn {
        padding: 12px 15px; border-left: none;
        border-bottom: 3px solid transparent;
    }
    .cookie-tab-btn.active {
        border-bottom-color: var(--blue);
    }
    .cookie-modal-footer {
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }
    .cookie-modal-btn { width: 100%; text-align: center; }
}







.cookie-settings-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background-color: var(--blue);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.2s ease;
    outline: none;
    padding: 10px;
}

.cookie-settings-trigger svg {
    width: 24px;
    height: 24px;
    transition: transform 0.6s ease;
}

.cookie-settings-trigger:hover {
    transform: scale(1.1);
    background-color: var(--blue);
}

.cookie-settings-trigger:hover svg {
    transform: rotate(45deg); 
} 

@media (max-width: 768px) {
    .cookie-settings-trigger {
        bottom: 15px;
        left: 15px;
        width: 38px;
        height: 38px;
        padding: 8px;
    }
    .cookie-settings-trigger svg {
        width: 20px;
        height: 20px;
    }
}



.cookie-btn-primary {
    background: var(--cookie-gradient);
    border: none !important;
    color: #ffffff;
}

.cookie-btn-primary:hover {
    background: linear-gradient(143deg, rgb(74, 184, 198) 0%, rgb(158, 178, 245) 50%, rgb(218, 119, 207) 100%); /* Чуть темнее при наведении */
    border: none !important;
}

.cookie-settings-trigger {
    background: var(--cookie-gradient);
    border: none !important;
}

.cookie-switch input:checked + .cookie-slider {
    background: var(--cookie-gradient);
}

.cookie-tab-btn.active {
    color: var(--cookie-accent) !important;
    border-left-color: var(--cookie-accent) !important;
}

#cookie-save-settings,
.cookie-modal-btn.btn-solid {
    background: var(--cookie-gradient);
    border: none !important;
    color: #ffffff;
}

#cookie-save-settings:hover,
.cookie-modal-btn.btn-solid:hover {
    background: linear-gradient(143deg, rgb(74, 184, 198) 0%, rgb(158, 178, 245) 50%, rgb(218, 119, 207) 100%);
    border: none !important;
}

.cookie-banner-text a {
    color: var(--cookie-accent) !important;
}

.cookie-btn-outline:hover {
    border-color: var(--cookie-accent) !important;
    color: var(--cookie-accent) !important;
}
.cookie-modal-btn.btn-outline:hover {
    border-color: var(--cookie-accent) !important;
    color: var(--cookie-accent) !important;
}