.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 100000;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-top: 4px solid #29aab3;
    border-radius: 4px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .18);
    font-family: Arial, "Helvetica Neue", sans-serif;
    color: #4d5657;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}

.cookie-banner--visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s ease, transform .3s ease;
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 24px;
}

.cookie-banner__text {
    flex: 1 1 auto;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4d5657;
}

.cookie-banner__text a {
    font-size: inherit;
    line-height: inherit;
    color: #29aab3;
    text-decoration: underline;
}

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

.cookie-banner__buttons {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

.cookie-banner__btn {
    margin: 0;
    padding: 11px 22px;
    border: 2px solid #29aab3;
    border-radius: 3px;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.cookie-banner__btn--accept {
    background: #29aab3;
    color: #fff;
}

.cookie-banner__btn--accept:hover,
.cookie-banner__btn--accept:focus {
    background: #1f8a91;
    border-color: #1f8a91;
}

.cookie-banner__btn--decline {
    background: #fff;
    color: #29aab3;
}

.cookie-banner__btn--decline:hover,
.cookie-banner__btn--decline:focus {
    background: #eef8f9;
}

.cookie-banner__btn:focus-visible {
    outline: 2px solid #4d5657;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
    }

    .cookie-banner__buttons {
        flex-wrap: wrap;
    }

    .cookie-banner__btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }

    .cookie-banner__text {
        font-size: 13px;
    }

    .cookie-banner__btn {
        white-space: normal;
    }
}

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

/* кнопка «Изменить настройки cookie» на странице политики */
.cookie-settings-btn {
    display: inline-block;
    margin: 10px 0 20px;
    padding: 10px 20px;
    border: 2px solid #29aab3;
    border-radius: 3px;
    background: #fff;
    color: #29aab3;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.cookie-settings-btn:hover {
    background: #eef8f9;
}
