.teach-elsewhere-page {
    --te-bg: #e8d8b8;
    --te-text: #3b3a35;
    --te-heading: #27343b;
    --te-accent: #b8202d;
    --te-accent-dark: #8f1520;
    --te-line: #d9958f;
    --te-white: #ffffff;
    --te-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
    --te-radius: 20px;
    --te-radius-lg: 24px;
    background: var(--te-bg);
    color: var(--te-text);
}

.teach-elsewhere-page * {
    box-sizing: border-box;
}

.te-container {
    width: min(100%, 1220px);
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.te-container--narrow {
    width: min(100%, 1160px);
}

.te-hero {
    min-height: 640px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
    position: relative;
    padding: 90px 0;
}

.te-hero__content {
    max-width: 520px;
    color: #fff;
}

.te-hero__title {
    margin: 0 0 18px;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 0.95;
    font-weight: 700;
    color: #fff;
}

.te-hero__text {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.92);
}

.te-hero__text p:last-child {
    margin-bottom: 0;
}

.te-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.te-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: var(--te-shadow);
}

.te-btn__arrow {
    line-height: 1;
}

.te-btn--primary {
    background: linear-gradient(180deg, #d33b47 0%, var(--te-accent) 100%);
    color: #fff;
}

.te-btn--primary:hover {
    background: linear-gradient(180deg, #c52e3a 0%, var(--te-accent-dark) 100%);
    transform: translateY(-1px);
}

.te-btn--ghost {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(7px);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.te-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.te-btn--light {
    background: #fff;
    color: var(--te-heading);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.te-btn--light:hover {
    transform: translateY(-1px);
}

.te-body {
    background: var(--te-bg);
    padding: 54px 0 80px;
}

.te-intro {
    max-width: 1020px;
    margin: 0 auto 46px;
    font-size: 14px;
    line-height: 1.7;
    color: #555047;
}

.te-country-cards {
    margin-bottom: 34px;
}

.te-country-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.te-country-card {
    text-align: center;
}

.te-country-card__title {
    margin: 0 0 14px;
    color: var(--te-heading);
    font-size: 22px;
    font-weight: 700;
}

.te-country-card__flag-wrap {
    display: block;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
}

.te-country-card__flag {
    display: block;
    width: 100%;
    max-width: 290px;
    margin: 0 auto;
    height: auto;
}

.te-sections {
    margin-top: 26px;
}

.te-section {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 34px;
    align-items: center;
    padding: 44px 0;
    border-top: 1px solid var(--te-line);
}

.te-section__media img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.te-section__title {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.05;
    color: var(--te-heading);
    font-weight: 700;
}

.te-section__text {
    font-size: 14px;
    line-height: 1.75;
    color: #4a463f;
}

.te-section__text p:last-child {
    margin-bottom: 0;
}

.te-bottom-cta {
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #cf3f48 0%, #a51724 100%);
    box-shadow: var(--te-shadow);
}

.te-bottom-cta__content {
    min-height: 132px;
    padding: 28px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.te-bottom-cta__text-wrap {
    color: #fff;
}

.te-bottom-cta__title {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: auto;
}

.te-bottom-cta__text {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
}

.te-bottom-cta__text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .te-country-cards__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .te-section {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .te-section__media img {
        height: auto;
    }

    .te-bottom-cta__content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .te-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .te-hero {
        min-height: 520px;
        padding: 70px 0;
    }

    .te-hero__title {
        font-size: 42px;
    }

    .te-hero__buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .te-btn {
        width: 100%;
        max-width: 320px;
    }

    .te-section__title,
    .te-bottom-cta__title,
    .te-country-card__title {
        font-size: 28px;
    }
}