у@font-face {
    font-family: "Raleway";
    src: url("../../fonts/service-contract-calculator/Raleway-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Raleway";
    src: url("../../fonts/service-contract-calculator/Raleway-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Raleway";
    src: url("../../fonts/service-contract-calculator/Raleway-SemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

.em-service-calculator {
    --em-background: #fafafa;
    --em-surface: #0d0d0c;
    --em-surface-soft: #252324;
    --em-text: #0d0d0c;
    --em-text-light: #fafafa;
    --em-muted: #cbcdcd;
    --em-muted-dark: #545454;
    --em-line: #cbcdcd;
    --em-line-dark: rgba(203, 205, 205, 0.3);
    --em-accent: #fc4922;
    --em-on-accent: #fafafa;
    box-sizing: border-box;
    width: 100%;
    padding: 64px 30px 100px;
    background: var(--em-background);
    color: var(--em-text);
    font-family: "Raleway", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.625;
    font-variant-numeric: lining-nums proportional-nums;
    -webkit-font-smoothing: antialiased;
}

.em-service-calculator *,
.em-service-calculator *::before,
.em-service-calculator *::after {
    box-sizing: border-box;
}

.em-service-calculator__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.em-service-calculator__header {
    max-width: 800px;
    margin: 0 0 48px;
}

.em-service-calculator__title {
    margin: 0;
    color: var(--em-text);
    font-family: inherit;
    font-size: clamp(34px, 4.4vw, 68px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.em-service-calculator__subtitle {
    max-width: 650px;
    margin: 20px 0 0;
    color: var(--em-text-light);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
}

.em-service-calculator__theme-toggle {
    margin-top: 20px;
    padding: 8px 12px;
    border: 1px solid var(--em-line);
    border-radius: 4px;
    background: transparent;
    color: var(--em-text-light);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.em-service-calculator__theme-toggle:hover {
    border-color: var(--em-accent);
}

.em-service-calculator__theme-toggle:focus-visible {
    outline: 2px solid var(--em-accent);
    outline-offset: 3px;
}

.em-service-calculator__status {
    min-height: 26px;
    margin: 0 0 16px;
    color: var(--em-muted-dark);
    font-size: 14px;
    line-height: 1.5;
}

.em-service-calculator__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.85fr);
    gap: 30px;
    align-items: start;
}

.em-service-calculator .em-form__section {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.em-service-calculator .em-form__section + .em-form__section {
    margin-top: 64px;
}

.em-service-calculator .em-form__title {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--em-text-light);
    font-family: inherit;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
}

.em-service-calculator .em-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.em-service-calculator .em-form__title + .em-form__fields {
    margin-top: 8px;
}

.em-service-calculator .em-form__title + .em-form__field--long {
    margin-top: 4px;
}

.em-service-calculator .em-form__field,
.em-service-calculator .em-form__option {
    min-width: 0;
}

.em-service-calculator .em-form__field--long {
    max-width: calc(50% - 10px);
}

.em-service-calculator__label {
    display: block;
    margin: 0 0 8px;
    color: var(--em-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.em-service-calculator .em-field-text,
.em-service-calculator .em-field-select {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

.em-service-calculator .em-field-text__input-wrapper,
.em-service-calculator .em-field-select__select-wrap {
    position: relative;
    height: 58px;
}

.em-service-calculator .em-field-text__input {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 14px 28px;
    border: 1px solid var(--em-line);
    border-radius: 4px;
    outline: none;
    background: var(--em-surface);
    color: var(--em-text-light);
    font: 500 18px/28px "Raleway", Arial, sans-serif;
    font-variant-numeric: lining-nums proportional-nums;
    transition: border-color 0.35s ease, background-color 0.35s ease;
    appearance: none;
    -moz-appearance: textfield;
}

.em-service-calculator .em-field-text__input::-webkit-outer-spin-button,
.em-service-calculator .em-field-text__input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.em-service-calculator .em-field-text__input:hover,
.em-service-calculator .em-field-text__input:focus-visible {
    border-color: var(--em-accent);
}

.em-service-calculator .em-field-text__input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.em-service-calculator .em-field-text__input--select {
    cursor: pointer;
    padding-right: 58px;
}

.em-service-calculator .em-field-select__select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 22px;
    width: 24px;
    height: 24px;
    pointer-events: none;
    background: center / contain no-repeat url("data:image/svg+xml;charset=UTF-8,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M16 10L12 14L8 10' stroke='%23CBCDCD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    transform: translateY(-50%);
}

.em-service-calculator .em-form__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.em-service-calculator .em-form__option {
    padding: 17px 0;
    border-bottom: 1px solid var(--em-line-dark);
}

.em-service-calculator .em-form__option--details {
    grid-column: 1 / -1;
}

.em-service-calculator .em-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.em-service-calculator .em-checkbox__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.em-service-calculator .em-checkbox__fake {
    position: relative;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 1px solid var(--em-line);
    border-radius: 4px;
    background: transparent;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.em-service-calculator .em-checkbox__fake::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 8px;
    width: 6px;
    height: 10px;
    border: solid var(--em-text-light);
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg) scale(0.7);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.em-service-calculator .em-checkbox__input:checked + .em-checkbox__fake {
    border-color: var(--em-accent);
    background: var(--em-accent);
}

.em-service-calculator .em-checkbox__input:checked + .em-checkbox__fake::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.em-service-calculator .em-checkbox__input:focus-visible + .em-checkbox__fake {
    outline: 2px solid var(--em-text-light);
    outline-offset: 3px;
}

.em-service-calculator .em-checkbox__label-title {
    color: var(--em-text-light);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.55;
}

.em-service-calculator .em-option-details {
    margin: 12px 0;
    padding: 20px;
    border-left: 2px solid var(--em-accent);
    background: var(--em-surface-soft);
}

.em-service-calculator .em-option-details[hidden] {
    display: none;
}

.em-service-calculator .em-form__button {
    margin-top: 38px;
}

.em-service-calculator .em-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: 58px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--em-text-light);
    font: 500 18px/28px "Raleway", Arial, sans-serif;
    cursor: pointer;
    transition: color 0.35s ease, background-color 0.35s ease, opacity 0.35s ease;
}

.em-service-calculator .em-button--orange {
    border-color: transparent;
    background: var(--em-accent);
    color: var(--em-on-accent);
}

.em-service-calculator .em-button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.em-service-calculator .em-button__text,
.em-service-calculator .em-button__hidden-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.em-service-calculator .em-button__text {
    transform: translateX(0);
}

.em-service-calculator .em-button__hidden-text {
    transform: translateX(100%);
}

.em-service-calculator .em-button:not(:disabled):hover .em-button__text {
    transform: translateX(-100%);
}

.em-service-calculator .em-button:not(:disabled):hover .em-button__hidden-text {
    transform: translateX(0);
}

.em-service-calculator .em-button:focus-visible {
    outline: 2px solid var(--em-text-light);
    outline-offset: 3px;
}

.em-service-calculator__result {
    position: sticky;
    top: 24px;
    padding: 34px 30px;
    border-top: 6px solid var(--em-accent);
    border-radius: 4px;
    background: #ffffff;
}

.em-service-calculator__result[hidden] {
    display: none;
}

.em-service-calculator__result-caption {
    margin: 0;
    color: var(--em-muted-dark);
    font-size: 16px;
    font-weight: 500;
}

.em-service-calculator__total {
    margin: 12px 0 0;
    color: var(--em-text);
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.em-service-calculator__total strong {
    font: inherit;
}

.em-service-calculator__vat {
    margin: 10px 0 0;
    color: var(--em-muted-dark);
    font-size: 14px;
}

.em-service-calculator__breakdown {
    margin: 30px 0 0;
    padding: 0;
    border-top: 1px solid #eff0f0;
}

.em-service-calculator__breakdown > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #eff0f0;
}

.em-service-calculator__breakdown dt,
.em-service-calculator__breakdown dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.em-service-calculator__breakdown dt {
    color: var(--em-muted-dark);
}

.em-service-calculator__breakdown dd {
    color: var(--em-text);
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.em-service-calculator__result-meta {
    margin-top: 24px;
    color: var(--em-muted-dark);
    font-size: 13px;
    line-height: 1.5;
}

.em-service-calculator__result-meta p {
    margin: 0;
}

.em-service-calculator__result-meta p + p {
    margin-top: 4px;
}

@media (max-width: 1023px) {
    .em-service-calculator {
        padding: 50px 24px 80px;
    }

    .em-service-calculator__header {
        margin-bottom: 38px;
    }

    .em-service-calculator__layout {
        grid-template-columns: 1fr;
    }

    .em-service-calculator__result {
        position: static;
    }
}

@media (max-width: 767px) {
    .em-service-calculator {
        padding: 38px 15px 60px;
    }

    .em-service-calculator__subtitle {
        margin-top: 14px;
        font-size: 16px;
    }

    .em-service-calculator .em-form {
        padding: 0;
    }

    .em-service-calculator .em-form__title {
        font-size: 20px;
    }

    .em-service-calculator .em-form__fields,
    .em-service-calculator .em-form__options {
        grid-template-columns: 1fr;
    }

    .em-service-calculator .em-form__field--long {
        max-width: none;
    }

    .em-service-calculator .em-field-text__input-wrapper,
    .em-service-calculator .em-field-select__select-wrap,
    .em-service-calculator .em-button {
        height: 50px;
    }

    .em-service-calculator .em-field-text__input,
    .em-service-calculator .em-button {
        font-size: 16px;
        line-height: 26px;
    }

    .em-service-calculator .em-field-text__input {
        padding: 11px 18px;
    }

    .em-service-calculator .em-field-text__input--select {
        padding-right: 48px;
    }

    .em-service-calculator .em-field-select__select-wrap::after {
        right: 12px;
    }

    .em-service-calculator .em-checkbox__label-title {
        font-size: 16px;
    }

    .em-service-calculator .em-option-details {
        margin-left: 0;
        padding: 18px 16px;
    }

    .em-service-calculator__result {
        padding: 28px 20px;
    }

    .em-service-calculator__breakdown > div {
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .em-service-calculator *,
    .em-service-calculator *::before,
    .em-service-calculator *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (orientation: portrait) and (max-width: 1023px) {
    .em-service-calculator .em-field-text__input {
        padding: 0.625rem 1.1875rem;
        font-size: 1rem;
        line-height: 1.625rem;
    }

    .em-service-calculator .em-field-text__input-wrapper,
    .em-service-calculator .em-field-select__select-wrap {
        height: 3.625rem;
    }
}
