/* Cookie consent — 152-ФЗ, Ritm GSM */
.alt-cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100002;
    padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(110%);
    transition: opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                visibility 0.35s;
}

.alt-cookie-consent.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.alt-cookie-consent__panel {
    max-width: min(1456px, calc(100vw - 80px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 22px;
    border-radius: 16px 16px 12px 12px;
    background: #fff;
    border: 1px solid #e8edf2;
    box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.06);
    font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
}

.alt-cookie-consent__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff1f1 0%, #f7dada 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #950000;
}

.alt-cookie-consent__icon svg {
    width: 24px;
    height: 24px;
}

.alt-cookie-consent__body {
    flex: 1;
    min-width: 0;
}

.alt-cookie-consent__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.alt-cookie-consent__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

.alt-cookie-consent__text a {
    color: #950000;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 106, 0, 0.25);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.alt-cookie-consent__text a:hover,
.alt-cookie-consent__text a:focus {
    color: #6f0000;
    border-bottom-color: rgba(230, 95, 0, 0.5);
}

.alt-cookie-consent__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.alt-cookie-consent__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.alt-cookie-consent__btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.25);
}

.alt-cookie-consent__btn--primary {
    background: linear-gradient(180deg, #ba0000 0%, #950000 100%);
    color: #fff;
    box-shadow: 0 2px 0 rgba(120, 40, 0, 0.25);
}

.alt-cookie-consent__btn--primary:hover {
    background: linear-gradient(180deg, #cf1b1b 0%, #a30000 100%);
    transform: translateY(-1px);
}

.alt-cookie-consent__btn--ghost {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.alt-cookie-consent__btn--ghost:hover {
    background: #fff;
    border-color: #cbd5e1;
    color: #0f172a;
}

body.alt-cookie-consent-open {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

body.alt-cookie-consent-open .custom-live-chat {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
}

.custom-live-chat {
    transition: bottom 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

@media screen and (max-width: 768px) {
    .alt-cookie-consent {
        padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .alt-cookie-consent__panel {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
        border-radius: 14px 14px 10px 10px;
    }

    .alt-cookie-consent__icon {
        display: none;
    }

    .alt-cookie-consent__actions {
        flex-direction: column;
        width: 100%;
    }

    .alt-cookie-consent__btn {
        width: 100%;
        min-height: 44px;
        font-size: 14px;
    }

    body.alt-cookie-consent-open {
        padding-bottom: calc(152px + env(safe-area-inset-bottom, 0px));
    }

    body.alt-cookie-consent-open .custom-live-chat {
        bottom: calc(152px + env(safe-area-inset-bottom, 0px)) !important;
    }
}
