/* ============================================
   Cookie Consent Banner — 152-FZ Compliance
   Design: based on old zdorovie58.ru, enhanced

   Brand: #195F40 (dark green), #FF6633 (orange),
          #B4CD8E (olive), Montserrat
   ============================================ */

/* ── Banner Container ───────────────────────── */

.zd-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990; /* Below modals (9999) but above everything else */
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition:
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.35s ease,
        visibility 0.35s ease;
    pointer-events: none;
}

.zd-notice.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ── Inner Layout ───────────────────────────── */

.zd-notice__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: calc(100% - 32px);
    max-width: 1200px;
    margin: 0 auto 16px;
    padding: 18px 28px;
    background: #195F40;
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(25, 95, 64, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ── Content: Icon + Text ───────────────────── */

.zd-notice__content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.zd-notice__icon {
    flex-shrink: 0;
    color: #B4CD8E;
    margin-top: 2px;
}

.zd-notice__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

/* ── Links ──────────────────────────────────── */

.zd-notice__link {
    color: #B4CD8E;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease;
}

.zd-notice__link:hover {
    color: #FF6633;
}

/* ── Buttons ───────────────────────────────── */

.zd-notice__buttons {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zd-notice__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.zd-notice__btn--accept {
    color: #fff;
    background: #FF6633;
    border: 1px solid #FF6633;
}

.zd-notice__btn--accept:hover {
    background: #e55a2b;
    border-color: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 102, 51, 0.35);
}

.zd-notice__btn--accept:active {
    transform: translateY(0);
    box-shadow: none;
}

.zd-notice__btn--decline {
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.zd-notice__btn--decline:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.7);
}

.zd-notice__btn--decline:active {
    background: rgba(255, 255, 255, 0.14);
}

/* ── Hide animation ─────────────────────────── */

.zd-notice.is-hiding {
    transform: translateY(100%);
    opacity: 0;
    transition:
        transform 0.35s cubic-bezier(0.55, 0, 1, 0.45),
        opacity 0.25s ease;
}

/* ── Mobile responsive ──────────────────────── */

@media (max-width: 768px) {
    .zd-notice__inner {
        flex-direction: column;
        gap: 14px;
        width: calc(100% - 16px);
        margin: 0 8px 8px;
        padding: 16px 20px;
        border-radius: 14px;
    }

    .zd-notice__icon {
        display: none;
    }

    .zd-notice__text {
        font-size: 12.5px;
    }

    .zd-notice__buttons {
        width: 100%;
        flex-direction: column-reverse;
        gap: 8px;
    }

    .zd-notice__btn {
        width: 100%;
        padding: 13px 24px;
    }
}

/* ── Offset bottom nav on mobile ────────────── */

@media (max-width: 768px) {
    .zd-notice {
        bottom: 60px; /* Above mobile bottom nav */
    }
}

/* ── Reduced motion ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .zd-notice,
    .zd-notice.is-hiding {
        transition: none;
    }
}
