:root {
    --order-modal-ink: #111c34;
    --order-modal-muted: #657189;
    --order-modal-blue: #315fca;
    --order-modal-line: #d8e1ee;
}

body.rustud-order-modal-open {
    overflow: hidden;
}

body #modal.rustud-order-modal {
    position: fixed;
    z-index: 1800;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(3, 13, 28, .72);
    backdrop-filter: blur(12px);
    animation: rustud-order-overlay-in .18s ease-out both;
}

body #modal.rustud-order-modal > form {
    position: relative;
    display: flex;
    width: min(100%, 570px);
    height: auto;
    min-height: 0;
    margin: auto;
    padding: 34px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 26px;
    color: var(--order-modal-ink);
    background: #fff;
    box-shadow: 0 38px 110px rgba(0, 0, 0, .34);
    font-family: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    text-align: left;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    transform-origin: center;
    animation: rustud-order-panel-in .2s cubic-bezier(.2, .8, .2, 1) both;
}

.rustud-order-modal *,
.rustud-order-modal *::before,
.rustud-order-modal *::after {
    box-sizing: border-box;
}

.rustud-order-modal button,
.rustud-order-modal input,
.rustud-order-modal select {
    font: inherit;
}

body #modal.rustud-order-modal .rustud-order-modal__company {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

body #modal.rustud-order-modal .rustud-order-modal__head {
    position: static;
    display: flex;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 0 26px;
    padding: 0;
    align-items: flex-start;
    justify-content: space-between;
    color: inherit;
    background: transparent;
    gap: 20px;
}

body #modal.rustud-order-modal .rustud-order-modal__head > div {
    display: flex;
    min-width: 0;
    margin: 0;
    flex-direction: column;
    gap: 7px;
}

.rustud-order-modal__head span {
    color: var(--order-modal-blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.rustud-order-modal__head strong {
    max-width: 390px;
    color: var(--order-modal-ink);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
}

body #modal.rustud-order-modal .rustud-order-modal__close {
    display: grid;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    flex: 0 0 42px;
    margin: 0;
    padding: 0;
    border: 1px solid #e6ebf2;
    border-radius: 13px;
    color: var(--order-modal-ink);
    background: #f1f4f8;
    cursor: pointer;
    place-items: center;
}

.rustud-order-modal__close img {
    width: 15px;
    height: 15px;
    margin: 0;
}

body #modal.rustud-order-modal .rustud-order-modal__label {
    display: block;
    width: auto;
    margin: 16px 0 8px;
    color: #35435b;
    font-size: 12px;
    font-weight: 750;
}

body #modal.rustud-order-modal input,
body #modal.rustud-order-modal select {
    display: block;
    width: 100%;
    height: 54px;
    min-height: 54px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--order-modal-line);
    border-radius: 13px;
    outline: none;
    color: var(--order-modal-ink);
    background: #fbfcfe;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body #modal.rustud-order-modal input:focus,
body #modal.rustud-order-modal select:focus {
    border-color: #7696df;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(49, 95, 202, .11);
}

.rustud-order-modal__quick {
    margin: 24px 0 11px;
    color: #4f5d74;
    font-size: 12px;
    font-weight: 750;
    text-align: left;
}

.rustud-order-modal__providers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

body #modal.rustud-order-modal .rustud-order-modal__providers > a {
    display: grid;
    min-width: 0;
    min-height: 66px;
    padding: 10px 12px;
    border: 1px solid var(--order-modal-line);
    border-radius: 15px;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    align-items: center;
    color: #25334c;
    background: #fff;
    gap: 10px;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body #modal.rustud-order-modal .rustud-order-modal__providers > a:hover {
    border-color: #aebfe1;
    box-shadow: 0 12px 28px rgba(24, 48, 88, .1);
    transform: translateY(-1px);
}

.rustud-order-modal__providers a > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.rustud-order-modal__providers strong {
    overflow: hidden;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rustud-order-modal__providers small {
    overflow: hidden;
    color: #748098;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rustud-order-modal__provider-icon {
    display: grid;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    place-items: center;
}

.rustud-order-modal__provider-icon--yandex {
    background: #fff1f2;
}

.rustud-order-modal__provider-icon--mail {
    background: #edf4ff;
}

.rustud-order-modal__provider-icon img {
    display: block;
    width: 26px;
    height: 26px;
    margin: 0;
}

.rustud-order-modal__providers svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #8a96aa;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.rustud-order-modal__divider {
    position: relative;
    height: 20px;
    margin: 15px 0;
    text-align: center;
}

.rustud-order-modal__divider::before {
    position: absolute;
    top: 10px;
    right: 0;
    left: 0;
    height: 1px;
    background: #e4e9f1;
    content: "";
}

.rustud-order-modal__divider span {
    position: relative;
    z-index: 1;
    padding: 0 11px;
    color: #8995a7;
    background: #fff;
    font-size: 10px;
}

.rustud-order-modal__manual {
    text-align: center;
}

.rustud-order-modal__manual button {
    margin: 0;
    padding: 7px;
    border: 0;
    color: var(--order-modal-blue);
    background: transparent;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

body #modal.rustud-order-modal .rustud-order-modal__email {
    display: none;
    width: 100%;
    flex-direction: column;
}

body #modal.rustud-order-modal .rustud-order-modal__email > button {
    width: 100%;
    min-height: 52px;
    margin: 12px 0 0;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: #315fca;
    font-weight: 800;
    cursor: pointer;
}

body #modal.rustud-order-modal .rustud-order-modal__email > button:disabled {
    cursor: wait;
    opacity: .68;
}

body #modal.rustud-order-modal .err {
    min-height: 18px;
    margin-top: 8px;
    color: #b52f46;
    font-size: 11px;
}

.rustud-order-modal__privacy {
    margin: 20px 0 0;
    color: #7d899d;
    font-size: 10px;
    line-height: 1.55;
    text-align: center;
}

body #modal.rustud-order-modal .rustud-order-modal__privacy a {
    color: #4b5f87;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: #aab7cd;
    text-underline-offset: 2px;
}

body #modal.rustud-order-modal .wite {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: rgba(255, 255, 255, .86);
}

.rustud-order-modal :focus-visible {
    outline: 3px solid rgba(49, 95, 202, .32);
    outline-offset: 3px;
}

@keyframes rustud-order-overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rustud-order-panel-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 620px) {
    body #modal.rustud-order-modal {
        align-items: flex-start;
        padding: 14px;
    }

    body #modal.rustud-order-modal > form {
        width: 100%;
        padding: 24px 20px;
        border-radius: 22px;
    }

    .rustud-order-modal__head strong {
        font-size: 23px;
    }

    .rustud-order-modal__providers {
        grid-template-columns: 1fr;
    }

    body #modal.rustud-order-modal .rustud-order-modal__providers > a {
        min-height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rustud-order-modal *,
    .rustud-order-modal *::before,
    .rustud-order-modal *::after {
        transition-duration: .01ms !important;
    }
}
