/* =========================================================================
   B2B — MOBILE
   Tudo relativo a mobile fica aqui, sempre dentro de @media (max-width: 767px).
   Line-heights seguem a mesma proporção do desktop:
     h1  64/60  -> 40/37.5
     h2  24/28  -> 20/23.33
     hero a 18/20 -> 18/20
     about a 16/18 -> 16/18
     h3  18/22  -> 16/19.56
   ========================================================================= */

@media (max-width: 767px) {

    /* Sem scroll horizontal */
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
        margin-top: 24px;
    }

    /* ===================== HERO ===================== */
    .container_hero_section {
        height: auto;
        min-height: 600px;
        padding: 24px 20px 40px;
        box-sizing: border-box;
        gap: 0;
    }

    /* mesh gradient animado é só desktop */
    .container_hero_section .hero_mesh_bg {
        display: none;
    }

    .content_hero_section {
        width: 100%;
        flex: 1 0 auto;
        gap: 24px;
    }

    .content_hero_section .tag {
        padding: 8px 12px;
    }

    .content_hero_section .tag span {
        font-size: 12px;
        line-height: 16px;
    }

    .content_hero_section .body {
        flex: 0 0 auto;
        gap: 20px;
        align-self: stretch;
    }

    .content_hero_section h1 {
        width: 100%;
        font-size: 40px;
        line-height: 37.5px;
    }

    .content_hero_section h2 {
        width: 100%;
        font-size: 20px;
        line-height: 23.33px;
    }

    .content_hero_section .body .ctas {
        flex-direction: column;
        align-self: stretch;
        gap: 12px;
    }

    .content_hero_section .body .ctas > * {
        width: 100%;
        padding: 16px 24px;
        box-sizing: border-box;
        text-align: center;
    }

    .content_hero_section a {
        font-size: 18px;
        line-height: 20px;
    }

    /* ===================== ABOUT TT x NEBIUS ===================== */
    .container_about_tt_nebius {
        padding: 48px 16px 56px;
        margin: 0 8px;
        box-sizing: border-box;
    }

    .content_about_tt_nebius {
        width: 100%;
        gap: 40px;
    }

    .content_about_tt_nebius h1 {
        width: 100%;
        font-size: 40px;
        line-height: 37.5px;
    }

    .content_about_tt_nebius h2 {
        width: 100%;
        font-size: 20px;
        line-height: 23.33px;
    }

    .content_about_tt_nebius h3 {
        padding-left: 0;
        text-align: left;
        font-size: 16px;
        line-height: 19.56px;
    }

    /* bloco logos + texto + cta */
    .content_about_tt_nebius .ttXnebius {
        padding-left: 0;
        gap: 20px;
    }

    .content_about_tt_nebius .ttXnebius .logos_icons {
        flex-wrap: wrap;
        gap: 12px;
    }

    .content_about_tt_nebius .ttXnebius .logos_icons svg {
        height: 20px;
        width: auto;
        max-width: 100%;
    }

    .content_about_tt_nebius .ttXnebius .cta_nebius {
        align-self: flex-start;
    }

    .content_about_tt_nebius .ttXnebius .cta_nebius a {
        font-size: 16px;
        line-height: 18px;
    }

    /* ordem no mobile: h1 -> ttXnebius -> logo_cards -> gus_bg */
    .content_about_tt_nebius .logo_cards {
        order: 1;
        flex-direction: column;
        gap: 0;
    }

    .content_about_tt_nebius .gus_bg {
        order: 2;
    }

    .content_about_tt_nebius .logo_cards .card {
        width: 100%;
        flex: 0 0 auto;
        box-sizing: border-box;
        padding: 20px 0;
        border-top: 1px solid rgba(242, 241, 238, 0.14);
    }

    .content_about_tt_nebius .logo_cards .card:last-child {
        border-bottom: 1px solid rgba(242, 241, 238, 0.14);
    }

    /* depoimento Gustavo Fuga — foto full-bleed, texto embaixo */
    .content_about_tt_nebius .gus_bg {
        width: 100%;
        height: auto;
        min-height: 460px;
        padding: 24px;
        box-sizing: border-box;
        justify-content: flex-end;
        background:
            linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0.55) 45%, #1A1A1A 100%),
            url(../imagens/gusbg.png);
        background-position: 492px 1px;    
    }

    /* ===================== AI ERA ===================== */
    .content_ai_era {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 48px 16px 56px;
        box-sizing: border-box;
        gap: 48px;
    }

    .content_ai_era h1 {
        width: 100%;
        text-align: left;
        font-size: 40px;
        line-height: 37.5px;
    }

    .content_ai_era h2 {
        font-size: 20px;
        line-height: 23.33px;
    }

    .content_ai_era h3 {
        text-align: left;
        font-size: 16px;
        line-height: 20px;
    }

    /* bloco intro + cards de estatística */
    .content_ai_era .data {
        width: 100%;
        gap: 40px;
    }

    .content_ai_era .data .title {
        width: 100%;
        gap: 24px;
    }

    .content_ai_era .data .title > *:last-child {
        padding-left: 0;
    }

    .content_ai_era .data .cards {
        flex-direction: column;
        gap: 12px;
    }

    .content_ai_era .data .cards .card {
        width: 100%;
    }

    .content_ai_era .data .cards .card img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* metodologia */
    .content_ai_era .methodology {
        gap: 32px;
        align-self: stretch;
    }

    .content_ai_era .methodology .timeline {
        width: 100%;
        box-sizing: border-box;
        padding: 16px;
        gap: 24px;
    }

    /* numeração horizontal (1—2—3 com linha) não cabe no mobile */
    .content_ai_era .methodology .timeline .steps_numeration {
        display: none;
    }

    .content_ai_era .methodology .timeline .steps_cards {
        flex-direction: column;
        align-self: stretch;
        gap: 24px;
    }

    .content_ai_era .methodology .timeline .steps_cards .card,
    .content_ai_era .methodology .timeline .steps_cards .card.one,
    .content_ai_era .methodology .timeline .steps_cards .card.two,
    .content_ai_era .methodology .timeline .steps_cards .card.three {
        width: 100%;
        align-items: flex-start;
    }

    .content_ai_era .methodology .timeline .steps_cards .card h2,
    .content_ai_era .methodology .timeline .steps_cards .card.two h2 {
        width: 100%;
        text-align: left;
    }

    .content_ai_era .methodology .timeline .steps_cards .card h3 {
        text-align: left;
    }

    /* ===================== STRATEGIC CHALLENGE ===================== */
    .container_strategic_challenge {
        padding: 56px 0;
    }

    .content_strategic_challenge {
        width: 100%;
        box-sizing: border-box;
        padding: 0 16px;
        gap: 40px;
    }

    .content_strategic_challenge h1 {
        text-align: left;
        font-size: 40px;
        line-height: 37.78px; /* 68/72 */
    }

    .content_strategic_challenge h2 {
        width: 100%;
        font-size: 40px;
        line-height: 37.5px; /* 60/64 */
    }

    .content_strategic_challenge h3 {
        font-size: 18px;
        line-height: 22px; /* 22/18, inalterado */
    }

    .content_strategic_challenge p {
        font-size: 18px;
        line-height: 22.5px; /* 20/16 */
    }

    /* cards com ícone: linha → coluna, divisórias horizontais */
    .content_strategic_challenge .cards {
        flex-direction: column;
        gap: 0;
    }

    .content_strategic_challenge .cards .card,
    .content_strategic_challenge .cards .card.one,
    .content_strategic_challenge .cards .card.two,
    .content_strategic_challenge .cards .card.three {
        width: 100%;
        box-sizing: border-box;
        padding: 20px 0;
        border-right: none;
        border-top: 1px solid rgba(0, 0, 0, 0.14);
    }

    .content_strategic_challenge .cards .card.three {
        border-bottom: 1px solid rgba(0, 0, 0, 0.14);
    }

    .content_strategic_challenge .cards .card svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    /* features: largura fixa → 100% */
    .content_strategic_challenge .features .feature {
        width: 100%;
        box-sizing: border-box;
        padding: 20px 0;
    }

    .content_strategic_challenge .features .feature.first h3,
    .content_strategic_challenge .features .feature.second h3,
    .content_strategic_challenge .features .feature.third h3 {
        width: 100%;
    }

    /* company_contact — só ajuste de layout (fontes seguem o desktop) */
    .company_contact {
        width: calc(100% - 32px); /* 16px de margem de cada lado (centralizado pelo pai) */
        height: 554px;
        padding: 24px;
        box-sizing: border-box;
        justify-content: flex-end;
        align-items: flex-start;
        border-radius: 12px;
        /* gradiente do Figma (0deg = de baixo p/ cima); imagem inalterada */
        background:
            linear-gradient(0deg, #1A1A1A 47.37%, rgba(26, 26, 26, 0.00) 74.88%),
            url(../imagens/company_contact_mainIMG.png)  -124px -27px / cover no-repeat;
    }

    .content_company_contact {
        width: 100%;
        height: auto;
        gap: 20px;
        justify-content: flex-end;
    }
    .content_company_contact h1{
        font-size: 32px;
        line-height: 32px;
    }
    .content_company_contact h2{
        font-size: 16px;
        line-height: 20px;
        color: #A6A6A6;
    }

    /* ===================== CONTAINER TABLE ===================== */
    .container_table {
        padding: 56px 16px;
        gap: 56px;
        box-sizing: border-box;
    }

    /* ---------- content_table ---------- */
    .content_table {
        width: 100%;
        gap: 32px;
    }

    /* h1: intro (linha 216) + títulos dos cards */
    .content_table h1 {
        font-size: 20px;
        line-height: 20px; /* 32/32 */
    }

    /* no mobile o intro volta a ocupar a largura toda (sem o recuo do desktop) */
    .content_table > h1 {
        padding-left: 0;
    }

    .content_table h2 {
        font-size: 16px;
        line-height: 18.67px; /* 28/24 */
    }

    .content_table p {
        font-size: 14px;
        line-height: 16px; /* 16/14, inalterado */
    }

    .content_table a {
        font-size: 18px;
        line-height: 20px; /* 20/18, inalterado */
    }

    /* cards: grid 4x2 -> coluna com divisórias */
    .content_table .cards {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .content_table .cards .card {
        width: 100%;
        height: auto;
        flex: 0 0 auto;
        box-sizing: border-box;
        padding: 24px 0;
        gap: 12px;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .content_table .cards .card:last-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    /* specialist_call: linha -> coluna (segue a imagem: card escuro) */
    .content_table .specialist_call {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 24px;
        background: #2A2A2A;
    }

    .content_table .specialist_call h2#black_text {
        color: #F2F1EE;
    }

    .content_table .specialist_call .cta {
        align-self: stretch;
        background: #F2F1EE;
        border-bottom-color: #D5D4D2;
    }

    .content_table .specialist_call .cta a {
        color: #1A1A1A;
    }

    .content_table .specialist_call .cta svg path {
        stroke: #1A1A1A;
    }

    /* ---------- content_choosingTT ---------- */
    .content_choosingTT {
        gap: 40px;
    }

    .content_choosingTT h1 {
        font-size: 40px;
        line-height: 40px; /* 32/32 */
        text-align: center;
    }

    .content_choosingTT h2 {
        font-size: 24px;
        line-height: 28px; /* 28/24, inalterado */
    }

    .content_choosingTT span {
        font-size: 100px;
        line-height: 24px; /* pedido explícito */
    }

    .content_choosingTT h4 {
        font-size: 18px;
        line-height: 18px; /* 18/18, inalterado */
    }

    .content_choosingTT .rating {
        flex-direction: column;
        gap: 24px;
        align-self: stretch;
    }

    .content_choosingTT .rating .grade_block {
        width: 100%;
        height: 331px;
        box-sizing: border-box;
    }

    .content_choosingTT .rating .grade_block .logos {
        gap: 16px;
        flex-wrap: wrap;
        align-items: center;
    }

    /* logo do card (grade_block): PNG vira SVG só no mobile */
    .content_choosingTT .rating .grade_block .career_karma_logo_img {
        display: none;
    }

    .content_choosingTT .rating .grade_block .career_karma_logo_svg {
        display: block;
    }

    .content_choosingTT .rating .flor_louro {
        width: 100%;
        justify-content: center;
    }

    /* ---------- badges: carrossel de 5, fixas, setas ---------- */
    .content_choosingTT .badges {
        width: 344px; /* 88 + 4 x 64 = 5 badges com a sobreposição de -24px */
        max-width: 100%;
        height: auto;
        padding: 16px 0;
        overflow: hidden;
        box-sizing: border-box;
        justify-content: flex-start; /* mostra da 1ª à 5ª */
    }

    .content_choosingTT .badges .badges_track {
        transition: transform 0.3s ease;
        will-change: transform;
    }

    /* fixas: sem bounce/hover no mobile */
    .content_choosingTT .badges .badge {
        cursor: default;
    }

    .content_choosingTT .badges .badge:hover {
        z-index: auto;
    }

    .content_choosingTT .badges .badge:hover img {
        animation: none;
    }

    /* navegação (some no desktop via b2b.css) */
    .content_choosingTT .badges_nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
        margin-top: 8px;
    }

    .content_choosingTT .badges_nav .badges_arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid rgba(242, 241, 238, 0.24);
        border-radius: 999px;
        background: transparent;
        color: #F2F1EE;
        cursor: pointer;
    }

    .content_choosingTT .badges_nav .badges_arrow:disabled {
        opacity: 0.35;
        cursor: default;
    }

    /* ===================== REGISTRATION ===================== */
    .content_registration {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 64px 12px 72px 12px;
        align-items: stretch;
        gap: 32px;
        box-sizing: border-box;
        max-height: 1270px;
    }

    /* itens de grid têm min-width:auto por padrão, ou seja, o conteúdo
       interno (não encolhível) pode forçar a coluna além da tela mesmo com
       width:100%. min-width:0 permite encolher de verdade. */
    .content_registration .choice_box,
    .content_registration .widget_wrap {
        min-width: 0;
    }

    .content_registration h1 {
        font-size: 40px;
        line-height: 37.5px; /* 60/64 */
    }

    .content_registration h2 {
        font-size: 18px;
        line-height: 22px; /* 22/18, inalterado */
    }

    .content_registration h3 {
        font-size: 24px;
        line-height: 24px; /* 32/32 */
    }

    .content_registration p {
        font-size: 16px;
        line-height: 17.78px; /* 20/18 */
    }

    /* faixa de fotos do time acima do título (só mobile) */
    .content_registration .choice_box .registration_team_img {
        display: block;
        width: 144px;
        height: auto;
    }

    .content_registration .choice_box {
        width: 100%;
        gap: 24px;
    }

    .content_registration .choice_box .title {
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }

    .content_registration .choice_box .choice {
        width: 100%;
    }
    .content_registration .choice_box .choice .options{
        display: flex;
flex-direction: column;
align-items: flex-start;
gap: 12px;
align-self: stretch;
max-width: 314px;
    }

    /* opções podem quebrar em 2 linhas no mobile */
    .content_registration .choice_box .choice .options .option {
        width: 100%;
        height: auto;
        min-height: 56px;
        padding: 12px 16px;
    }

    /* "Outro" + campo de mensagem lado a lado, como no desktop */
    .content_registration .choice_box .choice .options .option_other_row {
        flex-direction: row;
        gap: 8px;
        min-width: 0;
    }

    .content_registration .choice_box .choice .options .option_other_row .option {
        width: auto;
        flex: 0 0 auto;
    }

    /* o <input> tem uma largura mínima intrínseca do navegador que não
       encolhe em flex sem min-width:0 — sem isso ele empurra a linha (e o
       .options/.option em volta) pra fora da tela no mobile */
    .content_registration .choice_box .choice .options .other_message,
    .content_registration .choice_box .choice .options .other_message input {
        min-width: 0;
    }

    /* widget ocupa a largura toda, abaixo do bloco de interesse */
    .content_registration .widget_wrap {
        width: 100%;
    }

    /* sem o "card" branco: os campos internos do widget ficam soltos
       direto sobre o fundo pêssego da seção, como no mock mobile */
    ds-widget {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-sizing: border-box;
        overflow: hidden; /* trava qualquer resquício interno que não encolha */
    }

    /* faq */
    .content_faq {
        width: 360px;
        min-width: unset;
        padding: 16px;
        box-sizing: border-box;

    }

    .head_faq {
        margin: 0;
    }
    /* Footnote */
    /* FOOTNOTE */
    .content_registration_footnote {
        min-width: unset;
        max-width: 100vw;
        flex-direction: column;
        gap: 32px;
        margin: 0 16px 48px 16px;
    }

    .sponsors_payment_mode {
        justify-content: flex-start;
        gap: 24px;
    }

    .content_footer {
        max-width: 100vw;
        min-width: unset;
        align-items: flex-start;
        margin: 0 16px;
    }

    .registration_box_footnote input {
        width: 328px;
    }

    .btn_registration_footnote {
        width: 328px;
    }

    .upper_footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        max-width: 350px;
        gap: 48px;
    }

    .why_triple_ten_footer_body,
    .courses_footer,
    .countries_footer,
    .contact_footer {
        gap: 8px;
    }

    .why_triple_ten_footer_body a:hover,
    .courses_footer a:hover {
        text-decoration: underline;
    }

    .lower_footer {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-start;
        max-width: 350px;
        gap: 32px;
    }

    .right_lower_footer {
        margin-left: 0;
    }

    .left_lower_footer {
        flex-direction: column;
    }

    /* ===================== INDICATE COMPANY ===================== */
    .container_indicate_company {
        padding: 40px 8px 56px;
        box-sizing: border-box;
    }

    .content_indicate_company {
        position: relative;
        flex-direction: column;
        width: 100%;
        height: 528px;
        align-items: stretch;
        gap: 0;
        border-radius: 16px;
        overflow: hidden;
        background: var(--Background-main, #1A1A1A);
        box-sizing: border-box;
    }

    .content_indicate_company .main_image_indicate_company {
        width: 100%;
        height: 300px;
        flex-shrink: 0;
        object-fit: cover;
        object-position: top center;
    }

    /* suaviza a transição da imagem pro texto (radial do Figma) */
    .content_indicate_company::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 300px; /* = altura da imagem */
        pointer-events: none;
        background: radial-gradient(134.77% 65.83% at 50% 0%, rgba(0, 0, 0, 0.00) 67.7%, var(--color-palette-black-90) 150%);
    }

    .content_indicate_company h1 {
        font-size: 24px;
        line-height: 24px; /* 32/32 */
    }

    .content_indicate_company h2 {
        font-size: 16px;
        line-height: 20px; /* 20/16, inalterado */
    }

    .content_indicate_company a {
        font-size: 18px;
        line-height: 20px; /* 20/18, inalterado */
    }

    .content_indicate_company .box_cta {
        flex: 1 1 auto;
        justify-content: space-between;
        padding: 0 12px;
        gap: 24px;
        box-sizing: border-box;
    }

    .content_indicate_company .box_cta .text {
        gap: 12px;
    }

    .content_indicate_company .box_cta .cta {
        width: 100%;
    }

    .content_indicate_company .box_cta .cta img {
        display: none;
    }

    /* ===================== HEADER (menu mobile) ===================== */
    .content_header {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        gap: 12px;
    }

    /* nav desktop some, hamburger aparece */
    .content_header .topics {
        display: none;
    }

    /* CTA do header vira só "Empresa" no mobile */
    .content_header .cta .cta_full {
        display: none;
    }

    .content_header .cta .cta_short {
        display: inline;
    }

    .mobile_icon_header {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: none;
        background: none;
        color: #F2F1EE; /* ícone branco */
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile_icon_header svg {
        width: 24px;
        height: 24px;
        display: block;
    }

    /* backdrop */
    .mobile_menu_backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1998;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile_menu_backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    /* overlay que desliza da direita */
    .mobile_menu_overlay {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        z-index: 1999;
        background: var(--Background-main, #1A1A1A);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        pointer-events: none;
    }

    .mobile_menu_overlay.active {
        transform: translateX(0);
        pointer-events: auto;
    }

    .mobile_menu_content {
        min-height: 100%;
        display: flex;
        flex-direction: column;
    }

    .mobile_menu_header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 16px;
        border-bottom: 1px solid rgba(242, 241, 238, 0.14);
    }

    .mobile_menu_logo svg {
        width: 99px;
        height: 22px;
        display: block;
    }

    .mobile_menu_close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: none;
        background: none;
        color: #F2F1EE;
        cursor: pointer;
    }

    .mobile_menu_nav {
        flex: 1 1 auto;
        padding: 8px 0;
    }

    .mobile_menu_list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile_menu_link {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 16px;
        box-sizing: border-box;
        background: none;
        border: none;
        text-align: left;
        text-decoration: none;
        color: #F2F1EE;
        font-family: var(--font-default, "Suisse Intl");
        font-size: 24px;
        font-weight: 500;
        line-height: 28px;
        cursor: pointer;
    }

    .mobile_menu_link:hover {
        background: rgba(242, 241, 238, 0.06);
    }

    .mobile_menu_buttons {
        margin-top: auto;
        padding: 24px 16px 32px;
    }

    .mobile_menu_buttons .btn_indique_empresa {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 16px 24px;
        border-radius: 12px;
        border-bottom: 2px solid #D5D4D2;
        background: #F2F1EE;
    }

    .mobile_menu_buttons .btn_indique_empresa a {
        color: #1A1A1A;
        text-decoration: none;
        font-family: var(--font-default, "Suisse Intl");
        font-size: 18px;
        font-weight: 500;
        line-height: 20px;
    }

    body.menu_open {
        overflow: hidden;
    }
}
