/* Cookie Consent — единый стиль для всех страниц сайта */
:root {
    --cc-primary: #c2853c;
    --cc-primary-dark: #a06b2a;
    --cc-bg: #2c2018;
}

.cc-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 1180px;
    margin: 0 auto;
    background: rgba(44, 32, 24, 0.97);
    color: #fff;
    padding: 22px 24px;
    border-radius: 14px;
    z-index: 100000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transform: translateY(160%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}

.cc-banner.cc-show {
    transform: translateY(0);
    opacity: 1;
}

.cc-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cc-text {
    flex: 1 1 420px;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

.cc-text a {
    color: var(--cc-primary);
    text-decoration: underline;
}

.cc-text a:hover {
    color: #d8b889;
}

.cc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cc-btn {
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.cc-btn-accept {
    background: var(--cc-primary);
    color: #fff;
}

.cc-btn-accept:hover {
    background: var(--cc-primary-dark);
    transform: translateY(-1px);
}

.cc-btn-necessary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cc-btn-necessary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cc-btn-settings {
    background: transparent;
    color: #fff;
    text-decoration: underline;
    padding: 11px 8px;
}

.cc-btn-settings:hover {
    color: var(--cc-primary);
}

/* Модальное окно настроек */
.cc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cc-modal-overlay.cc-show {
    display: flex;
    opacity: 1;
}

.cc-modal {
    background: #fff;
    color: #2D2D2A;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 32px;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cc-modal h2 {
    font-size: 22px;
    margin: 0 0 8px;
    color: var(--cc-bg);
}

.cc-modal-intro {
    font-size: 14px;
    color: #6D6D6D;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cc-category {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

.cc-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cc-category-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--cc-bg);
}

.cc-category-desc {
    font-size: 13px;
    color: #6D6D6D;
    margin-top: 6px;
    line-height: 1.5;
}

/* Переключатель */
.cc-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}

.cc-slider:before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.cc-switch input:checked + .cc-slider {
    background: var(--cc-primary);
}

.cc-switch input:checked + .cc-slider:before {
    transform: translateX(20px);
}

.cc-switch input:disabled + .cc-slider {
    background: var(--cc-primary);
    opacity: 0.55;
    cursor: not-allowed;
}

.cc-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.cc-modal-actions .cc-btn {
    flex: 1 1 auto;
}

.cc-btn-save {
    background: var(--cc-bg);
    color: #fff;
}

.cc-btn-save:hover {
    background: #1d4a63;
}

@media (max-width: 768px) {
    .cc-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cc-actions {
        justify-content: center;
    }

    .cc-actions .cc-btn-accept,
    .cc-actions .cc-btn-necessary {
        flex: 1;
    }

    .cc-modal {
        padding: 24px 20px;
    }
}
