/* Модальное окно услуг. Основной style.css не изменяется. */
html.service-modal-open,
body.service-modal-open {
    overflow: hidden;
}

.service-more {
    cursor: pointer;
}

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4em;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.service-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.service-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 16, 31, .78);
    backdrop-filter: blur(.5em);
}

.service-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 48em);
    max-height: calc(100vh - 2.8em);
    overflow: auto;
    padding: 2.2em;
    border: .06em solid #e6edf4;
    border-radius: 1.5em;
    background: #fff;
    box-shadow: 0 2em 6em rgba(3, 20, 38, .28);
    transform: translateY(1em) scale(.985);
    transition: transform .22s ease;
}

.service-modal.is-open .service-modal__dialog {
    transform: none;
}

.service-modal__close {
    position: absolute;
    top: .85em;
    right: .85em;
    width: 2.5em;
    height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #10243a;
    font: inherit;
    font-size: 1.15em;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.service-modal__close:hover,
.service-modal__close:focus-visible {
    background: #e4edf6;
    transform: rotate(90deg);
    outline: none;
}

.service-modal__head {
    padding-right: 3em;
}

.service-modal__eyebrow {
    display: inline-block;
    margin-bottom: .8em;
    color: #0879e8;
    font-size: .78em;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.service-modal__title {
    margin: 0 0 .45em;
    color: #0b2034;
    font-size: 2em;
    line-height: 1.08;
}

.service-modal__description {
    margin: 0;
    color: #66788b;
    font-size: 1.02em;
    line-height: 1.65;
}

.service-modal__advantages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75em;
    margin: 1.6em 0;
}

.service-modal__advantages > div {
    padding: 1em;
    border: .06em solid #e6edf4;
    border-radius: 1em;
    background: #f7fafc;
}

.service-modal__advantages strong,
.service-modal__advantages span {
    display: block;
}

.service-modal__advantages strong {
    margin-bottom: .28em;
    color: #10243a;
}

.service-modal__advantages span {
    color: #738496;
    font-size: .78em;
    line-height: 1.4;
}

.service-modal__contact {
    padding: 1.5em;
    border-radius: 1.2em;
    background: #09233d;
    color: #fff;
}

.service-modal__contact-copy h3 {
    margin: 0 0 .35em;
    color: #fff;
    font-size: 1.35em;
}

.service-modal__contact-copy p {
    margin: 0 0 1.15em;
    color: rgba(255, 255, 255, .68);
    line-height: 1.5;
}

.service-modal__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75em;
}

.service-modal__form label {
    display: block;
}

.service-modal__form label > span {
    display: block;
    margin-bottom: .42em;
    color: rgba(255, 255, 255, .68);
    font-size: .76em;
}

.service-modal__form input {
    width: 100%;
    min-height: 3.2em;
    padding: .8em 1em;
    border: .06em solid rgba(255, 255, 255, .18);
    border-radius: .75em;
    outline: 0;
    background: rgba(255, 255, 255, .09);
    color: #fff;
    font: inherit;
    box-sizing: border-box;
}

.service-modal__form input::placeholder {
    color: rgba(255, 255, 255, .4);
}

.service-modal__form input:focus {
    border-color: rgba(255, 255, 255, .55);
}

.service-modal__submit {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: .15em;
    cursor: pointer;
}

.service-modal__phone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    margin-top: 1em;
    padding-top: 1em;
    border-top: .06em solid rgba(255, 255, 255, .13);
}

.service-modal__phone-row span {
    color: rgba(255, 255, 255, .55);
    font-size: .82em;
}

.service-modal__phone-row a {
    color: #fff;
    font-size: 1.12em;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.service-modal__phone-row a:hover {
    text-decoration: underline;
}

.service-modal__status {
    min-height: 1.2em;
    margin: .8em 0 0;
    color: #b9d9f7;
    font-size: .75em;
}

@media (max-width: 46em) {
    .service-modal {
        align-items: flex-end;
        padding: 0;
    }

    .service-modal__dialog {
        width: 100%;
        max-height: 92vh;
        padding: 1.5em 1.15em 1.25em;
        border-radius: 1.5em 1.5em 0 0;
        transform: translateY(100%);
    }

    .service-modal.is-open .service-modal__dialog {
        transform: none;
    }

    .service-modal__title {
        font-size: 1.65em;
    }

    .service-modal__advantages,
    .service-modal__form {
        grid-template-columns: 1fr;
    }

    .service-modal__advantages {
        gap: .55em;
    }

    .service-modal__advantages > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1em;
    }

    .service-modal__advantages strong {
        margin: 0;
    }

    .service-modal__advantages span {
        text-align: right;
    }

    .service-modal__submit {
        grid-column: auto;
    }

    .service-modal__phone-row {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* QUIZ: clickable service selection */
.quiz__types button{
    cursor:pointer;
    transition:border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.quiz__types button:hover{
    transform:translateY(-.12em);
}

.quiz__types button.is-selected{
    border-color:#0879e8;
    background:rgba(8,121,232,.09);
    color:#0879e8;
    box-shadow:0 0 0 .16em rgba(8,121,232,.10);
}

.quiz__selected{
    grid-column:1/-1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1em;
    padding:.9em 1em;
    border:1px solid #dbe7f1;
    border-radius:.8em;
    background:#f7fbff;
}

.quiz__selected span{
    color:#74879a;
    font-size:.78em;
}

.quiz__selected strong{
    color:#0b2034;
    text-align:right;
}

.quiz__other{
    grid-column:1/-1;
}

.quiz__other[hidden]{display:none!important}

.quiz__other label{
    display:block;
    margin-bottom:.45em;
    color:#42566a;
    font-size:.78em;
    font-weight:700;
}

.quiz__other input{
    width:100%;
}

.quiz__status{
    grid-column:1/-1;
    min-height:1.35em;
    margin:0;
    color:#42566a;
    font-size:.82em;
}

.quiz__form button[disabled]{
    opacity:.65;
    cursor:wait;
}

@media(max-width:760px){
    .quiz__selected{
        align-items:flex-start;
        flex-direction:column;
        gap:.25em;
    }
    .quiz__selected strong{text-align:left}
}
