/* Плашка cookie и окно «Настройки cookie» — alians-gc.ru. Палитра и шрифты — из custom/style.css сайта. */
.cc-banner, .cc-modal {
    --cc-ink: #2d3039;
    --cc-blue: #0077be;
    --cc-blue-hover: #076197;
    --cc-muted: #566070;
    --cc-bg: #fff;
    --cc-tint: #f7fafd;
    --cc-line: #dbe3ec;
    font: 16px/1.5 'ProximaNova-Regular', Arial, sans-serif;
    color: var(--cc-ink);
    box-sizing: border-box;
}
.cc-banner *, .cc-modal * { box-sizing: border-box; }
.cc-banner[hidden], .cc-modal[hidden] { display: none; }

/* Плашка: полоса внизу, страница под ней остаётся доступной */
.cc-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
    background: var(--cc-bg);
    border-top: 4px solid var(--cc-blue);
    box-shadow: 0 -8px 28px rgba(45, 48, 57, .16);
    animation: cc-rise .45s cubic-bezier(.16, 1, .3, 1);
}
.cc-banner__in {
    max-width: 1170px; margin: 0 auto; padding: 20px 15px;
    display: flex; align-items: center; gap: 32px;
}
.cc-banner__text { margin: 0; flex: 1 1 auto; max-width: 70ch; }
.cc-banner__text a, .cc-modal a { color: var(--cc-blue); text-decoration: underline; text-underline-offset: 3px; }
.cc-banner__text a:hover, .cc-modal a:hover { color: var(--cc-blue-hover); }
.cc-actions { display: flex; gap: 12px; flex: 0 0 auto; }

/* Две одинаковые кнопки: размер, цвет, контраст, положение */
.cc-btn {
    appearance: none; cursor: pointer;
    min-width: 150px; min-height: 48px; padding: 10px 22px;
    font: 18px/1.2 'ProximaNova-Bold', Arial, sans-serif;
    color: #fff; background: var(--cc-blue);
    border: 2px solid var(--cc-blue); border-radius: 0;
    transition: background-color .18s ease-out, border-color .18s ease-out;
}
.cc-btn:hover { background: var(--cc-blue-hover); border-color: var(--cc-blue-hover); }
.cc-btn:focus-visible, .cc-link:focus-visible, .cc-banner a:focus-visible, .cc-modal a:focus-visible {
    outline: 3px solid var(--cc-ink); outline-offset: 3px;
}

/* Окно настроек */
.cc-modal {
    position: fixed; inset: 0; z-index: 9995;
    display: flex; align-items: center; justify-content: center; padding: 15px;
    background: rgba(45, 48, 57, .62);
}
.cc-modal__box {
    width: 100%; max-width: 560px; max-height: calc(100vh - 30px); overflow: auto;
    background: var(--cc-bg); border-top: 4px solid var(--cc-blue);
    box-shadow: 0 18px 48px rgba(45, 48, 57, .3);
    padding: 28px 32px 24px;
    animation: cc-rise .35s cubic-bezier(.16, 1, .3, 1);
}
.cc-modal__title { margin: 0 0 20px; font: 28px/1.2 'ProximaNova-Bold', Arial, sans-serif; text-wrap: balance; }
.cc-row { padding: 14px 0; border-top: 1px solid var(--cc-line); }
.cc-row__name { font-family: 'ProximaNova-Bold', Arial, sans-serif; }
.cc-row__note { margin: 2px 0 0; color: var(--cc-muted); font-size: 15px; }
.cc-state { display: inline-block; margin-top: 6px; padding: 2px 10px; background: var(--cc-tint); border: 1px solid var(--cc-line); font-family: 'ProximaNova-Bold', Arial, sans-serif; }
.cc-date { margin: 4px 0 0; color: var(--cc-muted); font-size: 15px; }
.cc-modal .cc-actions { margin-top: 18px; flex-wrap: wrap; }
.cc-modal .cc-btn { flex: 1 1 220px; }
.cc-modal__foot { margin: 18px 0 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.cc-link { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--cc-blue); text-decoration: underline; text-underline-offset: 3px; }
.cc-link:hover { color: var(--cc-blue-hover); }

@keyframes cc-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cc-banner, .cc-modal__box { animation: none; } .cc-btn { transition: none; } }

@media (max-width: 767px) {
    .cc-banner__in { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 15px 12px; }
    .cc-banner__text { font-size: 13px; line-height: 1.35; }
    .cc-banner .cc-actions { gap: 10px; }
    .cc-banner .cc-btn { flex: 1 1 0; min-width: 0; padding: 8px 8px; font-size: 15px; }
    .cc-modal__box { padding: 22px 18px 18px; }
    .cc-modal__title { font-size: 24px; }
}
