:root{
    --cc-h: 0px;
}

body.cc-visible .main.sect,
body.cc-visible .steps.sect {
    padding-bottom: calc(var(--cc-h) + env(safe-area-inset-bottom));
}

.cookie-consent {
    background: rgba(1, 24, 44, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.28);

    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2147483647;

    /* страховка для мобилок */
    transform: translate3d(0,0,0);
    will-change: transform;

    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));

    animation: ccSlideUp .2s ease-in-out;
}

@keyframes ccSlideUp {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.cookie-consent-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;

    max-width: 90rem;
    margin: 0 auto;
}

.cookie-consent-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    line-height: 1.35;
    margin: 0;
    flex: 1 1 420px;
    min-width: 240px;
}

.cookie-consent-link {
    color: #AEFF01;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity .2s;
}
.cookie-consent-link:hover { opacity: .8; }

.cookie-consent-close {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    padding: 0 6px;
}
.cookie-consent-close:hover { opacity: .7; }

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.cookie-consent .cookie-consent-btn.button {
    font-size: 12px !important;
    padding: 12px 18px !important;
    border-radius: 60px !important;
    line-height: 1.1 !important;
}

/* стрелка меньше */
.cookie-consent .cookie-consent-btn.button img {
    width: 14px;
    height: auto;
    margin-left: 10px !important;
}

.cookie-consent .cookie-consent-decline.button {
    background: rgba(255, 255, 255, 0.55) !important;
    color: #212121 !important;
    border: none !important;
}
.cookie-consent .cookie-consent-decline.button:hover { opacity: .85; }

@media (max-width: 640px) {
    .cookie-consent {
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .cookie-consent-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding-right: 28px;
    }

    .cookie-consent-close {
        position: absolute;
        right: 8px;
        top: 6px;
        padding: 0;
        font-size: 22px;
    }

    .cookie-consent-text {
        min-width: 0;
        flex: none;
        font-size: 11px;
        line-height: 1.3;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .cookie-consent .cookie-consent-btn.button {
        width: 100%;
        padding: 11px 12px !important;
    }

    .cookie-consent .cookie-consent-btn.button img {
        margin-left: 8px !important;
    }
}
