.cookie-notice {
    position: fixed;
    left: 50%;
    bottom: 120px;
    transform: translateX(-50%);
    z-index: 10000;

    width: min(960px, calc(100% - 24px));

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 18px 20px 18px 24px;

    box-sizing: border-box;
    font-family: 'Comfortaa', Arial, sans-serif;

    color: #171717;

    border-radius: 32px;

    /*
        Главное отличие:
        плашка почти прозрачная, а не залитая бежевым.
        Цвет берётся от страницы под ней.
    */
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.36) 0%,
            rgba(255, 255, 255, 0.18) 38%,
            rgba(255, 255, 255, 0.10) 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.62);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        inset 0 -1px 0 rgba(255, 255, 255, 0.22),
        inset 0 0 34px rgba(255, 255, 255, 0.16),
        0 28px 80px rgba(69, 52, 35, 0.22),
        0 14px 36px rgba(23, 63, 115, 0.12);

    backdrop-filter: blur(38px) saturate(1.55) contrast(1.08) brightness(1.06);
    -webkit-backdrop-filter: blur(38px) saturate(1.55) contrast(1.08) brightness(1.06);

    overflow: hidden;
    isolation: isolate;
}

.cookie-notice::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 31px;

    background:
        linear-gradient(
            115deg,
            rgba(255, 255, 255, 0.72) 0%,
            rgba(255, 255, 255, 0.26) 18%,
            rgba(255, 255, 255, 0.04) 42%,
            rgba(255, 255, 255, 0.00) 58%,
            rgba(23, 63, 115, 0.06) 100%
        );

    pointer-events: none;
    z-index: -1;
}

.cookie-notice::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -130px;

    width: 300px;
    height: 300px;
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.58) 0%,
            rgba(255, 255, 255, 0.24) 24%,
            rgba(23, 63, 115, 0.12) 44%,
            transparent 72%
        );

    filter: blur(10px);
    opacity: 0.9;
    pointer-events: none;
    z-index: -1;
}

.cookie-notice[hidden] {
    display: none !important;
}

.cookie-notice__text {
    position: relative;
    z-index: 2;

    font-size: 13px;
    line-height: 1.55;
    color: rgba(23, 23, 23, 0.88);
    text-align: left;

    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.cookie-notice__text a {
    color: #173f73;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(23, 63, 115, 0.42);
    padding-bottom: 1px;

    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.cookie-notice__text a:hover {
    color: #0f2f59;
    border-color: rgba(15, 47, 89, 0.68);
    background: rgba(255, 255, 255, 0.22);
}

.cookie-notice__actions {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
}

.cookie-notice__button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    min-width: 116px;
    min-height: 44px;

    border-radius: 999px;
    padding: 10px 18px;

    cursor: pointer;

    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;

    overflow: hidden;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.cookie-notice__button::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.62),
            rgba(255, 255, 255, 0.08) 52%,
            rgba(255, 255, 255, 0.22)
        );

    pointer-events: none;
}

.cookie-notice__button--accept {
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.38);

    background:
        linear-gradient(
            145deg,
            rgba(45, 96, 153, 0.98) 0%,
            rgba(23, 63, 115, 0.98) 52%,
            rgba(15, 47, 89, 0.98) 100%
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12),
        0 16px 38px rgba(23, 63, 115, 0.30),
        0 8px 20px rgba(69, 52, 35, 0.14);
}

.cookie-notice__button--accept:hover {
    transform: translateY(-2px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.36),
        inset 0 -1px 0 rgba(0, 0, 0, 0.10),
        0 20px 46px rgba(23, 63, 115, 0.36),
        0 12px 28px rgba(69, 52, 35, 0.18);

    filter: saturate(1.1) brightness(1.03);
}

.cookie-notice__button--reject {
    color: #173f73;

    border: 1px solid rgba(255, 255, 255, 0.56);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.42),
            rgba(255, 255, 255, 0.18)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 0 18px rgba(255, 255, 255, 0.12),
        0 10px 26px rgba(69, 52, 35, 0.12);
}

.cookie-notice__button--reject:hover {
    transform: translateY(-1px);

    color: #0f2f59;
    border-color: rgba(23, 63, 115, 0.28);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.56),
            rgba(23, 63, 115, 0.08)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        inset 0 0 22px rgba(255, 255, 255, 0.18),
        0 12px 30px rgba(69, 52, 35, 0.14);
}

.cookie-notice__button:active {
    transform: translateY(0);
}

.cookie-notice__button:focus-visible,
.cookie-notice__text a:focus-visible {
    outline: 3px solid rgba(23, 63, 115, 0.26);
    outline-offset: 3px;
    border-radius: 10px;
}

/* ===== MOBILE ===== */

@media screen and (max-width: 720px) {
    .cookie-notice {
        bottom: 110px;

        flex-direction: column;
        align-items: stretch;

        width: calc(100% - 28px);
        gap: 13px;

        padding: 16px;

        border-radius: 28px;

        background:
            linear-gradient(
                135deg,
                rgba(255, 255, 255, 0.42),
                rgba(255, 255, 255, 0.16)
            );

        backdrop-filter: blur(30px) saturate(1.35) contrast(1.06);
        -webkit-backdrop-filter: blur(30px) saturate(1.35) contrast(1.06);
    }

    .cookie-notice::before {
        border-radius: 27px;
    }

    .cookie-notice__text {
        text-align: center;
        font-size: 12px;
        line-height: 1.5;
    }

    .cookie-notice__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 8px;
    }

    .cookie-notice__button {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        font-size: 12px;
        padding: 9px 10px;
    }
}

@media screen and (max-width: 420px) {
    .cookie-notice__actions {
        grid-template-columns: 1fr;
    }
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
    .cookie-notice,
    .cookie-notice__button,
    .cookie-notice__text a {
        transition: none !important;
    }
}