.tmchs {
    --tmchs-primary: #f08018;
    --tmchs-dark: #1d242c;
    --tmchs-text: #394656;
    --tmchs-muted: #556981;
    --tmchs-line: #c7d0db;
    --tmchs-white: #fff;
    --tmchs-radius: 8px;
    position: relative;
    width: 100%;
    font-family: "Montserrat", Sans-serif;
}

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

.tmchs__shell {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--tmchs-radius);
    background: #ffffffc7;
}

.tmchs__viewport {
    position: relative;
    min-height: 320px;
}

.tmchs__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
}

.tmchs__slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.tmchs__content {
    min-height: 320px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 480px);
    align-items: center;
    gap: 48px;
    padding: 28px 56px 24px 96px;
}

.tmchs__text {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: start;
    gap: 16px;
}

.tmchs__label {
    color: var(--tmchs-muted);
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
}

.tmchs__heading {
    max-width: 720px;
    margin: 0;
    color: var(--tmchs-dark);
    font-size: 24px;
    line-height: 1.24;
    font-weight: 800;
}

.tmchs__button {
    min-width: 164px;
    min-height: 52px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 22px;
    border: 1px solid var(--tmchs-dark);
    border-radius: 4px;
    background: #ffffff00;
    color: var(--tmchs-dark);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none !important;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.tmchs__button:hover {
    background: var(--tmchs-dark);
    color: var(--tmchs-white);
    text-decoration: none !important;
}

.tmchs__button-icon {
    position: relative;
    width: 22px;
    height: 14px;
    display: inline-block;
    flex: 0 0 auto;
    transition: transform .25s ease;
}

.tmchs__button-icon::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 19px;
    height: 2px;
    background: currentColor;
    transform: translateY(-50%);
}

.tmchs__button-icon::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.tmchs__button:hover .tmchs__button-icon {
    transform: translateX(3px);
}

.tmchs__media {
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tmchs__machine-carousel {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 8px;
}

.tmchs__machine-viewport {
    position: relative;
    min-height: 252px;
}

.tmchs__machine-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(18px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.tmchs__machine-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.tmchs__machine-link {
    width: 100%;
    min-height: 252px;
    display: grid;
    grid-template-rows: minmax(216px, 1fr) auto;
    align-items: center;
    gap: 6px;
    color: var(--tmchs-dark);
    text-decoration: none !important;
}

.tmchs__machine-link:hover,
.tmchs__machine-link:focus {
    color: var(--tmchs-primary);
    text-decoration: none !important;
}

.tmchs__machine-image-wrap {
    width: 100%;
    min-height: 216px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tmchs__machine-carousel .tmchs__image {
    max-height: 216px;
}

.tmchs__machine-link:hover .tmchs__image,
.tmchs__machine-link:focus .tmchs__image {
    transform: scale(1.025);
}

.tmchs__machine-name {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 2px 8px;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
    text-align: center;
}

.tmchs__machine-name-icon {
    position: relative;
    width: 17px;
    height: 12px;
    flex: 0 0 auto;
}

.tmchs__machine-name-icon::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 15px;
    height: 2px;
    background: currentColor;
    transform: translateY(-50%);
}

.tmchs__machine-name-icon::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.tmchs__machine-nav {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.tmchs__machine-arrow {
    position: relative;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--tmchs-dark);
    cursor: pointer;
}

.tmchs__machine-arrow::before {
    content: "";
    width: 9px;
    height: 9px;
    display: inline-block;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
}

.tmchs__machine-arrow--prev::before {
    transform: rotate(-45deg);
}

.tmchs__machine-arrow--next::before {
    transform: rotate(135deg);
}

.tmchs__machine-arrow:hover,
.tmchs__machine-arrow:focus {
    color: var(--tmchs-primary);
}

.tmchs__machine-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tmchs__machine-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--tmchs-muted);
    opacity: .45;
    cursor: pointer;
}

.tmchs__machine-dot.is-active {
    width: 9px;
    height: 9px;
    background: var(--tmchs-primary);
    opacity: 1;
}

.tmchs__image {
    width: 100%;
    max-height: 270px;
    object-fit: contain;
    display: block;
    transition: transform .3s ease, filter .3s ease;
}

.tmchs__media--video:hover .tmchs__image {
    transform: scale(1.03);
}

.tmchs__placeholder {
    width: min(100%, 680px);
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tmchs-line);
    border-radius: var(--tmchs-radius);
    color: var(--tmchs-muted);
    font-size: 48px;
    font-weight: 800;
}

.tmchs__placeholder--machine {
    min-height: 216px;
    font-size: 30px;
}

.tmchs__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--tmchs-primary);
    color: var(--tmchs-white);
    cursor: pointer;
    box-shadow: 0 10px 32px rgba(29, 36, 44, .18);
    transform: translate(-50%, -50%);
    transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.tmchs__media--video:hover .tmchs__play,
