.cookie-consent[hidden] { display: none !important; }

.cookie-consent {
    position: fixed;
    z-index: 99999;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    width: min(1760px, calc(100% - 48px));
    margin-inline: auto;
    padding: 36px 60px;
    color: #fff;
    background: #1f416e;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 18px 52px rgba(10, 28, 52, 0.34);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-consent, .cookie-consent * { box-sizing: border-box; }
.cookie-consent.is-visible { opacity: 1; transform: translateY(0); }
.cookie-consent__content { min-width: 0; max-width: 900px; }

.cookie-consent__title {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(24px, 2vw, 38px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.cookie-consent__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(16px, 1.35vw, 24px);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.cookie-consent__text a { color: #ffb62e; font-weight: 800; text-decoration: none; }
.cookie-consent__text a:hover, .cookie-consent__text a:focus-visible { text-decoration: underline; }

.cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(190px, 1fr));
    gap: 20px;
    min-width: 0;
}

.cookie-consent__button {
    min-height: 76px;
    padding: 16px 28px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    color: #fff;
    background: transparent;
    font: inherit;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cookie-consent__button:hover { transform: translateY(-1px); }
.cookie-consent__button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cookie-consent__button--accept { border-color: #ffb62e; color: #173861; background: #ffb62e; box-shadow: 0 12px 28px rgba(255, 182, 46, 0.3); }
.cookie-consent__button--accept:hover { border-color: #ffc85f; background: #ffc85f; }
.cookie-consent__button--reject:hover { border-color: rgba(255, 255, 255, 0.65); background: rgba(255, 255, 255, 0.08); }

@media (max-width: 1100px) {
    .cookie-consent { grid-template-columns: 1fr; gap: 24px; padding: 28px 32px; }
    .cookie-consent__actions { width: 100%; }
}

@media (max-width: 600px) {
    .cookie-consent { right: 12px; bottom: 12px; left: 12px; gap: 20px; width: calc(100% - 24px); max-height: calc(100vh - 24px); padding: 22px 18px; overflow-y: auto; }
    .cookie-consent__title { margin-bottom: 12px; font-size: 23px; }
    .cookie-consent__text { font-size: 15px; }
    .cookie-consent__actions { grid-template-columns: 1fr; gap: 12px; }
    .cookie-consent__button { min-height: 56px; padding: 13px 16px; font-size: 17px; }
}

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