/* ION Heat — Materials */

.materials .container {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    padding-top: 100px;
    padding-bottom: 100px;
}

.materials__info {
    display: flex;
    flex-direction: row;
    gap: 56px;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
    margin-bottom: 40px;
}

.materials__img {
    flex-shrink: 0;
    width: 60%;
    height: 554px;
    object-fit: cover;
    border-radius: 6px;
}

.materials__text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    flex: 1;
}

.materials__title {
    color: var(--text);
    text-align: left;
    font-family: var(--h2-font-family);
    font-size: var(--h2-font-size);
    line-height: var(--h2-line-height);
    font-weight: var(--h2-font-weight);
    align-self: stretch;
}

.materials__desc {
    color: var(--text);
    text-align: left;
    font-family: "Manrope", sans-serif;
    font-size: clamp(18px, 2vw, 32px);
    line-height: 130%;
    font-weight: 500;
}

/* Кнопки-табы */
.materials__tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
}

.materials__tab {
    border-radius: 6px;
    border: 1px solid var(--main);
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    flex: 1;
}

.materials__tab:hover,
.materials__tab--active {
    background: var(--main);
}

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

.materials__tab:hover span,
.materials__tab--active span {
    color: var(--white);
}

/* ── Адаптив ────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .materials__info {
        flex-direction: column;
        gap: 32px;
    }

    .materials__img {
        width: 100%;
        height: auto;
        aspect-ratio: 858 / 554;
    }

    .materials__text {
        width: 100%;
    }

    .materials__title {
        font-size: clamp(32px, 5vw, 64px);
    }
}

@media (max-width: 768px) {
    .materials .container {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .materials__tabs {
        gap: 12px;
    }

    .materials__tab {
        padding: 12px 24px;
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .materials__tab {
        flex: 1 1 100%;
    }


    .materials__tab span {
   
        font-size: 14px;
  
    }
    

}




/* Вариант: текст слева + бейджи в колонку справа */
.materials--row .container {
    flex-direction: row;
    gap: 107px;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.materials--row .materials__title {
    width: 1012px;
    max-width: 65%;
    text-align: center;
    flex-shrink: 0;
}

.materials--row .materials__tabs {
    flex-direction: column;
    flex: 1;
    gap: 24px;
}

.materials--row .materials__tab {
    flex: none;
    align-self: stretch;
    justify-content: center;
}

@media (max-width: 1200px) {
    .materials--row .container {
        flex-direction: column;
        gap: 40px;
    }

    .materials--row .materials__title {
        width: 100%;
        max-width: 100%;
        text-align: left;
    }

    .materials--row .materials__tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }
}