.emteh-service-catalog {
    --service-accent: #f0801e;
    --service-accent-dark: #d86708;
    --service-ink: #202126;
    --service-muted: #6d7078;
    --service-line: #e5e6e9;
    --service-soft: #f6f5f3;
    --service-success: #1f7a4c;
    color: var(--service-ink);
    padding: 72px 20px 44px;
    background: #fff;
}

.emteh-service-catalog *,
.emteh-service-catalog *::before,
.emteh-service-catalog *::after {
    box-sizing: border-box;
}

.emteh-service-catalog__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.emteh-service-catalog__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: end;
    margin-bottom: 28px;
}

.emteh-service-catalog__eyebrow {
    margin: 0 0 10px;
    color: var(--service-accent-dark);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.emteh-service-catalog h2 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.emteh-service-catalog__lead {
    max-width: 780px;
    margin: 18px 0 0;
    color: var(--service-muted);
    font-size: 18px;
    line-height: 1.55;
}

.emteh-service-catalog__aside {
    display: grid;
    gap: 10px;
    width: 232px;
}

.emteh-service-catalog__counter {
    min-width: 156px;
    padding: 18px 22px;
    border: 1px solid var(--service-line);
    border-radius: 18px;
    background: var(--service-soft);
}

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

.emteh-service-catalog__download {
    display: flex;
    gap: 11px;
    align-items: center;
    min-height: 62px;
    padding: 12px 15px;
    border: 1px solid var(--service-accent);
    border-radius: 16px;
    background: var(--service-accent);
    color: #fff;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(216, 103, 8, .2);
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}

.emteh-service-catalog__download:hover,
.emteh-service-catalog__download:focus-visible {
    border-color: var(--service-accent-dark);
    background: var(--service-accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(216, 103, 8, .26);
}

.emteh-service-catalog__download:focus-visible {
    outline: 3px solid rgba(240, 128, 30, .28);
    outline-offset: 3px;
}

.emteh-service-catalog__download svg {
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.emteh-service-catalog__download span,
.emteh-service-catalog__download b,
.emteh-service-catalog__download small {
    display: block;
}

.emteh-service-catalog__download b {
    font-size: 14px;
    line-height: 1.2;
}

.emteh-service-catalog__download small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .76);
    font-size: 11px;
    line-height: 1.2;
}

.emteh-service-catalog__counter strong {
    color: var(--service-accent-dark);
    font-size: 36px;
    line-height: 1;
}

.emteh-service-catalog__counter span {
    margin-top: 6px;
    color: var(--service-muted);
    font-size: 13px;
}

.emteh-service-terms {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.emteh-service-term {
    min-height: 124px;
    padding: 20px;
    border-radius: 18px;
    background: var(--service-ink);
    color: #fff;
}

.emteh-service-term--wide {
    grid-column: span 2;
    background: linear-gradient(135deg, #f0801e, #da6606);
}

.emteh-service-term span,
.emteh-service-term strong,
.emteh-service-term small {
    display: block;
}

.emteh-service-term span {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
}

.emteh-service-term strong {
    font-size: 23px;
    line-height: 1.2;
}

.emteh-service-term small {
    margin-top: 8px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    line-height: 1.35;
}

.emteh-service-tools {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(220px, 320px) auto;
    gap: 12px;
    align-items: end;
    padding: 20px;
    border: 1px solid var(--service-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(27, 28, 34, .07);
}

.emteh-service-search,
.emteh-service-category-select {
    display: block;
}

.emteh-service-search__label,
.emteh-service-category-select > span {
    display: block;
    margin: 0 0 7px 2px;
    color: var(--service-muted);
    font-size: 13px;
    font-weight: 600;
}

.emteh-service-search__field {
    position: relative;
    display: block;
}

.emteh-service-search__field svg {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    fill: none;
    stroke: #8b8e95;
    stroke-linecap: round;
    stroke-width: 2;
    pointer-events: none;
}

.emteh-service-search input,
.emteh-service-category-select select {
    width: 100%;
    height: 50px;
    border: 1px solid #d8d9dd;
    border-radius: 12px;
    background: #fff;
    color: var(--service-ink);
    font: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.emteh-service-search input {
    padding: 0 45px 0 45px;
}

.emteh-service-category-select select {
    padding: 0 40px 0 14px;
}

.emteh-service-search input:focus,
.emteh-service-category-select select:focus {
    border-color: var(--service-accent);
    box-shadow: 0 0 0 3px rgba(240, 128, 30, .16);
}

.emteh-service-search__clear {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #74767d;
    font-size: 24px;
    line-height: 30px;
    transform: translateY(-50%);
    cursor: pointer;
}

.emteh-service-reset {
    height: 50px;
    padding: 0 20px;
    border: 1px solid var(--service-line);
    border-radius: 12px;
    background: var(--service-soft);
    color: var(--service-ink);
    font-weight: 700;
    cursor: pointer;
}

.emteh-service-reset:hover,
.emteh-service-search__clear:hover {
    background: #ecebe8;
}

.emteh-service-chips {
    display: flex;
    gap: 8px;
    margin: 16px 0 0;
    padding: 2px 0 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.emteh-service-chips button {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid var(--service-line);
    border-radius: 999px;
    background: #fff;
    color: #4b4e55;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.emteh-service-chips button span {
    margin-left: 4px;
    color: #97999f;
}

.emteh-service-chips button.is-active {
    border-color: var(--service-accent);
    background: var(--service-accent);
    color: #fff;
}

.emteh-service-chips button.is-active span {
    color: rgba(255, 255, 255, .78);
}

.emteh-service-results {
    margin: 12px 0 10px;
    color: var(--service-muted);
    font-size: 13px;
}

.emteh-service-groups {
    border-top: 1px solid var(--service-line);
}

.emteh-service-group {
    border-bottom: 1px solid var(--service-line);
}

.emteh-service-group[hidden],
.emteh-service-row[hidden] {
    display: none !important;
}

.emteh-service-group > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 22px;
    gap: 15px;
    align-items: center;
    padding: 21px 10px;
    color: var(--service-ink);
    font-size: 18px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.emteh-service-group > summary::-webkit-details-marker {
    display: none;
}

.emteh-service-group__count {
    color: var(--service-muted);
    font-size: 12px;
    font-weight: 500;
}

.emteh-service-group__chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #7b7e84;
    border-bottom: 2px solid #7b7e84;
    transform: rotate(45deg) translateY(-3px);
    transition: transform .2s;
}

.emteh-service-group[open] .emteh-service-group__chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.emteh-service-table {
    margin: 0 0 18px;
    overflow: hidden;
    border: 1px solid var(--service-line);
    border-radius: 14px;
}

.emteh-service-table__head,
.emteh-service-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 150px 130px;
    gap: 12px;
    align-items: center;
}

.emteh-service-table__head {
    min-height: 44px;
    padding: 0 16px;
    background: #eeece8;
    color: #6c6f76;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.emteh-service-row {
    position: relative;
    min-height: 64px;
    padding: 11px 16px;
    border-top: 1px solid var(--service-line);
    background: #fff;
    cursor: pointer;
    transition: background .18s, box-shadow .18s;
}

.emteh-service-row:hover {
    background: #fffaf6;
}

.emteh-service-row.is-selected {
    background: #fff7ef;
    box-shadow: inset 3px 0 var(--service-accent);
}

.emteh-service-row__name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.emteh-service-row__hours,
.emteh-service-row__price {
    font-size: 14px;
    white-space: nowrap;
}

.emteh-service-row__price {
    font-weight: 700;
}

.emteh-service-row small {
    display: none;
}

.emteh-service-row__select {
    display: flex;
    justify-content: flex-end;
}

.emteh-service-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.emteh-service-row__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d5d7db;
    border-radius: 9px;
    background: #fff;
    color: #494c52;
    font-size: 12px;
    font-weight: 700;
}

.emteh-service-row__action span {
    margin-right: 6px;
    color: var(--service-accent-dark);
    font-size: 19px;
    font-weight: 400;
}

.emteh-service-checkbox:focus-visible + .emteh-service-row__action {
    outline: 3px solid rgba(240, 128, 30, .3);
    outline-offset: 2px;
}

.emteh-service-checkbox:checked + .emteh-service-row__action {
    border-color: var(--service-success);
    background: var(--service-success);
    color: #fff;
}

.emteh-service-checkbox:checked + .emteh-service-row__action span {
    color: #fff;
    font-size: 0;
}

.emteh-service-checkbox:checked + .emteh-service-row__action span::after {
    content: '✓';
    font-size: 15px;
}

.emteh-service-checkbox:checked + .emteh-service-row__action b {
    font-size: 0;
}

.emteh-service-checkbox:checked + .emteh-service-row__action b::after {
    content: 'Выбрано';
    font-size: 12px;
}

.emteh-service-empty {
    padding: 50px 20px;
    border: 1px dashed #d5d7db;
    border-radius: 16px;
    text-align: center;
}

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

.emteh-service-empty span {
    margin-top: 8px;
    color: var(--service-muted);
}

.emteh-service-selection {
    position: sticky;
    z-index: 20;
    bottom: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 28px;
    align-items: center;
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: rgba(32, 33, 38, .96);
    color: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
    backdrop-filter: blur(10px);
}

.emteh-service-selection[hidden] {
    display: none;
}

.emteh-service-selection > div > span,
.emteh-service-selection small,
.emteh-service-selection__total span,
.emteh-service-selection__total strong {
    display: block;
}

.emteh-service-selection small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
}

.emteh-service-selection__total {
    min-width: 130px;
}

.emteh-service-selection__total span {
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
}

.emteh-service-selection__total strong {
    margin-top: 2px;
    font-size: 20px;
    white-space: nowrap;
}

#emteh-service-to-form {
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 11px;
    background: var(--service-accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

#emteh-service-to-form:hover:not(:disabled) {
    background: #ff8d29;
}

#emteh-service-to-form:disabled {
    background: #5a5c62;
    color: #96989d;
    cursor: default;
}

.emteh-service-form-selection {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-left: 3px solid var(--service-accent, #f0801e);
    border-radius: 6px;
    background: #fff7ef;
    color: #4b4e55;
    font-size: 13px;
    line-height: 1.45;
}

.md-resp-send.is-loading {
    opacity: .65;
    cursor: wait;
}

@media (max-width: 900px) {
    .emteh-service-terms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .emteh-service-tools {
        grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
    }

    .emteh-service-reset {
        grid-column: 1 / -1;
    }

    .emteh-service-table__head,
    .emteh-service-row {
        grid-template-columns: minmax(0, 1fr) 100px 130px 118px;
    }
}

@media (max-width: 700px) {
    .emteh-service-catalog {
        padding: 48px 14px 34px;
    }

    .emteh-service-catalog__intro {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .emteh-service-catalog__aside {
        grid-template-columns: auto minmax(0, 1fr);
        width: 100%;
    }

    .emteh-service-catalog__counter {
        display: flex;
        gap: 10px;
        align-items: baseline;
        width: fit-content;
        min-width: 0;
        padding: 12px 15px;
    }

    .emteh-service-catalog__download {
        min-height: 54px;
        padding: 10px 13px;
    }

    .emteh-service-catalog__counter strong {
        font-size: 26px;
    }

    .emteh-service-catalog__counter span {
        margin: 0;
    }

    .emteh-service-catalog__lead {
        font-size: 16px;
    }

    .emteh-service-terms {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .emteh-service-term {
        min-height: 112px;
        padding: 15px;
    }

    .emteh-service-term--wide {
        grid-column: 1 / -1;
    }

    .emteh-service-term strong {
        font-size: 18px;
    }

    .emteh-service-tools {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .emteh-service-reset {
        grid-column: auto;
    }

    .emteh-service-chips {
        display: none;
    }

    .emteh-service-results {
        margin-top: 14px;
    }

    .emteh-service-group > summary {
        grid-template-columns: minmax(0, 1fr) auto 18px;
        gap: 10px;
        padding: 18px 2px;
        font-size: 16px;
    }

    .emteh-service-table {
        border: 0;
        border-radius: 0;
    }

    .emteh-service-table__head {
        display: none;
    }

    .emteh-service-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 14px;
        margin-bottom: 8px;
        padding: 14px;
        border: 1px solid var(--service-line);
        border-radius: 12px;
    }

    .emteh-service-row.is-selected {
        border-color: rgba(240, 128, 30, .6);
        box-shadow: inset 3px 0 var(--service-accent);
    }

    .emteh-service-row__name {
        grid-column: 1 / -1;
        font-size: 14px;
    }

    .emteh-service-row__hours,
    .emteh-service-row__price {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        font-size: 14px;
    }

    .emteh-service-row__hours {
        grid-column: 1;
        grid-row: 2;
    }

    .emteh-service-row__price {
        grid-column: 1;
        grid-row: 3;
    }

    .emteh-service-row small {
        display: block;
        margin-bottom: 3px;
        color: var(--service-muted);
        font-size: 10px;
        font-weight: 500;
    }

    .emteh-service-row__select {
        grid-column: 2;
        grid-row: 2 / span 2;
        align-self: end;
    }

    .emteh-service-row__action {
        min-width: 42px;
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 50%;
    }

    .emteh-service-row__action span {
        margin: 0;
        font-size: 23px;
    }

    .emteh-service-row__action b {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .emteh-service-checkbox:checked + .emteh-service-row__action b::after {
        content: '';
    }

    .emteh-service-selection {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 16px;
        bottom: 8px;
        padding: 13px;
    }

    .emteh-service-selection small {
        display: none;
    }

    .emteh-service-selection__total {
        min-width: 0;
        text-align: right;
    }

    .emteh-service-selection__total strong {
        font-size: 17px;
    }

    #emteh-service-to-form {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 430px) {
    .emteh-service-catalog__aside {
        grid-template-columns: 1fr;
    }

    .emteh-service-catalog__counter {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .emteh-service-catalog *,
    .emteh-service-catalog *::before,
    .emteh-service-catalog *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
