.first-visit-modal[hidden] {
    display: none;
}

.first-visit-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 24px;
}

.first-visit-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 25, 39, 0.72);
}

.first-visit-modal__content {
    position: relative;
    width: min(100%, 620px);
    padding: 46px 48px 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
    text-align: center;
    animation: first-visit-modal-in 0.28s ease-out;
}

.first-visit-modal__accent {
    width: 58px;
    height: 4px;
    margin: 0 auto 22px;
    background: #f2a900;
}

.first-visit-modal__content h2 {
    margin-bottom: 18px;
    color: #17384d;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.first-visit-modal__content p {
    margin: 0 auto 28px;
    color: #59656d;
    font-size: 17px;
    line-height: 1.9;
}

.first-visit-modal__close {
    position: absolute;
    top: 12px;
    inset-inline-end: 16px;
    width: 36px;
    height: 36px;
    background: transparent;
    color: #59656d;
    font-size: 30px;
    line-height: 1;
}

.first-visit-modal__button {
    padding: 11px 28px;
    border-radius: 4px;
    background: #17384d;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

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

@keyframes first-visit-modal-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575px) {
    .first-visit-modal__content {
        padding: 40px 24px 28px;
    }

    .first-visit-modal__content h2 {
        font-size: 23px;
    }

    .first-visit-modal__content p {
        font-size: 15px;
        line-height: 1.75;
    }
}