/* Плашка согласия на cookie и персональные данные — doc-gold */
html.cookie-consent-active {
    overflow: hidden;
}

html.cookie-consent-active body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(3, 3, 3, 0.72);
    pointer-events: auto;
}

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    font-family: 'Manrope', 'Inter', system-ui, sans-serif;
    animation: cookie-consent-in 0.35s ease-out;
}

@keyframes cookie-consent-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent__panel {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 22px 22px;
    border-radius: 16px;
    border: 1px solid rgba(201, 162, 39, 0.45);
    background: linear-gradient(165deg, rgba(18, 16, 10, 0.98) 0%, rgba(5, 5, 5, 0.98) 100%);
    box-shadow:
        0 -8px 40px rgba(0, 0, 0, 0.5),
        0 0 32px rgba(212, 175, 55, 0.12);
}

.cookie-consent__title {
    margin: 0 0 10px;
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f5e6b8;
    line-height: 1.25;
}

.cookie-consent__text {
    margin: 0 0 16px;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #c8c0a8;
}

.cookie-consent__text a {
    color: #e8c96a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent__text a:hover {
    color: #f5e6b8;
}

.cookie-consent__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-consent__accept {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: #0a0a0a;
    cursor: pointer;
    background: linear-gradient(135deg, #e8c96a 0%, #c9a227 55%, #a8841a 100%);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-consent__accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(212, 175, 55, 0.45);
}

.cookie-consent__accept:focus-visible {
    outline: 2px solid #f5e6b8;
    outline-offset: 3px;
}

.cookie-consent__accept:active {
    transform: translateY(0);
}

@media (min-width: 560px) {
    .cookie-consent__panel {
        padding: 22px 26px 24px;
    }

    .cookie-consent__title {
        font-size: 1.125rem;
    }

    .cookie-consent__text {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        animation: none;
    }

    .cookie-consent__accept {
        transition: none;
    }
}
