/* =========================
   ОСНОВНОЙ ОВЕРЛЕЙ
========================= */

.ar-order-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px;

    background: rgba(17, 23, 31, 0);

    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);

    visibility: hidden;
    opacity: 0;

    transition:
        opacity .3s ease,
        visibility .3s ease,
        background .3s ease,
        backdrop-filter .35s ease;
}

.ar-order-overlay.is-visible {
    visibility: visible;
    opacity: 1;

    background: rgba(17, 23, 31, 0.4);

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}


/* =========================
   МОДАЛЬНОЕ ОКНО
========================= */

.ar-order-modal {
    position: relative;

    width: min(980px, 100%);
    max-height: calc(100vh - 56px);

    overflow-x: hidden;
    overflow-y: auto;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.94),
            rgba(242, 246, 250, 0.88)
        );

    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 24px;

    box-shadow:
        0 35px 90px rgba(10, 16, 24, 0.35),
        0 10px 30px rgba(10, 16, 24, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);

    opacity: 0;

    transform:
        translateY(35px)
        scale(.94);

    transition:
        opacity .28s ease,
        transform .45s cubic-bezier(.2, 1.15, .35, 1);
}

.ar-order-overlay.is-visible .ar-order-modal {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* ДЕКОРАТИВНЫЕ БЛИКИ */

.ar-modal-glow {
    position: absolute;
    z-index: -1;

    display: block;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    filter: blur(10px);
    opacity: .34;

    pointer-events: none;
}

.ar-modal-glow-one {
    top: -150px;
    right: -100px;

    background: rgba(151, 174, 204, .45);
}

.ar-modal-glow-two {
    bottom: -180px;
    left: -120px;

    background: rgba(201, 212, 226, .55);
}


/* ПОЛОСА ПРОКРУТКИ */

.ar-order-modal::-webkit-scrollbar {
    width: 9px;
}

.ar-order-modal::-webkit-scrollbar-track {
    background: transparent;
}

.ar-order-modal::-webkit-scrollbar-thumb {
    background: rgba(116, 128, 143, .32);
    border: 2px solid transparent;
    border-radius: 20px;
    background-clip: padding-box;
}


/* =========================
   ШАПКА
========================= */

.ar-order-header {
    position: sticky;
    top: 0;
    z-index: 20;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;

    padding: 28px 32px 24px;

    background:
        linear-gradient(
            180deg,
            rgba(252, 253, 255, .97),
            rgba(247, 250, 253, .91)
        );

    border-bottom: 1px solid rgba(198, 208, 219, .65);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.ar-order-heading {
    min-width: 0;
}

.ar-order-badge {
    display: inline-flex;

    margin-bottom: 10px;
    padding: 6px 11px;

    color: #566272;

    background: rgba(229, 235, 242, .78);

    border: 1px solid rgba(205, 214, 225, .78);
    border-radius: 100px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: .035em;
    text-transform: uppercase;
}

.ar-order-heading h2 {
    margin: 0 0 7px;

    color: #151b23;

    font-family: inherit;
    font-size: 29px;
    font-weight: 750;
    line-height: 1.15;
}

.ar-order-heading p {
    max-width: 680px;
    margin: 0;

    color: #6c7581;

    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}


/* КНОПКА ЗАКРЫТИЯ */

.ar-order-close,
.ar-order-close:hover,
.ar-order-close:focus,
.ar-order-close:active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #505b69 !important;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .95),
            rgba(229, 235, 241, .76)
        ) !important;

    border: 1px solid rgba(199, 209, 220, .8) !important;
    border-radius: 12px !important;

    box-shadow:
        0 8px 22px rgba(34, 44, 57, .08),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;

    cursor: pointer !important;

    transition:
        transform .2s ease,
        color .2s ease,
        box-shadow .2s ease !important;
}

.ar-order-close:hover {
    color: #1d2631 !important;

    transform: rotate(5deg) scale(1.04);

    box-shadow:
        0 12px 25px rgba(34, 44, 57, .13),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

.ar-order-close svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}


/* =========================
   СЕКЦИИ ФОРМЫ
========================= */

.ar-order-form {
    position: relative;
}

.ar-form-section {
    padding: 28px 32px;

    border-bottom: 1px solid rgba(198, 208, 219, .58);
}