.tmchs__play:hover,
.tmchs__play:focus {
    background: var(--tmchs-dark);
    color: var(--tmchs-white);
    box-shadow: 0 14px 38px rgba(29, 36, 44, .24);
    transform: translate(-50%, -50%) scale(1.04);
}

.tmchs__play span {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid currentColor;
}

.tmchs__nav {
    position: absolute;
    left: clamp(24px, 5vw, 80px);
    right: clamp(24px, 5vw, 80px);
    bottom: clamp(18px, 3vw, 48px);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.tmchs__arrow,
.tmchs__dot {
    pointer-events: auto;
}

.tmchs__arrow {
    width: 48px;
    height: 48px;
    padding:0;
    border: 0;
    background: transparent;
    color: var(--tmchs-dark);
    cursor: pointer;
}

.tmchs__arrow::before {
    content: "";
    width: 16px;
    height: 16px;
    display: inline-block;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
}

.tmchs__arrow--prev::before {
    transform: rotate(-45deg);
}

.tmchs__arrow--next::before {
    transform: rotate(135deg);
}

.tmchs__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tmchs__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--tmchs-muted);
    cursor: pointer;
    opacity: .55;
}

.tmchs__dot.is-active {
    width: 12px;
    height: 12px;
    background: var(--tmchs-primary);
    opacity: 1;
}

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

.tmchs-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tmchs-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(29, 36, 44, .78);
}

.tmchs-modal__dialog {
    position: relative;
    width: min(100%, 1080px);
    border-radius: var(--tmchs-radius);
    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.tmchs-modal__close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: var(--tmchs-white);
    color: var(--tmchs-dark);
    font-size: 30px;
    line-height: 1;
    font-family: "Montserrat", Sans-serif;
    cursor: pointer;
}

.tmchs-modal__close span {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
}

.tmchs-modal__close:hover,
.tmchs-modal__close:focus {
    background: var(--tmchs-primary);
    color: var(--tmchs-dark);
}

.tmchs-modal__frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: var(--tmchs-radius);
}

.tmchs-modal__frame iframe,
.tmchs-modal__frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

body.tmchs-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .tmchs__content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 34px 24px 88px;
    }

    .tmchs--single .tmchs__content {
        padding-bottom: 34px;
    }

    .tmchs__viewport,
    .tmchs__content {
        min-height: 0;
    }

    .tmchs__media {
        min-height: 220px;
    }

    .tmchs__image {
        max-height: 320px;
    }

    .tmchs__machine-viewport,
    .tmchs__machine-link {
        min-height: 272px;
    }

    .tmchs__machine-link {
        grid-template-rows: minmax(234px, 1fr) auto;
    }

    .tmchs__machine-image-wrap {
        min-height: 234px;
    }

    .tmchs__machine-carousel .tmchs__image {
        max-height: 234px;
    }

    .tmchs__placeholder {
        min-height: 220px;
        font-size: 32px;
    }

    .tmchs__heading {
        font-size: 24px;
    }

    .tmchs__nav {
        left: 16px;
        right: 16px;
        bottom: 18px;
    }
}

@media (max-width: 560px) {
    .tmchs__content {
        padding: 28px 18px 82px;
    }

    .tmchs--single .tmchs__content {
        padding-bottom: 28px;
    }

    .tmchs__heading {
        font-size: 18px;
    }

    .tmchs__label {
        font-size: 18px;
    }

    .tmchs__button {
        width: auto;
    }

    .tmchs__machine-viewport,
    .tmchs__machine-link {
        min-height: 236px;
    }

    .tmchs__machine-link {
        grid-template-rows: minmax(198px, 1fr) auto;
    }

    .tmchs__machine-image-wrap {
        min-height: 198px;
    }

    .tmchs__machine-carousel .tmchs__image {
        max-height: 198px;
    }

    .tmchs__placeholder--machine {
        min-height: 198px;
        font-size: 24px;
    }

    .tmchs__machine-name {
        font-size: 15px;
    }
}

@media (min-width: 1200px) {
    .tmchs__content {
        min-height: 320px;
        grid-template-columns: minmax(360px, 1fr) 480px;
        padding: 28px 72px 24px 110px;
    }

    .tmchs__text {
        max-width: 480px;
        justify-self: end;
    }

    .tmchs__nav {
        top: 50%;
        bottom: auto;
        right: auto;
        width: 2px;
        height: 260px;
        flex-direction: column;
        transform: translateY(-50%);
    }

    .tmchs__dots {
        flex-direction: column;
    }

    .tmchs__play {
        width: 80px;
        height: 80px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .tmchs__play span {
        border-top-width: 15px;
        border-bottom-width: 15px;
        border-left-width: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tmchs__slide,
    .tmchs__machine-slide,
    .tmchs__image,
    .tmchs__button,
    .tmchs__button-icon,
    .tmchs__play {
        transition: none;
    }
}
