.engineer-modal,
.engineer-modal *,
.engineer-contacts,
.engineer-contacts * {
    box-sizing: border-box;
}

.engineer-contacts {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    padding: 44px 90px 45px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .07);
    color: #111;
    font-family: Arial, sans-serif;
    text-align: center;
}

.engineer-contacts__title {
    margin: 0 0 26px;
    padding: 0;
    color: #070707;
    font: 700 24px/1.2 Arial, sans-serif;
    text-align: center;
    text-transform: none;
}

.engineer-contacts__items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.engineer-contacts__item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #a0000e;
    font: 400 18px/1.25 Arial, sans-serif;
    text-decoration: none;
    transition: color .2s ease;
}

.engineer-contacts__item:hover {
    color: #760009;
    text-decoration: none;
}

.engineer-contacts__icon {
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.engineer-contacts__max {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    min-height: 53px;
    margin-top: 21px;
    padding: 10px 20px;
    border: 1px solid #d7dde2;
    border-radius: 28px;
    background: #f1f3f5;
    color: #171717;
    font: 400 15px/1.2 Arial, sans-serif;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.engineer-contacts__max:hover {
    border-color: #c8cfd5;
    background: #e9edf0;
    color: #171717;
    text-decoration: none;
}

.engineer-contacts__max-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 4px solid #5d6a78;
    border-radius: 7px;
}

.engineer-contacts__max-icon::before {
    content: '';
    position: absolute;
    inset: 1px;
    border: 2px solid #5d6a78;
    border-radius: 50%;
}

body.engineer-modal-opened {
    overflow: hidden;
}

.engineer-form-open {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 35px;
    padding: 12px 20px;
    border: 0;
    border-radius: 26px;
    background: #7d000b;
    color: #fff;
    font: 400 15px/1.2 Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 9px 20px rgba(125, 0, 11, .14);
    transition: background-color .2s ease, transform .2s ease;
}

.engineer-form-open:hover {
    background: #650008;
    transform: translateY(-1px);
}

.engineer-modal[hidden] {
    display: none;
}

.engineer-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity .2s ease;
}

.engineer-modal--visible {
    opacity: 1;
}

.engineer-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.engineer-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 360px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border: 4px solid #85000d;
    border-radius: 10px;
    background: #fff;
    color: #111;
    transform: translateY(12px);
    transition: transform .2s ease;
}

.engineer-modal--visible .engineer-modal__dialog {
    transform: translateY(0);
}

.engineer-modal__close {
    position: absolute;
    z-index: 2;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 2px solid #85000d;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.engineer-modal__close::before,
.engineer-modal__close::after {
    content: '';
    position: absolute;
    top: 13px;
    left: 6px;
    width: 15px;
    height: 2px;
    background: #85000d;
}

.engineer-modal__close::before {
    transform: rotate(45deg);
}

.engineer-modal__close::after {
    transform: rotate(-45deg);
}

.engineer-modal__header {
    padding: 15px 34px 19px;
    border-bottom: 1px solid #e2e2e2;
    text-align: center;
}

.engineer-modal__title {
    margin: 0;
    padding: 0;
    color: #000;
    text-transform: none;
}

.engineer-modal__subtitle {
    margin: 10px 0 0;
    color: #111;
    font: 400 14px/1.3 Arial, sans-serif;
}

.engineer-form {
    padding: 14px 32px 12px;
    font-family: Arial, sans-serif;
}

.engineer-form__field {
    margin-bottom: 14px;
}

.engineer-form__field input,
.engineer-form__field textarea {
    display: block;
    width: 100%;
    margin: 0;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    outline: none;
    background: #f7f7f7;
    color: #222;
    font: 400 15px/1.3 Arial, sans-serif;
    transition: border-color .2s ease, background-color .2s ease;
}

.engineer-form__field input {
    height: 53px;
    padding: 0 10px;
}

.engineer-form__field textarea {
    min-height: 103px;
    padding: 14px 10px;
    resize: vertical;
}

.engineer-form__field input:focus,
.engineer-form__field textarea:focus {
    border-color: #85000d;
    background: #fff;
}

.engineer-form__field--error input,
.engineer-form__field--error textarea {
    border-color: #b40012;
}

.engineer-form__file {
    position: relative;
    margin-bottom: 18px;
    padding: 10px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #f7f7f7;
}

.engineer-form__file-label,
.engineer-form__file-note {
    display: block;
    color: #777;
    font: 400 12px/1.3 Arial, sans-serif;
}

.engineer-form__file-note {
    margin-top: 5px;
}

.engineer-form__file-button {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 35px;
    margin-top: 7px;
    padding: 5px 10px;
    overflow: hidden;
    border: 1px solid #333;
    border-radius: 3px;
    background: #fff;
    color: #222;
    font: 400 14px/1.2 Arial, sans-serif;
    cursor: pointer;
}

.engineer-form__file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.engineer-form__file-plus {
    flex: 0 0 auto;
    margin-right: 8px;
    font-size: 21px;
    font-weight: 300;
    line-height: 1;
}

[data-file-name] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.engineer-form__consent {
    display: flex;
    align-items: flex-start;
    color: #72b5ea;
    font: 400 10px/1.25 Arial, sans-serif;
    cursor: pointer;
}

.engineer-form__consent input {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    margin: 1px 5px 0 0;
}

.engineer-form__consent a {
    color: inherit;
    text-decoration: underline;
}

.engineer-form__consent b {
    color: #b40012;
}

.engineer-form__error {
    display: block;
    margin-top: 4px;
    color: #b40012;
    font: 400 11px/1.2 Arial, sans-serif;
}

.engineer-form__status {
    min-height: 17px;
    margin: 8px 0;
    text-align: center;
    font: 400 12px/1.3 Arial, sans-serif;
}

.engineer-form__status--error {
    color: #b40012;
}

.engineer-form__status--success {
    color: #287a25;
}

.engineer-form__submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 15px;
    border: 0;
    border-radius: 4px;
    background: #85000d;
    color: #fff;
    font: 700 14px/1.2 Arial, sans-serif;
    cursor: pointer;
    transition: background-color .2s ease, opacity .2s ease;
}

.engineer-form__submit:hover {
    background: #6d000a;
}

.engineer-form__submit:disabled {
    cursor: wait;
    opacity: .75;
}

.engineer-form__submit--loading span {
    opacity: 0;
}

.engineer-form__submit--loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: engineer-form-spin .7s linear infinite;
}

.engineer-form__report {
    display: inline-flex;
    align-items: center;
    margin-top: 22px;
    color: #9b9b9b;
    font: 400 11px/1.2 Arial, sans-serif;
    text-decoration: underline;
}

.engineer-form__report span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    margin-left: 7px;
    border-radius: 50%;
    background: #b7b7b7;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
}

.engineer-form__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@keyframes engineer-form-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 420px) {
    .engineer-contacts {
        margin: 28px auto;
        padding: 34px 24px 36px;
        border-radius: 20px;
    }

    .engineer-contacts__title {
        margin-bottom: 22px;
        font-size: 22px;
    }

    .engineer-contacts__item {
        font-size: 16px;
    }

    .engineer-form-open {
        margin-top: 28px;
    }

    .engineer-modal {
        padding: 8px;
    }

    .engineer-modal__dialog {
        max-height: calc(100vh - 16px);
    }

    .engineer-modal__header {
        padding-right: 32px;
        padding-left: 32px;
    }

    .engineer-modal__title {
        font-size: 22px;
    }

    .engineer-form {
        padding-right: 24px;
        padding-left: 24px;
    }
}