.ar-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin-bottom: 22px;
}

.ar-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    color: #3f4a58;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .92),
            rgba(222, 230, 238, .78)
        );

    border: 1px solid rgba(198, 208, 219, .8);
    border-radius: 11px;

    box-shadow:
        0 7px 20px rgba(35, 45, 58, .07),
        inset 0 1px 0 rgba(255, 255, 255, 1);

    font-size: 12px;
    font-weight: 800;
}

.ar-section-heading h3 {
    margin: 0 0 4px;

    color: #202731;

    font-family: inherit;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.25;
}

.ar-section-heading p {
    margin: 0;

    color: #7a8490;

    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}


/* =========================
   ПОЛЯ
========================= */

.ar-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.ar-field {
    min-width: 0;
}

.ar-field-full {
    grid-column: 1 / -1;
}

.ar-field label {
    display: block;

    margin-bottom: 8px;

    color: #343d49;

    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
}

.ar-field label span {
    color: #b04c4c;
}

.ar-input-wrap {
    position: relative;
    width: 100%;
}

.ar-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    color: #89939f;

    pointer-events: none;

    transform: translateY(-50%);
    transition: color .2s ease;
}

.ar-input-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ar-field input,
.ar-field textarea {
    width: 100% !important;

    margin: 0 !important;
    padding: 13px 15px !important;

    color: #202731 !important;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .87),
            rgba(245, 248, 251, .76)
        ) !important;

    border: 1px solid rgba(190, 201, 213, .78) !important;
    border-radius: 11px !important;

    box-shadow:
        inset 0 1px 2px rgba(20, 30, 42, .025),
        0 4px 14px rgba(24, 34, 47, .025) !important;

    outline: none !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease !important;
}

.ar-input-wrap input {
    padding-left: 46px !important;
}

.ar-field textarea {
    min-height: 118px;
    resize: vertical;
}

.ar-field input::placeholder,
.ar-field textarea::placeholder {
    color: #9aa2ad !important;
    opacity: 1 !important;
}

.ar-field input:focus,
.ar-field textarea:focus {
    background: rgba(255, 255, 255, .96) !important;

    border-color: rgba(104, 120, 140, .7) !important;

    box-shadow:
        0 0 0 4px rgba(116, 133, 154, .09),
        0 8px 22px rgba(30, 40, 54, .06) !important;
}

.ar-input-wrap:focus-within .ar-input-icon {
    color: #414c59;
}


/* =========================
   ДОПОЛНИТЕЛЬНЫЕ СТРАНИЦЫ
========================= */

.ar-extra-pages {
    display: grid;
    gap: 12px;
}

.ar-extra-page {
    position: relative;

    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 11px;

    padding: 15px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .78),
            rgba(235, 241, 246, .67)
        );

    border: 1px solid rgba(194, 204, 216, .7);
    border-radius: 13px;

    animation: arExtraPageIn .3s ease both;
}

@keyframes arExtraPageIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ar-extra-page input {
    width: 100% !important;

    margin: 0 !important;
    padding: 12px 13px !important;

    color: #27303b !important;

    background: rgba(255, 255, 255, .82) !important;

    border: 1px solid rgba(190, 201, 213, .78) !important;
    border-radius: 9px !important;

    outline: none !important;

    font-family: inherit !important;
    font-size: 13px !important;

    transition:
        border-color .2s ease,
        box-shadow .2s ease !important;
}

.ar-extra-page input:focus {
    border-color: rgba(104, 120, 140, .7) !important;
    box-shadow: 0 0 0 4px rgba(116, 133, 154, .08) !important;
}

.ar-remove-page,
.ar-remove-page:hover,
.ar-remove-page:focus {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 42px !important;
    min-width: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #8d5656 !important;

    background: rgba(255, 244, 244, .8) !important;

    border: 1px solid rgba(203, 150, 150, .4) !important;
    border-radius: 9px !important;

    box-shadow: none !important;

    cursor: pointer !important;

    transition:
        transform .2s ease,
        background .2s ease !important;
}

.ar-remove-page:hover {
    background: rgba(255, 232, 232, .9) !important;
    transform: scale(1.04);
}

