/* ==========================================================================
   PARTNERS PAGE STYLES (FIGMA 1:1)
   ========================================================================== */

/* --- 1. GLOBAL & RESET --- */
.partners_page_container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
    font-family: 'Montserrat', sans-serif;
    color: #3D392A;
    background: #FFFFFF;
    overflow-x: hidden; /* Prevent horizontal scroll from absolute elements */
    padding-top: 140px;
}

.partners_mobile_header {
    display: none;
}

.partners_page_container * {
    box-sizing: border-box;
}

h1, h2, h3, h4, p {
    margin: 0;
}

/* --- 2. COMMON ELEMENTS --- */
.partners_section {
    max-width: 1280px;
    margin: 0 auto;
    margin-bottom: 80px;
    position: relative;
}

.partners_section_title {
    font-weight: 800;
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 40px;
    color: #3D392A;
}

/* Buttons */
.partners_btn_primary {
    background: #FECC17;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    height: 48px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #3D392A;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.partners_btn_primary:hover {
    background: #FFD84D;
    transform: translateY(-2px);
}

/* --- 3. HERO SECTION --- */
.partners_hero_section {
    max-width: 1280px;
    margin: 0 auto 80px auto;
    position: relative;
    background: #FFFFFF;
    border: 1px solid #F6F6F6;
    border-radius: 16px;
    height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.partners_hero_content {
    position: relative;
    z-index: 10;
    padding: 60px;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
}

.partners_hero_badge {
    font-weight: 600;
    font-size: 14px;
    color: #FECC17;
}

.partners_hero_text_block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partners_hero_title {
    font-weight: 800;
    font-size: 38px;
    line-height: 1.1;
    color: #3D392A;
}

.partners_hero_subtitle {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    color: #A6A6A6;
}

.partners_hero_image_container {
    position: absolute;
    right: 0;
    top: 0;
    width: 625px;
    height: 100%;
}

.partners_hero_image_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partners_hero_gradient_mask {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, #FFFFFF 15%, rgba(255,255,255,0) 50%);
    z-index: 2;
    pointer-events: none;
}

/* --- 4. MAIN GRID (Sites) --- */
.partners_cards_grid {
    display: grid;
    gap: 20px;
}

.partners_grid_three {
    grid-template-columns: repeat(3, 1fr);
}

.partners_card {
    background: #F6F6F6;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    position: relative;
    height: 452px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
}

.partners_card:hover {
    border-color: #dcdcdc;
    transform: translateY(-4px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.partners_card_image_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Decorative SVGs */
.partners_card_decorative {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.p_svg { position: absolute; pointer-events: none; }

/* --- Specific Card Styles --- */

/* Card 1: Reward (35%) */
.partners_card_reward .partners_card_image_wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align top to allow top-offset positioning */
}

.partners_card_reward .partners_card_image_wrapper img {
    width: 302px;
    height: auto;
    position: absolute;
    /* Based on Figma: top-[calc(50%-63px)] */
    top: calc(50% - 80px); 
    left: 50%;
    transform: translate(-50%, -50%);
}
/* Decorations */
.p_svg_poly_3_1 { top: -38px; left: -6px; width: 157px; transform: rotate(270deg); }
.p_svg_poly_3_2 { top: 17px; left: 159px; width: 157px; transform: rotate(270deg); }
.p_svg_poly_3_3 { top: -38px; left: 272px; width: 157px; transform: rotate(270deg); }


/* Card 2: Genplan (Improved Crop + Tooltip) */
.partners_card_genplan .partners_card_image_wrapper {
    /* Container acting as the mask */
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.p_genplan_crop_container {
    /* Mask container replicating Figma's clipping */
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 518px;
    height: 304px;
    border-radius: 8px;
    overflow: hidden;
}

.p_genplan_crop_container img {
    /* Replicate Figma: h-[453.35%] left-[-61.84%] top-[-223.56%] w-[297.16%] */
    /* Relative to 518px width */
    width: 297%; /* ~1540px */
    max-width: none;
    height: auto;
    position: absolute;
    top: -223%; /* Shift up to show map part */
    left: -61%; /* Shift left */
}

.p_genplan_tooltip_container {
    position: absolute;
    top: 45%; /* Approx position based on screenshot */
    left: 55%;
    z-index: 10;
    pointer-events: auto; /* Allow hover if interactive */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.p_genplan_tooltip {
    background: #FFFFFF;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #3D392A;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    white-space: nowrap;
    margin-bottom: 4px;
}

.p_genplan_cursor {
    width: 24px;
    height: 24px;
    margin-left: 40px; /* Offset cursor to point to target */
    margin-top: -10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}


/* Decorations */
.p_svg_ell_10_1 { width: 340px; height: 170px; top: 108px; left: -107px; transform: rotate(355deg); }
.p_svg_ell_10_2 { width: 340px; height: 170px; top: 10px; left: 136px; transform: rotate(355deg); }
.p_svg_ell_12_1 { width: 152px; height: 76px; top: 0; left: -16px; transform: rotate(355deg); }


/* Card 3: Showcase (Complex - Zoomed Content) */
.partners_card_image_wrapper_complex {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden; /* To clip the rotated iPad if it overflows */
}

.p_showcase_ipad {
    position: absolute;
    /* Figma: left-[calc(50%+110px)] top-[98px] w-[384px] h-[210px] (container) */
    width: 210px; /* Portrait width */
    height: 384px; /* Portrait height */
    top: 32px;
    left: calc(50% + 121px);
    transform-origin: center;
    transform: translateX(-50%) rotate(270deg); /* Rotate to landscape */
    box-shadow: 0px 20px 40px rgba(0,0,0,0.1); /* Add shadow for depth */
    border-radius: 12px;
}

.p_ipad_frame {
    width: 129%;
    height: 100%;
    position: absolute;
    top: -22px;
    left: -9px;
    z-index: 10;
    pointer-events: none;
}
.p_ipad_screen {
    position: absolute;
    /* Updated sizing to be safer if ipad image is solid */
    top: -40px;
    left: 68px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 4px;
    overflow: hidden;
    z-index: 9; /* Put screen ON TOP of frame to ensure visibility */
    background: #fff;
    position: relative;
}
.p_ipad_bg {
    display: none; /* Hide standard bg */
}
.p_ipad_content {
    position: absolute;
    /* Figma stats: w-[116.3%] h-[164.74%] left-[-8.15%] top-[-32.37%] relative to container 391x247.
       The container 391x247 is slightly larger than screen 384x210.
       Let's approximate zoom to match the screenshot large dots. */
    width: 150%;
    height: auto; /* Maintain aspect ratio */
    /* Center and Zoom */
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%) rotate(90deg) scale(1.6); 
    /* Scale 1.6 zooms in significantly to show just the grid */
    object-fit: cover;
    z-index: 20;
}

.p_showcase_float_img {
    position: absolute;
    /* Figma: left-[12.25%] top-[21px] w ~98px */
    top: 25px;
    left: 14%;
    width: 98px;
    z-index: 20; /* Above iPad */
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 7px 26px rgba(172,171,163,0.4);
}
.p_showcase_float_img img { width: 100%; display: block; border-radius: 6px; }

/* Decorations */
.p_svg_vec_1 { width: 233px; top: -53px; left: 12px; transform: rotate(250deg); opacity: 0.3; }
.p_svg_vec_2 { width: 233px; top: 0; left: 213px; transform: rotate(250deg); opacity: 0.3; }


/* Card Content (Text) */
.partners_card_content {
    position: relative;
    z-index: 10;
    padding: 32px 24px;
    margin-top: auto;
}

.partners_card_gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 274px;
    background: linear-gradient(to bottom, rgba(246,246,246,0) 0%, #F6F6F6 40%, #F6F6F6 100%);
    z-index: -1;
}

.partners_card_title {
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 12px;
    color: #3D392A;
}

.partners_card_text {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    color: #A6A6A6;
}


/* --- 5. CRM SECTION (Simple Cards) --- */
.partners_grid_two {
    grid-template-columns: repeat(2, 1fr);
}

.partners_card_simple {
    background: #F6F6F6;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    position: relative;
    height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 24px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
/* Hover effect for simple cards */
.partners_card_simple:hover {
    border-color: #dcdcdc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-4px);
}

/* Clickable cards cursor */
.partners_card_simple.partners_card_clickable {
    cursor: pointer;
}


.partners_card_content_simple {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Decorations for CRM - Training card */
/* Ellipse 9 - the only one with blur glow, positioned at right side */
.p_svg_crm_ell_9 { 
    width: 375px; 
    height: 300px;
    top: 0; 
    right: 0;
    left: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.partners_card_simple:hover .p_svg_crm_ell_9 {
    opacity: 1;
}
.p_svg_crm_ell_9 img {
    width: 150%;
    height: 100%;
    right: 125px;
}

/* Ellipse 8 - gradient ellipse without blur */
.p_svg_crm_ell_8 { 
    width: 230px; 
    height: 256px;
    top: -53px; 
    left: 280px; 
}
.p_svg_crm_ell_8 img {
    width: 100%;
    height: 100%;
}

/* Ellipse 7 - gradient ellipse without blur */
.p_svg_crm_ell_7 { 
    width: 230px; 
    height: 256px;
    top: -58px; 
    left: 34px; 
}
.p_svg_crm_ell_7 img {
    width: 100%;
    height: 100%;
}

/* Updated polygon positioning for Polygon 3 (Hexagon) - Exact Figma match */
.p_svg_crm_poly_6_1 { width: 157px; height: 157px; top: -33px; left: 10px; }
.p_svg_crm_poly_6_2 { width: 157px; height: 157px; top: 16px; left: 111px; }
.p_svg_crm_poly_6_3 { width: 157px; height: 157px; top: -8px; left: 228px; }
.p_svg_crm_poly_6_4 { width: 157px; height: 157px; top: 29px; left: 360px; }
.p_svg_crm_poly_6_5 { width: 157px; height: 157px; top: -50px; left: 465px; }

.p_svg_crm_poly_6_1 img,
.p_svg_crm_poly_6_2 img,
.p_svg_crm_poly_6_3 img,
.p_svg_crm_poly_6_4 img,
.p_svg_crm_poly_6_5 img {
    transform: rotate(270deg);
    width: 100%;
    height: 100%;
}

/* Earn Decorations */
.p_svg_earn_ell_8_1 { width: 230px; top: -52px; left: 281px; }
.p_svg_earn_ell_8_2 { width: 230px; top: -14px; left: -16px; }
.p_svg_earn_poly_1_1 { width: 182px; top: -100px; left: 38px; transform: rotate(43deg); }
.p_svg_earn_poly_1_2 { width: 182px; top: -52px; left: 141px; transform: rotate(43deg); }
.p_svg_earn_poly_1_3 { width: 182px; top: -87px; left: 307px; transform: rotate(43deg); }
.p_svg_earn_poly_1_4 { width: 182px; top: -50px; left: 440px; transform: rotate(43deg); }
.p_svg_earn_poly_2_1 { width: 118px; top: -9px; left: 388px; transform: rotate(43deg); }
.p_svg_earn_poly_2_2 { width: 118px; top: 7px; left: 234px; transform: rotate(43deg); }
.p_svg_earn_poly_2_3 { width: 118px; top: -14px; left: 114px; transform: rotate(43deg); }
.p_svg_earn_poly_2_4 { width: 118px; top: 7px; left: -29px; transform: rotate(43deg); }


/* --- 6. EARNING SECTION --- */
.partners_earning_section {
    max-width: 1280px;
    margin: 0 auto 80px auto;
    position: relative;
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 16px;
    height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.partners_earning_content {
    position: relative;
    z-index: 10;
    padding: 60px;
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partners_earning_title {
    font-weight: 800;
    font-size: 38px;
    line-height: 1.1;
    color: #3D392A;
}

.partners_earning_subtitle {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    color: #A6A6A6;
    max-width: 800px;
}

.partners_earning_actions {
    display: flex;
    gap: 24px;
    align-items: center;
}

.partners_link_demo_btn {
    display: flex;
    flex-direction: column;
    color: #A6A6A6;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.partners_link_demo_btn:hover {
    color: #3D392A;
}

.partners_link_underline {
    height: 1px;
    background: #3D392A;
    width: 100%;
    margin-top: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.partners_link_demo_btn:hover .partners_link_underline {
    transform: scaleX(1);
}

.partners_earning_image_container {
    position: absolute;
    right: 0;
    top: 0;
    width: 625px;
    height: 100%;
}

.partners_earning_image_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partners_earning_gradient_mask {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, #FFFFFF 15%, rgba(255,255,255,0) 50%);
    z-index: 2;
}

/* --- 7. FAQ SECTION --- */
.partners_faq_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.partners_faq_column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.partners_faq_item {
    background: #F6F6F6;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.partners_faq_item_open {
    background: #FFFFFF;
    padding-bottom: 24px;
}

.partners_faq_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.partners_faq_question {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    color: #3D392A;
    margin: 0;
    flex: 1;
}

.partners_faq_icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
    z-index: 2;
}

.partners_faq_icon path {
    pointer-events: auto;
}

.partners_faq_item_open .partners_faq_icon {
    transform: rotate(0deg);
}

.partners_faq_answer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E5E5E5;
    display: none;
}

.partners_faq_item_open .partners_faq_answer {
    display: block;
}

.partners_faq_answer p {
    font-size: 14px;
    font-weight: 500;
    color: #A6A6A6;
    line-height: 1.3;
    margin: 0;
}

.partners_faq_decor {
    position: absolute;
    right: -1.41px;
    top: -61px;
    width: 275px;
    height: 283.412px;
    opacity: 0;
    transform: rotate(0deg);
    mix-blend-mode: darken;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.partners_faq_item_open .partners_faq_decor {
    opacity: 1;
}

.partners_faq_decor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- 8. QUESTIONS & FOOTER SECTION (Dark) --- */
.partners_questions_section {
    background: #272727;
    position: relative;
    color: #FFFFFF;
    padding-bottom: 40px;
}

.partners_questions_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 531px;
    overflow: hidden;
}
.partners_questions_bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.partners_questions_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(39,39,39,0.3), #272727);
}

.partners_questions_container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 47px;
    padding-bottom: 80px;
}

.partners_questions_left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partners_questions_title {
    font-weight: 800;
    font-size: 48px;
    color: #FFFFFF;
}

.partners_questions_subtitle {
    font-weight: 500;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    max-width: 454px;
}

.partners_questions_form {
    width: 382px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.partners_input_group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.partners_input_group label {
    font-size: 12px;
    color: #A6A6A6;
    font-weight: 500;
}
.partners_input_field {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(246,246,246,0.4);
    border-radius: 12px;
    padding: 12px;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    outline: none;
}

.partners_questions_tg_check {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
}

.partners_toggle_switch {
    width: 51px;
    height: 31px;
    background: #FECC17;
    border-radius: 16px;
    position: relative;
    cursor: pointer;
}
.partners_toggle_knob {
    width: 27px;
    height: 27px;
    background: #FFFFFF;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
}

.partners_questions_agreement {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 10px;
    color: #A6A6A6;
    line-height: 1.2;
}
.partners_questions_agreement u {
    text-decoration: underline;
}
.partners_checkbox {
    width: 20px;
    height: 20px;
    border: 1px solid #FECC17;
    border-radius: 4px;
    flex-shrink: 0;
}

.partners_btn_contact {
    width: 100%;
    font-size: 14px;
    margin-top: 12px;
}

.partners_questions_right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.partners_manager_block {
    text-align: center;
}
.partners_manager_label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
}
.partners_manager_phone {
    font-weight: 800;
    font-size: 38px;
    color: #FFFFFF;
    text-decoration: none;
    display: block;
    margin-bottom: 16px;
    border-bottom: 2px solid #FFFFFF;
    display: inline-block;
}
.partners_manager_socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.partners_social_link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.p_icon_tg, .p_icon_mail {
    display: inline-block;
    width: 24px; height: 24px;
    background: #A6A6A6;
    border-radius: 50%;
}

/* Additional form styling */
.partners_input_field::placeholder {
    color: rgba(255,255,255,0.5);
}

.partners_input_group label {
    display: block;
}

.partners_checkbox {
    cursor: pointer;
}

.partners_toggle_switch {
    cursor: pointer;
}

/* --- 9. MOBILE FOOTER (Hidden on Desktop) --- */
.partners_footer_mob {
    display: none;
}

/* --- 10. RESPONSIVE --- */

/* Tablet */
@media (max-width: 1024px) {
    .partners_grid_three, .partners_grid_two {
        grid-template-columns: 1fr;
    }
    .partners_hero_section, .partners_earning_section {
        flex-direction: column;
        height: auto;
    }
    .partners_hero_content, .partners_earning_content {
        width: 100%;
    }
    .partners_hero_image_container, .partners_earning_image_container {
        position: relative;
        width: 100%;
        height: 300px;
    }
    .partners_questions_container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .partners_questions_right {
        justify-content: flex-start;
    }
}

/* Mobile (390px design from Figma) */
@media (max-width: 768px) {
    /* Container */
    .partners_page_container {
        padding-top: 0px;
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Section */
    .partners_section {
        margin-bottom: 60px;
    }

    .partners_section_title {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    /* Buttons */
    .partners_btn_primary {
        height: 44px;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 12px;
    }

    /* --- HERO SECTION (Mobile) --- */
    .partners_hero_section {
        flex-direction: column-reverse;
        height: auto;
        border-radius: 16px;
        border: 1px solid #F6F6F6;
        margin-bottom: 60px;
        position: relative;
        overflow: hidden;
        min-height: 502px;
    }

    .partners_hero_image_container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 302px;
        z-index: 1;
    }

    .partners_hero_image_container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .partners_hero_gradient_mask {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 502px;
        background: linear-gradient(to bottom, rgba(255,255,255,0) 31.8%, #FFFFFF 48.4%);
        z-index: 2;
    }

    .partners_hero_content {
        position: relative;
        z-index: 10;
        padding: 16px;
        padding-top: 251px;
        width: 100%;
        gap: 12px;
    }

    .partners_hero_badge {
        font-size: 14px;
        font-weight: 600;
        color: #FECC17;
    }

    .partners_hero_text_block {
        gap: 12px;
    }

    .partners_hero_title {
        font-size: 30px;
        line-height: 1;
    }

    .partners_hero_subtitle {
        font-size: 14px;
        line-height: 1.4;
    }

    /* --- CARDS GRID (Mobile) --- */
    .partners_cards_grid {
        gap: 12px;
    }

    .partners_grid_three,
    .partners_grid_two {
        grid-template-columns: 1fr;
    }

    /* --- CARD (Mobile - 452px height) --- */
    .partners_card {
        height: 452px;
        border-radius: 12px;
    }

    .partners_card:hover {
        transform: none;
    }

    .partners_card_content {
        padding: 20px;
        padding-bottom: 24px;
    }

    .partners_card_title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .partners_card_text {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Card 1: Reward - Mobile */
    .partners_card_reward .partners_card_image_wrapper img {
        width: 302px;
        top: calc(50% - 63px);
    }

    .p_svg_poly_3_1 { top: -38px; left: -6px; width: 157px; }
    .p_svg_poly_3_2 { top: 17px; left: 159px; width: 157px; }
    .p_svg_poly_3_3 { top: -38px; left: 272px; width: 157px; }

    /* Card 2: Genplan - Mobile */
    .p_genplan_crop_container {
        width: 366px;
        height: 307px;
    }

    /* Card 3: Showcase - Mobile */
    .p_showcase_ipad {
        width: 253px;
        height: 520px;
        top: -21px;
        left: calc(50% + 177px);
    }

    .p_showcase_float_img {
        top: 8px;
        left: 27px;
        width: 98px;
    }

    /* --- CRM CARDS (Mobile - 300px height) --- */
    .partners_card_simple {
        height: 300px;
        padding: 20px;
    }

    .partners_card_simple:hover {
        transform: none;
    }

    .partners_card_content_simple {
        gap: 16px;
    }

    /* --- EARNING SECTION (Mobile) --- */
    .partners_earning_section {
        flex-direction: column-reverse;
        height: auto;
        min-height: 502px;
        border-radius: 16px;
        margin-bottom: 60px;
        position: relative;
        overflow: hidden;
    }

    .partners_earning_image_container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 302px;
        z-index: 1;
    }

    .partners_earning_image_container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .partners_earning_gradient_mask {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 502px;
        background: linear-gradient(to bottom, rgba(255,255,255,0) 31.8%, #FFFFFF 39.1%);
        z-index: 2;
    }

    .partners_earning_content {
        position: relative;
        z-index: 10;
        padding: 16px;
        padding-top: 202px;
        width: 100%;
        gap: 16px;
    }

    .partners_earning_title {
        font-size: 22px;
        line-height: 1.2;
    }

    .partners_earning_subtitle {
        font-size: 14px;
        line-height: 1.3;
    }

    .partners_earning_actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .partners_earning_actions .partners_btn_primary {
        width: 100%;
    }

    .partners_link_demo_btn {
        align-items: center;
        padding: 12px 0;
    }

    /* --- FAQ SECTION (Mobile) --- */
    .partners_faq_grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .partners_faq_column {
        gap: 8px;
    }

    .partners_faq_item {
        padding: 24px;
    }

    .partners_faq_question {
        font-size: 14px;
    }

    .partners_faq_answer p {
        font-size: 14px;
    }

    /* --- QUESTIONS SECTION (Mobile - Dark) --- */
    .partners_questions_section {
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 24px);
    }

    .partners_questions_bg {
        height: 432px;
    }

    .partners_questions_container {
        grid-template-columns: 1fr;
        padding: 35px 12px 0 12px;
        gap: 40px;
    }

    .partners_questions_left {
        gap: 20px;
    }

    .partners_questions_title {
        font-size: 30px;
        line-height: 1;
    }

    .partners_questions_subtitle {
        font-size: 14px;
        line-height: 1.3;
        opacity: 0.7;
    }

    .partners_questions_form {
        width: 100%;
        gap: 12px;
    }

    .partners_input_field {
        height: 44px;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(246,246,246,0.4);
        border-radius: 12px;
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
    }

    .partners_questions_tg_check {
        font-size: 12px;
    }

    .partners_questions_agreement {
        font-size: 12px;
        line-height: 1.4;
    }

    .partners_btn_contact {
        height: 56px;
        font-size: 14px;
        margin-top: 8px;
    }

    .partners_questions_right {
        display: none;
    }

    /* Input field mobile styles */
    .partners_input_field::placeholder {
        color: rgba(255,255,255,0.5);
    }

    .partners_toggle_switch {
        flex-shrink: 0;
    }

    .partners_checkbox {
        flex-shrink: 0;
    }

    /* --- FOOTER (Mobile) --- */
    .partners_footer_mob {
        display: flex;
        flex-direction: column;
        gap: 24px;
        background: #272727;
        padding: 40px 12px;
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 24px);
    }

    .partners_footer_logo {
        display: flex;
        gap: 16px;
        align-items: center;
    }

    .partners_footer_logo_icon {
        width: 37px;
        height: 37px;
    }

    .partners_footer_logo_text {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .partners_footer_logo_text img {
        width: 80px;
        height: auto;
    }

    .partners_footer_logo_text span {
        font-size: 8px;
        font-weight: 600;
        color: #FFFFFF;
    }

    .partners_footer_contact {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .partners_footer_phone_label {
        font-size: 14px;
        font-weight: 400;
        color: #A6A6A6;
        margin-bottom: 4px;
    }

    .partners_footer_phone {
        font-size: 22px;
        font-weight: 800;
        color: #FFFFFF;
    }

    .partners_footer_socials {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .partners_footer_social_item {
        display: flex;
        gap: 16px;
        align-items: center;
        font-size: 14px;
        font-weight: 500;
        color: #FFFFFF;
        text-decoration: none;
    }

    .partners_footer_social_icon {
        width: 32px;
        height: 32px;
    }

    .partners_footer_nav {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .partners_footer_nav_label {
        font-size: 14px;
        font-weight: 400;
        color: #A6A6A6;
    }

    .partners_footer_nav_links {
        display: flex;
        gap: 120px;
    }

    .partners_footer_nav_col {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .partners_footer_nav_col a {
        font-size: 14px;
        font-weight: 500;
        color: #FFFFFF;
        text-decoration: none;
    }

    .partners_footer_docs {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .partners_footer_docs_label {
        font-size: 14px;
        font-weight: 400;
        color: #A6A6A6;
    }

    .partners_footer_docs a {
        font-size: 14px;
        font-weight: 500;
        color: #FFFFFF;
        text-decoration: none;
    }

    .partners_footer_badge {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .partners_footer_badge_icon {
        width: 60px;
        height: 60px;
        background: #FECC17;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .partners_footer_badge_icon img {
        width: 51px;
        height: 32px;
    }

    .partners_footer_badge_text {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .partners_footer_badge_title {
        font-size: 20px;
        font-weight: 800;
        color: #FFFFFF;
    }

    .partners_footer_badge_subtitle {
        font-size: 12px;
        font-weight: 500;
        color: #A6A6A6;
    }

    .partners_footer_copyright {
        font-size: 12px;
        font-weight: 500;
        color: #A6A6A6;
    }
}

/* --- 11. MODAL WINDOW --- */
.partners_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.partners_modal {
    background: #FFFFFF;
    border: 1px solid #EDEDED;
    border-radius: 20px;
    padding: 20px 20px 24px 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.partners_modal_overlay.active .partners_modal {
    transform: translateY(0);
}

.partners_modal_close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 44px;
    height: 44px;
    background: #F6F6F6;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.partners_modal_close:hover {
    background: #EDEDED;
}

.partners_modal_title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.0;
    color: #3D392A;
    margin: 0 0 20px 0;
    padding-right: 60px;
}

.partners_modal_subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    color: #A6A6A6;
    margin: 0 0 20px 0;
    max-width: 528px;
}

.partners_modal_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partners_modal_input_group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.partners_modal_input_group label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #A6A6A6;
}

.partners_modal_input {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 12px;
    height: 44px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #3D392A;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.partners_modal_input::placeholder {
    color: #A6A6A6;
}

.partners_modal_input:focus {
    border-color: #FECC17;
}

.partners_modal_checkbox_group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.partners_modal_checkbox_label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.partners_modal_checkbox_label input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    opacity: 0;
    margin: 0;
}

.partners_modal_checkbox_custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1px solid #FECC17;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.partners_modal_checkbox_label input[type="checkbox"]:checked + .partners_modal_checkbox_custom {
    background: #FECC17;
}

.partners_modal_checkbox_label input[type="checkbox"]:checked + .partners_modal_checkbox_custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%233D392A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.partners_modal_checkbox_text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.4;
    color: #A6A6A6;
}

.partners_modal_checkbox_text a {
    color: #A6A6A6;
    text-decoration: underline;
}

.partners_modal_submit {
    background: #FECC17;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    height: 44px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #3D392A;
    cursor: pointer;
    transition: background 0.3s ease;
    width: fit-content;
    margin-top: 0;
}

.partners_modal_submit:hover {
    background: #FFD84D;
}

/* Extra small mobile */
@media (max-width: 400px) {
    .partners_footer_nav_links {
        gap: 60px;
    }
    
    .partners_hero_title {
        font-size: 26px;
    }
    
    .partners_earning_title {
        font-size: 20px;
    }
    
    .partners_questions_title {
        font-size: 26px;
    }
}

/* Fix for mobile footer visibility and global elements */
@media (max-width: 768px) {
    /* Hide global header and footer */
    .top_nav, 
    .footer_section,
    .header,
    .poput { 
        display: none !important; 
    }
    
    /* Keep mobile menu visible */
    .mobile-menu {
        display: block !important;
    }

    /* --- MOBILE HEADER --- */
    .partners_mobile_header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px;
        background: #fff;
        position: relative; /* Or fixed/sticky if needed */
        z-index: 100;
        margin-bottom: 20px;
    }

    .partners_mobile_logo {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    
    .partners_mobile_logo img {
        height: 24px;
        width: auto;
    }

    .partners_mobile_actions {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .partners_btn_header_login {
        background: #FECC17;
        border-radius: 12px;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 600;
        color: #3D392A;
        text-decoration: none;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .partners_btn_header_demo {
        background: #FFFFFF;
        border: 1px solid #FECC17;
        border-radius: 12px;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 600;
        color: #3D392A;
        text-decoration: none;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .partners_mobile_burger {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background: #FFFFFF;
        border-radius: 12px; /* Optional, usually standard */
    }

    /* Fix Demo Link */
    .partners_link_demo_btn {
        align-items: flex-start;
        width: fit-content;
    }
    
    .partners_earning_actions {
        align-items: center;
    }

    /* Fix Genplan Image */
    .partners_card_genplan .partners_card_image_wrapper {
        width: 100%;
        height: 100%;
    }
    
    .p_genplan_crop_container {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 518px;
        height: 304px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .p_genplan_crop_container img {
        width: 297%;
        max-width: none;
        height: auto;
        position: absolute;
        top: -223%;
        left: -61%;
    }
    
    /* Ensure images in simple cards fit well */
    .partners_card_simple .partners_card_decorative {
        overflow: hidden;
    }

    /* --- MODAL (Mobile) --- */
    .partners_modal {
        max-width: calc(100% - 24px);
        margin: 12px;
        padding: 20px 16px 24px 16px;
        border-radius: 16px;
    }

    .partners_modal_title {
        font-size: 20px;
        margin-bottom: 16px;
        padding-right: 50px;
    }

    .partners_modal_form {
        gap: 16px;
    }

    .partners_modal_input {
        height: 44px;
    }

    .partners_modal_submit {
        width: 100%;
    }

    .partners_modal_close {
        width: 40px;
        height: 40px;
    }
}

