.tm-banner {
    margin: 24px 0;
}

.tm-banner__inner {
    display: flex;
    align-items: stretch;
    min-height: 420px;
    border-radius: 24px;
    background: rgba(26, 45, 112, 1);
    overflow: hidden;
}

.tm-banner__content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    padding: 48px;
}

.tm-banner__eyebrow,
.tm-banner__title,
.tm-banner__text {
    margin: 0;
}

.tm-banner__eyebrow {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-transform: uppercase;
    color: rgba(194, 201, 218, 1);
}

.tm-banner__title {
    font-size: 40px;
    font-weight: 600;
    line-height: 40px;
    color: #fff;
}

.tm-banner__text {
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    white-space: pre-line;
    color: rgba(194, 201, 218, 1);
}

.tm-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 32px;
    border-radius: 12px;
    background: #fff;
    color: #213786;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: opacity 0.2s;
}

.tm-banner__btn:hover {
    color: #213786;
    opacity: 0.85;
}

.tm-banner__media {
    flex: 0 0 640px;
    display: flex;
    padding: 30px 28px 30px 0;
}

.tm-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
    border-radius: 24px;
    display: block;
}

@media (max-width: 1100px) {
    .tm-banner__media {
        flex-basis: 48%;
    }
}

@media (max-width: 768px) {
    .tm-banner {
        margin: 16px 0;
    }

    .tm-banner__inner {
        flex-direction: column-reverse;
        min-height: 0;
    }

    .tm-banner__content {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
        gap: 20px;
        padding: 24px;
        align-items: stretch;
    }

    .tm-banner__title {
        font-size: 24px;
        font-weight: 500;
        line-height: 28px;
    }

    .tm-banner__text {
        font-size: 16px;
        line-height: 26px;
        white-space: normal;
    }

    .tm-banner__btn {
        width: 100%;
    }

    .tm-banner__media {
        flex: 0 0 auto;
        padding: 0;
    }

    .tm-banner__img {
        height: auto;
        aspect-ratio: 361 / 203;
        border-radius: 24px 24px 0 0;
    }
}
