/* 
 * Custom Fixes for Mobile View
 */

html {
    scroll-behavior: smooth !important;
}

/* =========================================
   Glassmorphism Hero Section & Button Fixes
   ========================================= */
.vc_custom_1772549367732 h1 {
    background: rgba(224, 136, 164, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    padding: 30px 50px !important;
    box-shadow: 0 8px 32px rgba(224, 136, 164, 0.3) !important;
    color: #fff !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4) !important;
    display: inline-block !important;
    text-align: left !important;
    font-size: 85px !important;
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
}

/* Base button styling to match glassmorphism */
.vc_custom_1772549367732 .sc_button {
    background: rgba(224, 136, 164, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    padding: 15px 45px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 30px !important;
    box-shadow: 0 6px 20px rgba(224, 136, 164, 0.4) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: all 0.3s ease !important;
    
    display: inline-block !important;
    margin-top: 20px !important;
    margin-left: 250px !important; /* Пушим кнопку ровно под центр текста H1 на десктопе */
}

.vc_custom_1772549367732 .sc_button:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: rgba(224, 136, 164, 1) !important;
    box-shadow: 0 6px 25px rgba(224, 136, 164, 0.6) !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 1540px) {
    .vc_custom_1772549367732 h1 {
        font-size: 64px !important;
        padding: 30px 55px !important;
        margin-top: 0px !important;
        margin-left: -150px !important;
    }
    .vc_custom_1772549367732 .sc_button {
        margin-left: 20px !important;
        margin-top: 10px !important;
    }
}

@media (max-width: 1280px) {
    .vc_custom_1772549367732 h1 {
        font-size: 52px !important;
        padding: 20px 32px !important;
        margin-left: 0 !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }
    .vc_custom_1772549367732 .sc_button {
        margin-left: 90px !important;
        padding: 14px 40px !important;
        font-size: 16px !important;
    }
}

/* 1. Hero Section Fixes (Fixed Title Overflow Instead of Breaking Full Width) */
@media (max-width: 1024px) {
    /* Remove padding/margin restrictors on the title to prevent horizontal squashing */
    .vc_custom_1772549367732 h1 {
        font-size: 40px !important;
        line-height: 1.2 !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
        padding: 20px !important;
        word-break: break-word !important;
        white-space: normal !important;
    }
    .vc_custom_1772549367732 .sc_button {
        margin-left: 80px !important;
    }
    .vc_custom_1772549367732 p {
        white-space: normal !important;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    .vc_custom_1772549367732 h1 {
        font-size: 36px !important;
        padding: 16px 24px !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 16px rgba(224, 136, 164, 0.3) !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
    .vc_custom_1772549367732 .sc_button {
        font-size: 14px !important;
        padding: 12px 30px !important;
        border-radius: 20px !important;
        margin-left: 70px !important;
    }
    .vc_custom_1772549367732 h1 p,
    .vc_custom_1772549367732 h1 span {
        font-weight: 500 !important;
        text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6) !important;
    }
    
    .sc_services_item_content,
    .sc_services_item_content * {
        font-weight: 500 !important;
        font-synthesis: none !important;
    }
    
    .sc_services_item_title,
    .sc_services_item_title a,
    .sc_services_item_title a:link,
    .sc_services_item_title a:visited {
        font-weight: 600 !important;
        font-synthesis: none !important;
        letter-spacing: 0.15px !important;
    }
    
    .sc_services_item_description,
    .sc_services_item_description p,
    .sc_services_item_description * {
        font-weight: 400 !important;
        font-synthesis: none !important;
    }
    
    /* Убрали text-shadow — он создавал эффект слишком жирного текста */
    
    /* Fallback для шрифта khandlight на мобильных — если не загрузился, будет Roboto */
    .sc_services_item_title,
    .sc_services_item_title a,
    .sc_services_item_title a:link,
    .sc_services_item_title a:visited {
        font-family: 'khandlight', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
        font-weight: 500 !important;
    }
    
    .sc_services_item_description,
    .sc_services_item_description p {
        font-family: 'khandlight', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
        font-weight: 400 !important;
    }
}

/* Misc Globals from Backlog */
blockquote:before {
    content: '' !important;
}
.banner-content .wpb_wrapper {
    max-width: 60%;
    padding-left: 80px;
}
.sc_services_item .hover_icon_link,
.sc_services_item_title a {
    pointer-events: none;
    cursor: default;
}

/* 2. Text Alignment on the Second Screen */
@media (max-width: 768px) {
    .sc_quote {
        padding-left: 0 !important; /* Remove 5.25em padding that pushed it right */
        padding-right: 0 !important;
        flex-direction: column !important; /* Stack text instead of row */
        align-items: center !important;
        margin-bottom: 20px !important;
    }
    /* Hide the huge faux quote mark since it overlaps when padding is removed */
    .sc_quote:before {
        display: none !important;
    }
    .sc_quote p, .sc_quote .sc_quote_title {
        text-align: center !important;
        width: 100% !important;
    }
}

/* 3. Third Screen (About Me) Fixes */
@media (max-width: 1024px) {
    .sc_promo_inner {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Ensure the image block doesn't disappear and keeps background ratio */
    .sc_promo_image {
        position: relative !important;
        width: 100% !important;
        min-height: 400px !important; /* Adjust if needed */
        right: auto !important;
        background-position: center top !important;
        background-size: cover !important;
        order: 1; /* Keep it on top */
    }

    /* Fix the text block to take full width */
    .sc_promo_block {
        width: 100% !important;
        float: none !important;
        order: 2; /* Text below image */
    }
    
    .sc_promo_block_inner {
        padding: 30px 20px !important;
    }
}

@media (max-width: 768px) {
    .sc_promo_image {
        min-height: 300px !important;
    }
}

/* =========================================
   Testimonials Image Content Fixes
   ========================================= */
.sc_testimonial_content {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.sc_testimonial_content p {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
}

.sc_testimonial_content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.sc_testimonials_style_testimonials-1 .sc_testimonial_content:before,
.sc_testimonials_style_testimonials-1 .sc_testimonial_content:after {
    display: none !important;
}

/* =========================================
   BACKLOG TASKS - Mobile Fixes
   ========================================= */

/* 1. Second screen: bolder text for sc_promo_descr sc_item_descr */
@media (max-width: 768px) {
    .sc_promo_descr.sc_item_descr,
    .sc_promo_descr.sc_item_descr * {
        font-weight: 500 !important;
        font-family: 'khandlight', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    }
}

/* 2. Second screen: larger font in pink element "100% драйву..." */
@media (max-width: 768px) {
    .wpb_text_column.wpb_content_element p strong {
        font-size: 1.2em !important;
        font-weight: 700 !important;
    }
}

/* 3. Form: bolder font for form fields */
@media (max-width: 768px) {
    #sc_form_username,
    #sc_form_email,
    #sc_form_phone,
    #sc_form_message,
    .sc_form_item .sc_form_label_content,
    .sc_form_item input,
    .sc_form_item textarea {
        font-weight: 500 !important;
        font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    }
    
    .sc_form_item label {
        font-weight: 500 !important;
    }
    
    .sc_form_button .sc_button {
        font-weight: 600 !important;
    }
}

/* 4. Hero section: show host (on right side) on mobile */
@media (max-width: 768px) {
    .vc_custom_1772549367732 {
        background-position: 80% center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
    }
}

/* 5. Sidebar: larger and bolder font for menu items */
@media (max-width: 768px) {
    .menu-item.menu-item-147,
    .menu-item.menu-item-148,
    .menu-item.menu-item-147 a,
    .menu-item.menu-item-148 a {
        font-size: 1.1em !important;
        font-weight: 600 !important;
    }
}

/* 6. Remove login field from sidebar on mobile */
@media (max-width: 768px) {
    .login {
        display: none !important;
    }
}

