/* Evolatex measurement form: isolated from checkout and public guide. */
.emf {
    --emf-accent: #c90042;
    --emf-muted: #716465;
    --emf-line: #d8cbca;
    padding: calc(var(--evo-header-height, 76px) + 48px) 0 64px;
    background: #f4efe8;
    color: #171416;
    font-family: var(--font-body, "Manrope", sans-serif);
}

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

.emf [hidden] {
    display: none !important;
}

.emf__container {
    width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
}

.emf__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.emf h1,
.emf h2 {
    font-family: var(--font-heading, "Oswald", sans-serif);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: inherit;
}

.emf h1 {
    margin: 0;
    font-size: clamp(58px, 7.6vw, 74px);
}

.emf h1 span {
    color: var(--emf-accent);
}

.emf h2 {
    margin: 0 0 24px;
    font-size: clamp(36px, 3.8vw, 54px);
    overflow-wrap: anywhere;
}

.emf p {
    font-size: 15px;
    line-height: 1.75;
}

.emf__intro {
    max-width: 760px;
    margin: 24px 0 12px;
}

.emf .emf__notice {
    margin: 0 0 32px;
    color: var(--emf-muted);
    font-size: 13px;
}

.emf a,
.emf__link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.emf button,
.emf input {
    font: inherit;
}

.emf button {
    cursor: pointer;
}

.emf__link {
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
}

.emf button:disabled {
    opacity: 0.4;
    cursor: default;
}

.emf__progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.emf__progress {
    display: block;
    width: 100%;
    height: 3px;
    margin: 12px 0 36px;
    border: 0;
    appearance: none;
    background: #e2d6d5;
    color: var(--emf-accent);
}

.emf__progress::-webkit-progress-bar {
    background: #e2d6d5;
}

.emf__progress::-webkit-progress-value {
    background: var(--emf-accent);
}

.emf__progress::-moz-progress-bar {
    background: var(--emf-accent);
}

.emf__step {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(32px, 4vw, 64px);
}

.emf__visual {
    position: sticky;
    top: calc(var(--evo-header-height, 76px) + 24px);
    display: grid;
    place-items: center;
    min-width: 0;
    aspect-ratio: 3 / 2;
    background: #e9ded7;
    overflow: hidden;
}

.emf__visual img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
}

.emf__image-note {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 10px;
    background: #f4efe8;
    font-size: 12px;
}

.emf__position {
    display: block;
    margin: 0 0 18px;
    color: var(--emf-muted);
    font-size: 14px;
}

.emf__hint {
    min-height: 78px;
    margin: 0 0 28px;
    color: #51474b;
}

.emf__label {
    display: block;
    margin: 0 0 10px;
    font-size: 14px;
}

.emf__input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #8a777d;
    background: #faf6f1;
}

.emf__input-wrap:focus-within {
    outline: 2px solid var(--emf-accent);
    outline-offset: 3px;
}

.emf__input-wrap input {
    width: 100%;
    min-width: 0;
    height: 86px;
    padding: 14px 22px;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    color: #171416;
    font-family: var(--font-heading, "Oswald", sans-serif);
    font-size: 46px;
}

.emf__input-wrap > span {
    padding: 8px 24px;
    border-left: 1px solid var(--emf-line);
    font-size: 17px;
}

.emf .emf__error {
    min-height: 24px;
    margin: 8px 0;
    font-size: 13px;
    color: #a10035;
}

.emf__help {
    margin-bottom: 28px;
    font-size: 14px;
}

.emf__help summary {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.emf__help p {
    color: var(--emf-muted);
}

.emf__button {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 16px 24px;
    border: 1px solid var(--emf-accent);
    border-radius: 0;
    background: var(--emf-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
}

.emf__button:hover:not(:disabled) {
    background: #a60037;
}

.emf__secondary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
}

.emf__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--emf-line);
    color: var(--emf-muted);
    font-size: 12px;
}

.emf__remember {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.emf__remember input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--emf-accent);
}

.emf__review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    margin: 28px 0;
}

.emf__review-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 70px;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--emf-line);
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

.emf__review-item strong {
    flex-shrink: 0;
    color: var(--emf-accent);
    font-size: 13px;
}

.emf .emf__footnote {
    color: var(--emf-muted);
    font-size: 13px;
}

.emf button:focus-visible,
.emf a:focus-visible,
.emf summary:focus-visible,
.emf input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--emf-accent);
    outline-offset: 4px;
}

@media (max-width: 800px) {
    .emf {
        padding-top: calc(var(--evo-header-height, 68px) + 32px);
    }

    .emf__container {
        width: calc(100% - 32px);
    }

    .emf__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .emf h1 {
        font-size: clamp(48px, 12vw, 64px);
    }

    .emf h2 {
        margin-bottom: 18px;
        font-size: 38px;
    }

    .emf__step {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .emf__visual {
        position: relative;
        top: auto;
    }

    .emf__hint {
        min-height: 0;
        margin-bottom: 22px;
    }

    .emf__progress {
        margin-bottom: 24px;
    }

    .emf__input-wrap input {
        height: 76px;
        font-size: 40px;
    }

    .emf__review-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .emf__review-item {
        gap: 12px;
    }

    .emf__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Почта и отправка анкеты. */
.emf__account,
.emf__send-panel {
    margin: 32px 0;
    padding: clamp(20px, 3vw, 36px);
    border: 1px solid var(--emf-line);
    background: #faf6f1;
}

.emf__account h2,
.emf__send-panel h2 {
    font-size: clamp(28px, 3vw, 38px);
}

.emf__login-form {
    max-width: 540px;
}

.emf__account input[type="email"],
.emf__contact-grid input,
.emf__send-panel select,
.emf__send-panel textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 8px 0 20px;
    padding: 12px;
    border: 1px solid #8a777d;
    border-radius: 0;
    background: #fffdf9;
    color: #171416;
    font: inherit;
}

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

.emf__contact-grid label,
.emf .emf__consent {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.emf .emf__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
}

.emf__consent input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--emf-accent);
}

.emf [data-server-status],
.emf [data-account-status] {
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .emf__contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .emf__account .emf__secondary {
        flex-wrap: wrap;
    }
}


/* Смена иллюстраций без показа кадра от предыдущей мерки. */
.emf__photo-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--emf-muted);
    font-size: 14px;
    text-align: center;
}

.emf__photo-ready {
    animation: emf-photo-appear 180ms ease-out both;
}

@keyframes emf-photo-appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .emf__photo-ready {
        animation: none;
    }
}
