.first-visit-banner {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
}

.first-visit-banner.is-open {
    display: block;
}

.first-visit-banner-open {
    overflow: hidden;
}

.first-visit-banner__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 27, 61, 0.55);
    backdrop-filter: blur(2px);
}

.first-visit-banner__dialog {
    position: relative;
    width: min(92vw, 760px);
    margin: 70px auto 24px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 54px rgba(9, 16, 42, 0.34);
    border: 1px solid rgba(66, 105, 178, 0.16);
    max-height: calc(100vh - 94px);
    overflow: auto;
}

.first-visit-banner__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2b63;
    box-shadow: 0 8px 16px rgba(14, 24, 58, 0.18);
    z-index: 5;
    cursor: pointer;
}

.first-visit-banner__hero {
    position: relative;
    min-height: 360px;
    color: #ffffff;
    overflow: hidden;
}

.first-visit-banner__hero img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

.first-visit-banner__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(19, 29, 74, 0.22) 0%, rgba(19, 29, 74, 0.52) 100%);
}

.first-visit-banner__hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 24px 22px;
}

.first-visit-banner__hero h3 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 6px 20px rgba(18, 27, 61, 0.45);
}

.first-visit-banner__hero p {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 5px 18px rgba(18, 27, 61, 0.45);
}

.first-visit-banner__content {
    padding: 24px 36px 32px;
}

.first-visit-banner__content p {
    margin: 0;
    color: #33456e;
    line-height: 1.75;
    font-size: 17px;
}

.first-visit-banner__actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.first-visit-banner__btn {
    min-height: 44px;
    border-radius: 999px;
    padding: 11px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.first-visit-banner__btn--ghost {
    border: 1px solid rgba(31, 43, 99, 0.18);
    background: #f6f8ff;
    color: #1f2b63;
    margin-right: auto;
}

.first-visit-banner__btn--primary {
    border: none;
    background: linear-gradient(135deg, #4f78c4 0%, #4269b2 100%);
    color: #ffffff;
    margin-left: auto;
}

@media (max-width: 767px) {
    .first-visit-banner__dialog {
        width: min(94vw, 94vw);
        margin-top: 16px;
        border-radius: 16px;
        max-height: calc(100vh - 24px);
    }

    .first-visit-banner__hero {
        min-height: 190px;
    }

    .first-visit-banner__hero img {
        min-height: 190px;
    }

    .first-visit-banner__hero-overlay {
        padding: 16px 14px;
    }

    .first-visit-banner__hero h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .first-visit-banner__hero p,
    .first-visit-banner__content p {
        font-size: 14px;
    }

    .first-visit-banner__content {
        padding: 14px 14px 18px;
    }

    .first-visit-banner__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .first-visit-banner__btn {
        justify-content: center;
        width: 100%;
        min-height: 40px;
        font-size: 14px;
    }
}
