.site-popup {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.site-popup.is-visible {
    display: flex;
}

.site-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.site-popup__dialog {
    position: relative;
    width: min(92vw, 460px);
    margin: 0;
    background: #fff;
    color: #17263d;
    padding: 24px 20px 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    border-top: 4px solid #ba8d33;
    max-height: 84vh;
    overflow: auto;
}

.site-popup__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    color: #354860;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.site-popup__dialog h2 {
    margin: 0 22px 8px 0;
    font-size: 28px;
    line-height: 1.1;
}

.site-popup__dialog p {
    margin: 0 0 14px;
    color: #4b5b70;
    font-size: 14px;
    line-height: 1.5;
}

.site-popup__form {
    display: grid;
    gap: 8px;
}

.site-popup__form label {
    font-size: 13px;
    font-weight: 700;
}

.site-popup__form input {
    height: 30px;
    border: 1px solid #d6dbe2;
    padding: 8px 10px;
    font-size: 12px;
}

.site-popup__form input:focus {
    outline: none;
    border-color: #ba8d33;
}

.site-popup__form button {
    margin-top: 6px;
    height: 44px;
    border: 0;
    background: #ba8d33;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

body.popup-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .site-popup__dialog {
        padding: 20px 16px 16px;
    }

    .site-popup__dialog h2 {
        font-size: 23px;
    }
}

.site-toast-wrap {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 4000;
    display: grid;
    gap: 10px;
    max-width: min(92vw, 360px);
}

.site-toast {
    padding: 12px 14px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-toast.is-show {
    opacity: 1;
    transform: translateY(0);
}

.site-toast.is-success {
    background: #178246;
}

.site-toast.is-error {
    background: #be2f3a;
}
