/* ===== Cookie consent banner + FAB ===== */

:root {
    --cc-accent: #007c83;
}

/* --- Баннер --- */

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 9998;
    padding: 28px 24px; /* чуть выше по высоте, чем было (было 20px 24px) */
    box-sizing: border-box;

    /* белый фон с едва заметной бирюзовой тонировкой — не слишком прозрачный */
    background: rgba(255, 255, 255, 0.88);
    background-image: linear-gradient(135deg, rgba(0, 124, 131, 0.07), rgba(255, 255, 255, 0) 60%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px 24px 0 0;

    /* та же почти незаметная тень, что и в style.css сайта */
    box-shadow: 0px 0px 4px 1px rgba(0, 1, 1, 0.05);

    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    visibility 0s linear 0.55s;
}

.cookie-consent.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    visibility 0s linear 0s;
}

.cookie-consent__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent__text {
    margin: 0;
    flex: 1 1 480px;
    color: #123033;
    font-size: 15px;
    line-height: 1.5;
    max-height: fit-content;
}

.cookie-consent__text a {
    color: var(--cc-accent);
    text-decoration: underline;
    font-weight: 600;
    /* явное наследование — защита от "гигантской" ссылки, если где-то в глобальных
       стилях сайта есть более общее и более приоритетное правило для `a` */
    font-size: inherit;
    line-height: inherit;
    display: inline;
    transition: color 0.2s ease;
}

.cookie-consent__text a:hover {
    color: #00575c;
}

.cookie-consent__accept {
    flex: 0 0 auto;
    border: none;
    cursor: pointer;
    padding: 13px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--cc-accent);
    box-shadow: 0px 0px 4px 1px rgba(0, 1, 1, 0.05);
    transition: background 0.4s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.cookie-consent__accept:hover {
    /* тот же hover-цвет, что у .green-btn по всему сайту */
    background: #dc373f;
}

.cookie-consent__accept:active {
    transform: scale(0.97);
}

@media (max-width: 640px) {
    .cookie-consent {
        padding: 22px 16px;
        border-radius: 16px 16px 0 0;
    }

    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-consent__accept {
        width: 100%;
    }
}

/* --- FAB --- */

.cookie-consent-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden; /* обрезает подложку/градиент строго по кругу */
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;

    background: rgba(0, 124, 131, 0.52);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0) 70%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);

    box-shadow: 0px 0px 4px 1px rgba(0, 1, 1, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.65),
    inset -4px -3px 5px 0px rgba(0, 0, 0, 0.08);

    transform: scale(0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease,
    box-shadow 0.25s ease,
    background 0.3s ease,
    visibility 0s linear 0.4s;
}

.cookie-consent-fab.is-visible {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease,
    box-shadow 0.25s ease,
    background 0.3s ease,
    visibility 0s linear 0s;
}

.cookie-consent-fab:hover {
    /* тот же hover-цвет, что и у кнопки «Принять» / .green-btn по всему сайту */
    background: rgba(220, 55, 63, 0.62);
    box-shadow: 0px 0px 6px 1px rgba(0, 1, 1, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset -4px -3px 5px 0px rgba(0, 0, 0, 0.1);
    transform: scale(1.08);
}

.cookie-consent-fab:active {
    transform: scale(0.94);
}

.cookie-consent-fab svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}