.ar-remove-page svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.ar-add-page,
.ar-add-page:hover,
.ar-add-page:focus {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;

    min-height: 44px !important;

    margin: 14px 0 0 !important;
    padding: 10px 16px !important;

    color: #35404e !important;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .88),
            rgba(229, 236, 243, .74)
        ) !important;

    border: 1px solid rgba(188, 199, 211, .76) !important;
    border-radius: 10px !important;

    box-shadow:
        0 7px 20px rgba(34, 44, 57, .06),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: none !important;

    cursor: pointer !important;

    transition:
        transform .2s ease,
        box-shadow .2s ease !important;
}

.ar-add-page:hover {
    transform: translateY(-1px);

    box-shadow:
        0 11px 25px rgba(34, 44, 57, .1),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

.ar-add-page-icon {
    display: flex;

    width: 18px;
    height: 18px;
}

.ar-add-page-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}


/* =========================
   ПРОМОКОД
========================= */

.ar-promo-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.ar-promo-button,
.ar-promo-button:hover,
.ar-promo-button:focus {
    min-height: 48px !important;

    margin: 0 !important;
    padding: 10px 18px !important;

    color: #fff !important;

    background:
        linear-gradient(
            145deg,
            #3e4753,
            #202730
        ) !important;

    border: 0 !important;
    border-radius: 10px !important;

    box-shadow: 0 8px 20px rgba(25, 34, 45, .17) !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: none !important;

    cursor: pointer !important;

    transition:
        transform .2s ease,
        box-shadow .2s ease !important;
}

.ar-promo-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(25, 34, 45, .23) !important;
}

.ar-promo-message {
    min-height: 18px;
    margin-top: 7px;

    color: #7b8490;

    font-size: 12px;
    line-height: 1.4;
}

.ar-promo-message.is-success {
    color: #39745a;
}

.ar-promo-message.is-error {
    color: #a05252;
}


/* =========================
   ДОПОЛНИТЕЛЬНАЯ ОПЦИЯ
========================= */

.ar-option-card {
    position: relative;

    grid-column: 1 / -1;

    display: flex !important;
    align-items: center;
    gap: 13px;

    margin: 0 !important;
    padding: 16px !important;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .84),
            rgba(235, 240, 246, .72)
        );

    border: 1px solid rgba(192, 202, 214, .75);
    border-radius: 13px;

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.ar-option-card:hover {
    transform: translateY(-1px);

    border-color: rgba(149, 164, 181, .72);

    box-shadow: 0 10px 24px rgba(31, 41, 54, .07);
}

.ar-option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ar-option-check {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;
    flex: 0 0 24px;

    color: transparent;

    background: rgba(255, 255, 255, .78);

    border: 1px solid rgba(163, 176, 191, .75);
    border-radius: 7px;

    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.ar-option-check svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ar-option-card input:checked + .ar-option-check {
    color: #fff;

    background:
        linear-gradient(
            145deg,
            #45515f,
            #242d38
        );

    border-color: transparent;

    transform: scale(1.06);
}

.ar-option-content {
    display: block;
    min-width: 0;
}

.ar-option-title {
    display: block;

    color: #2a333e;

    font-size: 14px;
    font-weight: 750;
    line-height: 1.3;
}

.ar-option-text {
    display: block;

    margin-top: 3px;

    color: #7a8490;

    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.4;
}

.ar-option-price {
    margin-left: auto;

    color: #3d4754;

    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}


/* =========================
   СПОСОБЫ ОПЛАТЫ
========================= */

.ar-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.ar-payment-card {
    position: relative;

    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;

    min-height: 170px;

    margin: 0 !important;
    padding: 18px !important;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .83),
            rgba(230, 237, 244, .68)
        );

    border: 1px solid rgba(190, 201, 213, .75);
    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(30, 40, 54, .055),
        inset 0 1px 0 rgba(255, 255, 255, .95);

    cursor: pointer;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.ar-payment-card:hover {
    transform: translateY(-4px);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .96),
            rgba(236, 241, 247, .83)
        );

    border-color: rgba(136, 152, 171, .65);

    box-shadow:
        0 17px 36px rgba(30, 40, 54, .12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.ar-payment-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ar-payment-card:has(input:checked) {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .98),
            rgba(226, 234, 243, .88)
        );

    border-color: rgba(91, 108, 128, .75);

    box-shadow:
        0 15px 34px rgba(30, 40, 54, .12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.ar-payment-check {
    position: absolute;
    top: 13px;
    right: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    color: transparent;

    background: rgba(255, 255, 255, .72);

    border: 1px solid rgba(158, 172, 188, .65);
    border-radius: 50%;

    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.ar-payment-check svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ar-payment-card input:checked + .ar-payment-check {
    color: #fff;

    background:
        linear-gradient(
            145deg,
            #46515f,
            #222a34
        );

    border-color: transparent;

    transform: scale(1.06);
}

.ar-payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 47px;
    height: 47px;

    color: #45515e;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .94),
            rgba(219, 228, 237, .78)
        );

    border: 1px solid rgba(191, 202, 214, .72);
    border-radius: 13px;

    box-shadow:
        0 7px 18px rgba(31, 41, 54, .07),
        inset 0 1px 0 rgba(255, 255, 255, 1);

    transition:
        transform .28s cubic-bezier(.2, 1.2, .35, 1),
        color .2s ease;
}

