/* SRO services page — mobile first, flex only */

/* Не растягивать .page до футера на страницах услуг */
.page.sro-shell {
    min-height: 0 !important;
    height: auto !important;
    display: block !important;
    flex-flow: initial !important;
}


.sro-page {
    --sro-navy: #001f6c;
    --sro-cyan: #00bbf1;
    --sro-cyan-hover: #009fd4;
    --sro-bg: #f7f7f7;
    --sro-white: #ffffff;
    --sro-line: #d8dde6;
    --sro-muted: #9aa3b5;
    --sro-radius: 12px;
    --sro-shadow: 0 4px 20px rgba(0, 31, 108, 0.08);
    --sro-pad: 16px;

    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--sro-bg);
    color: var(--sro-navy);
    font-family: MyriadPro, Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

.sro-page *,
.sro-page *::before,
.sro-page *::after {
    box-sizing: border-box;
}

.sro-page a {
    color: var(--sro-cyan);
    text-decoration: none;
}

.sro-page a:hover {
    color: var(--sro-cyan-hover);
    text-decoration: underline;
}

.sro-page a.sro-success__link,
.sro-page a.sro-success__link:hover {
    color: var(--sro-white);
    text-decoration: none;
}

.sro-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sro-pad) 40px;
    gap: 16px;
}

/* Breadcrumbs */
.sro-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 16px;
    font-size: 13px;
    color: var(--sro-muted);
}

.sro-breadcrumbs a {
    color: var(--sro-muted);
}

.sro-breadcrumbs__sep {
    color: #c0c6d2;
}

.sro-breadcrumbs__current {
    color: #7a8499;
}

/* Title */
.sro-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--sro-navy);
}

/* Card */
.sro-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 16px;
    border-radius: var(--sro-radius);
    background: var(--sro-white);
    box-shadow: var(--sro-shadow);
}

/* Service list */
.sro-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sro-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sro-item__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--sro-navy);
}

.sro-item__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.sro-item__price {
    flex: 0 1 auto;
    max-width: 70%;
    min-width: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--sro-cyan);
}

.sro-item__line {
    flex: 1 1 auto;
    min-width: 12px;
    height: 0;
    margin-bottom: 0.35em;
    border-bottom: 1px solid var(--sro-line);
}

.sro-flash {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.sro-flash--success {
    background: #e8f8ef;
    color: #1b7a45;
}

.sro-flash--error {
    background: #fdecee;
    color: #b42318;
}

.sro-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 40px 24px;
    border-radius: var(--sro-radius);
    background: var(--sro-white);
    box-shadow: var(--sro-shadow);
    text-align: center;
}

.sro-success__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--sro-navy);
}

.sro-success__text {
    margin: 0;
    font-size: 15px;
    color: var(--sro-muted);
}

.sro-success__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    border-radius: 8px;
    background: var(--sro-cyan);
    color: var(--sro-white);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.sro-success__link:hover {
    background: var(--sro-cyan-hover);
    color: var(--sro-white);
    text-decoration: none;
}

@media (min-width: 768px) {
    .sro-success {
        margin-top: 60px;
        padding: 56px 40px;
    }

    .sro-success__title {
        font-size: 32px;
    }
}

.sro-item__order {
    flex: 0 0 auto;
    padding: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--sro-cyan);
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer;
}

.sro-item__order:hover {
    color: var(--sro-cyan-hover);
}


/* Service detail page */
.sro-card--detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 8px;
}

.sro-card--detail .sro-title {
    margin: 0;
}

.sro-detail__price {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #ff1f6c;
}

.sro-detail__info {
    width: 100%;
    max-width: 640px;
    margin: 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: #eef0f4;
    font-size: 14px;
    line-height: 1.5;
    color: var(--sro-navy);
}

.sro-detail__order.button,
.sro-detail__order {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 13px 26px !important;
    border: none !important;
    border-radius: 6px !important;
    background-color: #00BBF1 !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: none !important;
    cursor: pointer;
}

.sro-detail__order.button:hover,
.sro-detail__order:hover {
    background-color: #009fd4 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.sro-detail__description {
    width: 100%;
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--sro-navy);
}

.sro-detail__description p,
.sro-detail__description ul,
.sro-detail__description ol,
.sro-detail__description li {
    font-size: inherit;
    line-height: inherit;
}

.sro-detail__description p {
    margin: 0 0 12px;
}

.sro-detail__description p:last-child {
    margin-bottom: 0;
}

.sro-detail__description ul,
.sro-detail__description ol {
    margin: 0 0 12px;
    padding-left: 1.5em;
    list-style-position: outside;
}

.sro-detail__description ul {
    list-style-type: disc;
}

.sro-detail__description ol {
    list-style-type: decimal;
}

.sro-detail__description li {
    margin: 0;
    padding: 0;
}

