/* Баннер и настройки cookies (152-ФЗ) */
.cookie-consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1100;
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    color: #2d2d2d;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(45, 45, 45, 0.18);
    padding: 18px 20px;
}

.cookie-consent-banner[hidden],
.cookie-consent-panel[hidden] {
    display: none !important;
}

.cookie-consent-banner__text {
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #3a3a3a;
}

.cookie-consent-banner__text a {
    color: #585e92;
    text-decoration: underline;
}

.cookie-consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent-btn--primary {
    background: #585e92;
    color: #fff;
}

.cookie-consent-btn--primary:hover {
    background: #4a5080;
}

.cookie-consent-btn--ghost {
    background: transparent;
    color: #585e92;
    border: 1.5px solid #585e92;
}

.cookie-consent-btn--ghost:hover {
    background: #f4f5fa;
}

.cookie-consent-btn--link {
    background: transparent;
    color: #5a5a5a;
    padding-left: 8px;
    padding-right: 8px;
    font-weight: 500;
    text-decoration: underline;
}

.cookie-consent-btn--link:hover {
    color: #2d2d2d;
}

.cookie-consent-panel {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgba(45, 45, 45, 0.45);
}

.cookie-consent-panel__dialog {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 16px;
    padding: 22px 22px 18px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    margin-bottom: 8px;
}

.cookie-consent-panel__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: #585e92;
    font-family: Kudryashev Display Sans, sans-serif;
}

.cookie-consent-panel__lead {
    margin: 0 0 16px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #5a5a5a;
}

.cookie-consent-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-top: 1px solid #eee;
}

.cookie-consent-option:last-of-type {
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

.cookie-consent-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #585e92;
    flex-shrink: 0;
}

.cookie-consent-option__body {
    flex: 1;
}

.cookie-consent-option__label {
    display: block;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 4px;
}

.cookie-consent-option__desc {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #666;
}

.cookie-consent-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-link--button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        left: 10px;
        right: 10px;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        padding: 16px;
    }

    .cookie-consent-banner__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-btn {
        width: 100%;
    }

    .cookie-consent-btn--link {
        width: auto;
        align-self: center;
    }

    .cookie-consent-panel {
        align-items: flex-end;
        padding: 10px 10px calc(72px + env(safe-area-inset-bottom, 0px));
    }
}