.ar-payment-card:hover .ar-payment-icon {
    color: #232c37;
    transform: rotate(-3deg) scale(1.09);
}

.ar-payment-icon svg {
    width: 29px;
    height: 29px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ar-yookassa-icon svg circle:first-child {
    fill: currentColor;
    stroke: none;
}

.ar-yookassa-icon svg circle:nth-child(2) {
    fill: white;
    stroke: none;
}

.ar-yookassa-icon svg path {
    stroke: currentColor;
    opacity: 0;
}

.ar-payment-info {
    display: block;
}

.ar-payment-info strong {
    display: block;

    color: #29323d;

    font-size: 14.5px;
    font-weight: 750;
    line-height: 1.3;
}

.ar-payment-info small {
    display: block;

    margin-top: 5px;

    color: #7a8490;

    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.4;
}

.ar-payment-shine {
    position: absolute;
    top: -40%;
    left: -75%;

    width: 45%;
    height: 190%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .75),
            transparent
        );

    opacity: 0;
    pointer-events: none;

    transform: rotate(18deg);
}

.ar-payment-card:hover .ar-payment-shine {
    animation: arPaymentShine .75s ease;
}

@keyframes arPaymentShine {
    0% {
        left: -75%;
        opacity: 0;
    }

    25% {
        opacity: .55;
    }

    100% {
        left: 140%;
        opacity: 0;
    }
}




@keyframes arConfirmPulse {
    0%,100%{
        background:transparent;
        color:inherit;
        transform:scale(1);
    }
    50%{
        background:rgba(59,130,246,.12);
        color:#2563eb;
        transform:scale(1.02);
    }
}

.ar-confirm-attention{
    animation:arConfirmPulse .7s ease-in-out 3;
    border-radius:10px;
    display:block;
    padding:10px 12px;
}


/* =========================
   НИЖНЯЯ ЧАСТЬ
========================= */

.ar-order-footer {
    position: sticky;
    bottom: 0;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    padding: 22px 32px;

    background:
        linear-gradient(
            180deg,
            rgba(246, 249, 252, .93),
            rgba(252, 253, 255, .98)
        );

    border-top: 1px solid rgba(198, 208, 219, .7);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.ar-order-total {
    display: flex;
    flex-direction: column;
}

.ar-order-total > span {
    color: #747e8a;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;

    text-transform: uppercase;
    letter-spacing: .05em;
}

.ar-order-total strong {
    display: block;

    margin-top: 3px;

    color: #19212a;

    font-size: 27px;
    font-weight: 800;
    line-height: 1.15;
}

.ar-order-total small {
    display: block;

    margin-top: 4px;

    color: #89929d;

    font-size: 11.5px;
    line-height: 1.35;
}

.ar-order-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ar-order-cancel,
.ar-order-cancel:hover,
.ar-order-cancel:focus {
    min-height: 48px !important;

    margin: 0 !important;
    padding: 10px 18px !important;

    color: #4e5967 !important;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .9),
            rgba(230, 237, 244, .75)
        ) !important;

    border: 1px solid rgba(186, 198, 211, .78) !important;
    border-radius: 11px !important;

    box-shadow:
        0 7px 18px rgba(31, 41, 54, .05),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: none !important;

    cursor: pointer !important;

    transition:
        transform .2s ease,
        box-shadow .2s ease !important;
}

