/* ION Heat — Service Hero (Contract Engineering / Manufacturing) */

.service-hero {
    background: var(--white);
}

.service-hero .container {
    flex-direction: row;
    gap: 5.6vw;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: var(--section-padding-x);
    padding-right: 0;
}

.service-hero__content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
    flex-shrink: 0;
    max-width: 727px;
    width: calc(40% - 5.6vw);
}

.service-hero__text {
    display: flex;
    flex-direction: column;
    gap: 19px;
    align-self: stretch;
}

.service-hero__title {
    color: var(--text);
    font-family: "Open Sans", sans-serif;
    font-size: clamp(40px, 6vw, 84px);
    line-height: 130%;
    font-weight: 300;
    align-self: stretch;
}

.service-hero__subtitle {
    color: var(--text);
    font-family: "Manrope", sans-serif;
    font-size: clamp(18px, 2.5vw, 32px);
    line-height: 130%;
    font-weight: 500;
    align-self: stretch;
}

/* Список кнопок */
.service-hero__links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    width: 614px;
    max-width: 100%;
}

.service-hero__link {
    background: var(--fon-light);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 10px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    text-decoration: none;
    transition: background 0.2s;
}

.service-hero__link:hover {
    background: var(--accent);
}

.service-hero__link span {
    color: var(--text);
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 130%;
    font-weight: 300;
    text-transform: uppercase;
    transition: color 0.2s;
}

.service-hero__link:hover span {
    color: var(--white);
}

.service-hero__link img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Медиа — фото или видео */
.service-hero__media {
    flex-shrink: 0;
    max-width: 937px;
    width: 60%;
    height: auto;
    aspect-ratio: 937 / 773;
    display: block;
    margin-left: auto;
    position: relative;
    overflow: hidden;
}

.service-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Адаптив ────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .service-hero .container {
        flex-direction: column;
        gap: 40px;
        padding-right: var(--section-padding-x);
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .service-hero__content {
        width: 100%;
        max-width: 100%;
    }

    .service-hero__links {
        width: 100%;
    }

    .service-hero__media {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 937 / 773;
    }


    .service-hero--cm  .service-hero__content {
        width: 100% !important;
    }

    .service-hero--cm  .service-hero__media {
        width: 100% !important;
    }


}

.service-hero--cm {
    background: var(--fon-light);
}

.service-hero--cm  .service-hero__content {
  
    width: calc(45% - 5.6vw);
}

.service-hero--cm  .service-hero__media {

    width: 55%;
}




/* Вариант: картинка слева, фон серый */
.service-hero--img-left {
    background: #c0c5c9;
}

.service-hero--img-left .container {
    flex-direction: row;
  max-width: 1440px;
    gap: 5.6vw;
}

.service-hero--img-left .service-hero__media {
    order: -1;
    max-width: 650px;
   
    height: 773px;
    margin-left: 0;
    width: 50%;
}

.service-hero--img-left .service-hero__content {
    max-width: 660px;
    width: calc(50% - 5.6vw);
}

.service-hero--img-left .service-hero__links {
    gap: 25px;
}

.service-hero--img-left .service-hero__link {
    background: var(--button-who-choose);
}

@media (max-width: 1200px) {
    .service-hero--img-left .container {
        flex-direction: column;
        padding-left: var(--section-padding-x);
        padding-right: var(--section-padding-x);
        gap: 40px;
    }
    .service-hero--img-left .service-hero__content {
       
        width: 100%;
    }

    .service-hero--img-left .service-hero__media {
        order: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 650 / 773;
    }
}

/* Вариант: Compare — fon-light фон, серые кнопки, симметричный padding */
.service-hero--compare {
    background: var(--fon-light);
}

.service-hero--compare .container {
    flex-direction: row;
   
    padding-top: 100px;
    padding-bottom: 100px;
    gap: 0;
    justify-content: space-between;
    align-items: center;
    min-height: 818px;
}

.service-hero--compare .service-hero__media {
    order: -1;
    max-width: 817px;
    width: 55%;
    height: 612px;
    margin-left: 0;
}

.service-hero--compare .service-hero__content {
    max-width: 560px;
    width: 40%;
    gap: 38px;
}

.service-hero--compare .service-hero__links {
    gap: 14px;
    width: 100%;
}

.service-hero--compare .service-hero__link {
    background: var(--activ-who-choose);
    border-bottom: 1px solid var(--button-plasma);
}

.service-hero--compare .service-hero__link:hover {
    background: var(--accent);
}

@media (max-width: 1200px) {
    .service-hero--compare .container {
        flex-direction: column;
        padding-left: var(--section-padding-x);
        padding-right: var(--section-padding-x);
        min-height: auto;
        gap: 40px;
    }


    .service-hero--compare .service-hero__content {
        max-width: 100%;
        width:100%;
        
    }
    .service-hero--compare .service-hero__media {
        order: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 817 / 612;
    }

   
}