.sro-detail__description li + li {
    margin-top: 0.35em;
}

.sro-detail__description li > ul,
.sro-detail__description li > ol {
    margin: 0.35em 0 0;
}

.sro-detail__description ul ul {
    list-style-type: circle;
}

.sro-detail__description ol ol {
    list-style-type: lower-alpha;
}

/* Order modal */
.sro-order-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: AvenirNextCyr, MyriadPro, Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    line-height: 1.6rem;
    color: #000;
}

.sro-order-modal[hidden] {
    display: none !important;
}

.sro-order-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 31, 108, 0.45);
}

.sro-order-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    max-height: min(90vh, 720px);
    padding: 28px 24px 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 31, 108, 0.18);
    overflow: auto;
}

.sro-order-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    color: #9aa3b5;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.sro-order-modal__close:hover {
    color: #001f6c;
}

.sro-order-modal__title {
    margin: 0 32px 20px 0;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #001f6c;
}

.sro-order-modal__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sro-order-modal__form .form-input {
    position: relative;
    margin: 0;
}

.sro-order-modal__form .form__field {
    width: 100%;
    box-sizing: border-box;
    height: 3.4rem;
    padding: 1.3rem 1.2rem 0.3rem;
    border: 0.1rem solid #e9e9e9;
    border-radius: 0.4rem;
    background-color: #f4f5f7;
    font-family: AvenirNextCyr, MyriadPro, sans-serif;
    font-size: 14px;
    line-height: 1.3;
    color: #000;
    outline: 0;
}

.sro-order-modal__form .form-input.-focus .form__field,
.sro-order-modal__form .form__field:focus {
    border-color: #00bbf1;
}

.sro-order-modal__form .form-input label,
.sro-order-modal__form .form-input .control-label {
    position: absolute;
    left: 1.2rem;
    top: 1rem;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-family: AvenirNextCyr, MyriadPro, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
    color: #000;
    white-space: nowrap;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.sro-order-modal__form .form-input .form__field:focus + label,
.sro-order-modal__form .form-input .form__field:focus + .control-label {
    top: 0.35rem;
    font-size: 10px;
    line-height: 1.1;
    color: #00bbf1;
}

.sro-order-modal__form .form-input.-filled label,
.sro-order-modal__form .form-input.-filled .control-label {
    top: 0.35rem;
    font-size: 10px;
    line-height: 1.1;
    color: #cacaca;
}

.sro-order-modal__form .form__error {
    min-height: 0;
}

.sro-order-modal__error {
    padding: 1.2rem 1.4rem;
    border-radius: 0.4rem;
    background: #ffe8ef;
    color: #c2185b;
    font-size: 1.4rem;
    line-height: 1.4;
}

.sro-order-modal__success {
    margin: 12px 0 4px;
    padding: 8px 8px 4px 0;
    color: #001f6c;
    font-size: 1.8rem;
    line-height: 1.45;
    font-weight: 700;
    text-align: center;
}

.sro-order-modal__form[hidden],
.sro-order-modal__success[hidden],
.sro-order-modal__title[hidden] {
    display: none !important;
}

.sro-order-modal__submit.button,
.sro-order-modal__submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0.4rem 0 0 !important;
    padding: 13px 26px !important;
    border: none !important;
    border-radius: 6px !important;
    background-color: #00BBF1 !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

.sro-order-modal__submit.button:hover,
.sro-order-modal__submit:hover {
    background-color: #009fd4 !important;
    color: #fff !important;
}

.sro-empty {
    margin: 0;
    font-size: 15px;
    color: #7a8499;
}

.sro-sublist {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0 0 0 18px;
    list-style: none;
}

.sro-subitem {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.sro-subitem::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: -14px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sro-navy);
}

.sro-subitem__name {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--sro-navy);
}

@media (min-width: 768px) {
    .sro-page {
        --sro-pad: 24px;
    }

    .sro-wrap {
        gap: 20px;
        padding-bottom: 56px;
    }

    .sro-title {
        font-size: 28px;
        max-width: 920px;
    }

    .sro-card {
        gap: 24px;
        padding: 36px 40px;
    }

    .sro-list {
        gap: 22px;
    }

    .sro-item__title {
        font-size: 16px;
    }

    .sro-item__price,
    .sro-item__order,
    .sro-subitem__name {
        font-size: 15px;
    }

    .sro-item__row {
        gap: 12px;
    }

    .sro-sublist {
        gap: 16px;
        padding-left: 22px;
    }
}

@media (min-width: 1024px) {
    .sro-page {
        --sro-pad: 20px;
    }

    .sro-title {
        font-size: 32px;
    }

    .sro-card {
        padding: 40px 48px;
    }

    .sro-item__title {
        font-size: 17px;
    }
}
