/* Cookie consent banner — 152-ФЗ compliant */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner__text {
    flex: 1 1 320px;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-banner__text a {
    color: #d4af37;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
    color: #ffd169;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.cookie-banner__button {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-banner__button--accept {
    background: #d4af37;
    color: #1a1a1a;
}

.cookie-banner__button--accept:hover {
    background: #ffd169;
}

.cookie-banner__button--reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.cookie-banner__button--reject:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

@media (max-width: 640px) {
    .cookie-banner {
        padding: 1rem;
    }
    .cookie-banner__container {
        gap: 1rem;
    }
    .cookie-banner__actions {
        width: 100%;
    }
    .cookie-banner__button {
        flex: 1;
    }
}

/* Consent checkbox in forms */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 0.75rem 0 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(60, 60, 60, 0.9);
}

.form-consent input[type="checkbox"] {
    margin-top: 0.1875rem;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #d4af37;
}

.form-consent label {
    cursor: pointer;
    user-select: none;
}

.form-consent a {
    color: #b8941f;
    text-decoration: underline;
}

.form-consent a:hover {
    color: #d4af37;
}

.form-consent.has-error label {
    color: #c0392b;
}
