/* Cookie-баннер (Views/Shared/_CookieConsent.cshtml). Кнопки «Принять» и «Только необходимые»
   одинакового размера: отказ не должен быть сложнее согласия. */
.cc-banner {
    --cc-bg: #fff;
    --cc-text: #131740;
    --cc-muted: #5a5d79;
    --cc-line: #e7e8ec;
    --cc-accent: #8358ff;
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: min(1120px, calc(100% - 24px));
    padding: 1.25rem 1.5rem 1.25rem 1.75rem;
    border: 1px solid var(--cc-line);
    border-radius: 22px;
    background: var(--cc-bg);
    color: var(--cc-text);
    box-shadow: 0 24px 60px -18px rgb(19 23 64 / 35%);
    opacity: 0;
    transform: translate(-50%, 16px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dark .cc-banner {
    --cc-bg: #171b45;
    --cc-text: #fff;
    --cc-muted: #c4c5cf;
    --cc-line: #2a2e57;
    box-shadow: 0 24px 60px -18px rgb(0 0 0 / 60%);
}

.cc-banner[hidden] {
    display: none;
}

.cc-banner.is-shown {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cc-banner__body {
    flex: 1;
    min-width: 0;
}

.cc-banner__title {
    margin: 0 0 0.375rem;
    font-weight: 600;
    font-size: 1rem;
}

.cc-banner__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--cc-muted);
}

.cc-banner__text a {
    color: var(--cc-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cc-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex: none;
}

.cc-btn {
    min-width: 11rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.cc-btn:active {
    transform: scale(0.98);
}

.cc-btn:focus-visible {
    outline: 2px solid var(--cc-accent);
    outline-offset: 2px;
}

.cc-btn--primary {
    border: 1px solid var(--cc-accent);
    background: var(--cc-accent);
    color: #fff;
}

.cc-btn--ghost {
    border: 1px solid var(--cc-line);
    background: transparent;
    color: var(--cc-text);
}

@media (hover: hover) {
    .cc-btn--primary:hover {
        background: #6f42f0;
    }

    .cc-btn--ghost:hover {
        border-color: var(--cc-accent);
    }
}

@media (max-width: 768px) {
    .cc-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.125rem;
        bottom: 12px;
    }

    .cc-banner__actions {
        flex-direction: column-reverse;
    }

    .cc-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-banner {
        transition: none;
    }
}

/* Строка «Документы» в подвале (Views/Shared/Components/LegalFooterLinks/Default.cshtml). */
.site-footer-docs {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem 1.5rem;
    padding: 0 0 2rem;
    font-size: 0.875rem;
}

.site-footer-docs__title {
    font-weight: 600;
    color: #131740;
}

.dark .site-footer-docs__title {
    color: #fff;
}

.site-footer-docs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-docs__list a,
.site-footer-docs__cookie {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: #5a5d79;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.dark .site-footer-docs__list a,
.dark .site-footer-docs__cookie {
    color: #a1a2b3;
}

.site-footer-docs__cookie {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

@media (hover: hover) {
    .site-footer-docs__list a:hover,
    .site-footer-docs__cookie:hover {
        color: #8358ff;
    }
}