.ar-order-cancel:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 23px rgba(31, 41, 54, .09),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

.ar-order-submit,
.ar-order-submit:hover,
.ar-order-submit:focus {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;

    min-height: 48px !important;

    margin: 0 !important;
    padding: 10px 19px !important;

    color: #fff !important;

    background:
        linear-gradient(
            145deg,
            #424c59,
            #1e252e
        ) !important;

    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 11px !important;

    box-shadow:
        0 11px 25px rgba(23, 31, 41, .2),
        inset 0 1px 0 rgba(255, 255, 255, .14) !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    text-transform: none !important;

    cursor: pointer !important;

    transition:
        transform .2s ease,
        box-shadow .2s ease !important;
}

.ar-order-submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 15px 30px rgba(23, 31, 41, .27),
        inset 0 1px 0 rgba(255, 255, 255, .17) !important;
}

.ar-order-submit svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform .2s ease;
}

.ar-order-submit:hover svg {
    transform: translateX(3px);
}


/* =========================
   УВЕДОМЛЕНИЕ
========================= */

.ar-order-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000000;

    display: flex;
    align-items: center;
    gap: 11px;

    max-width: 390px;
    padding: 15px 17px;

    color: #26313d;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .96),
            rgba(230, 238, 245, .91)
        );

    border: 1px solid rgba(194, 205, 216, .8);
    border-radius: 14px;

    box-shadow:
        0 18px 45px rgba(16, 24, 34, .22),
        inset 0 1px 0 rgba(255, 255, 255, 1);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;

    visibility: hidden;
    opacity: 0;

    transform: translateY(20px) scale(.96);

    transition:
        opacity .25s ease,
        transform .3s ease,
        visibility .25s ease;
}

.ar-order-toast.is-visible {
    visibility: visible;
    opacity: 1;

    transform: translateY(0) scale(1);
}

.ar-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 31px;
    height: 31px;
    flex: 0 0 31px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #53685e,
            #2e4339
        );

    border-radius: 9px;
}

.ar-toast-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================
   БЛОКИРОВКА СТРАНИЦЫ
========================= */

body.ar-modal-open {
    overflow: hidden !important;
}


/* =========================
   ПЛАНШЕТ
========================= */

@media (max-width: 900px) {
    .ar-payment-grid {
        grid-template-columns: 1fr;
    }

    .ar-payment-card {
        flex-direction: row;
        align-items: center;

        min-height: 0;
    }

    .ar-payment-info {
        padding-right: 30px;
    }
}


/* =========================
   МОБИЛЬНАЯ ВЕРСИЯ
========================= */

@media (max-width: 767px) {
    .ar-order-overlay {
        align-items: flex-end;
        padding: 0;

        background: rgba(17, 23, 31, .44);
    }

    .ar-order-modal {
        width: 100%;
        max-height: 94vh;

        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;

        transform: translateY(70px) scale(.98);
    }

    .ar-order-overlay.is-visible .ar-order-modal {
        transform: translateY(0) scale(1);
    }

    .ar-order-header {
        padding: 21px 18px 18px;
    }

    .ar-order-heading h2 {
        font-size: 23px;
    }

    .ar-order-heading p {
        padding-right: 5px;
        font-size: 13px;
    }

    .ar-order-close,
    .ar-order-close:hover,
    .ar-order-close:focus {
        width: 39px !important;
        height: 39px !important;
        min-width: 39px !important;
        min-height: 39px !important;
    }

    .ar-form-section {
        padding: 23px 18px;
    }

    .ar-section-heading h3 {
        font-size: 17px;
    }

    .ar-form-grid {
        grid-template-columns: 1fr;
    }

    .ar-field-full {
        grid-column: auto;
    }

    .ar-extra-page {
        grid-template-columns: 1fr;
        padding-right: 58px;
    }

    .ar-remove-page,
    .ar-remove-page:hover,
    .ar-remove-page:focus {
        position: absolute;
        top: 15px;
        right: 15px;

        height: 42px !important;
    }

    .ar-promo-row {
        grid-template-columns: 1fr;
    }

    .ar-promo-button,
    .ar-promo-button:hover,
    .ar-promo-button:focus {
        width: 100% !important;
    }

    .ar-option-card {
        align-items: flex-start;
    }

    .ar-option-price {
        position: absolute;
        right: 15px;
        bottom: 14px;
    }

    .ar-option-content {
        padding-right: 55px;
    }

    .ar-payment-card {
        padding: 15px !important;
    }

    .ar-order-footer {
        align-items: stretch;
        flex-direction: column;

        padding: 17px 18px;
    }

    .ar-order-total strong {
        font-size: 24px;
    }

    .ar-order-buttons {
        display: grid;
        grid-template-columns: 1fr 1.4fr;
    }

    .ar-order-cancel,
    .ar-order-submit {
        width: 100% !important;
    }

    .ar-order-toast {
        right: 14px;
        bottom: 14px;
        left: 14px;

        max-width: none;
    }
}


/* УМЕНЬШЕНИЕ АНИМАЦИЙ ДЛЯ ПОЛЬЗОВАТЕЛЕЙ,
   ОТКЛЮЧИВШИХ ИХ В СИСТЕМЕ */

@media (prefers-reduced-motion: reduce) {
    .ar-order-overlay,
    .ar-order-modal,
    .ar-payment-card,
    .ar-payment-icon,
    .ar-order-toast {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }

    .ar-payment-shine {
        display: none;
    }
}

/* =========================
   ДОПОЛНЕНИЯ: ОБНОВЛЕННАЯ ФОРМА
========================= */

.ar-label-note {
    display: inline;
    margin-left: 3px;
    color: #7a8490 !important;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.35;
}

.ar-keywords-field textarea {
    min-height: 96px;
}

.ar-pages-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
    padding: 13px 15px;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(193, 204, 216, .68);
    border-radius: 12px;
    color: #707a87;
    font-size: 12.5px;
}

.ar-pages-status strong {
    color: #3b4653;
    white-space: nowrap;
}

.ar-pages-limit-message {
    min-height: 18px;
    margin-top: 7px;
    color: #9b5656;
    font-size: 12px;
}

.ar-add-page:disabled {
    opacity: .55;
    cursor: not-allowed !important;
}

.ar-options-list {
    display: grid;
    gap: 11px;
}

.ar-options-list .ar-option-card {
    grid-column: auto;
}

.ar-confirmation-section {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(198, 208, 219, .58);
    background: rgba(239, 244, 249, .72);
}

.ar-confirmation-section[hidden] {
    display: none !important;
}

.ar-confirmation-text {
    margin: 0 0 14px;
    color: #46515d;
    font-size: 13.5px;
    line-height: 1.6;
}

.ar-agreement-card {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 16px !important;
    color: #36414d;
    background: rgba(255, 255, 255, .84);
    border: 1px solid rgba(188, 200, 213, .8);
    border-radius: 13px;
    font-size: 13.5px;
    cursor: pointer;
}

.ar-agreement-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ar-agreement-card input:checked + .ar-option-check {
    color: #fff;
    background: linear-gradient(145deg, #45515f, #242d38);
    border-color: transparent;
    transform: scale(1.06);
}

.ar-agreement-card a {
    color: #273341;
    font-weight: 700;
    text-decoration: underline;
}

.ar-agreement-error {
    min-height: 18px;
    margin-top: 7px;
    color: #a05252;
    font-size: 12px;
}

.ar-order-form.is-review-mode
.ar-form-section input:disabled,
.ar-order-form.is-review-mode
.ar-form-section textarea:disabled {
    opacity: .72 !important;
    color: #35404d !important;
    -webkit-text-fill-color: #35404d !important;
}

.ar-order-form.is-review-mode .ar-add-page,
.ar-order-form.is-review-mode .ar-remove-page,
.ar-order-form.is-review-mode .ar-promo-button {
    display: none !important;
}

.ar-order-form.is-review-mode .ar-option-card,
.ar-order-form.is-review-mode .ar-payment-card {
    pointer-events: none !important;
}

.ar-order-form.is-review-mode
.ar-option-card:not(:has(input:checked)),
.ar-order-form.is-review-mode
.ar-payment-card:not(:has(input:checked)) {
    opacity: .48;
}

@media (max-width: 767px) {
    .ar-confirmation-section {
        padding: 22px 18px;
    }

    .ar-label-note {
        display: block;
        margin: 3px 0 0;
    }

    .ar-pages-status {
        align-items: flex-start;
    }
}

