body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body { padding-top: 90px; margin: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; }
.transition-all { transition: all 0.4s ease-in-out; }

/* --- Navigation & Logo --- */
#mainNav { background: #ABCEBF; padding: 10px 4%; z-index: 9999; }
.logo img { width: 255px; transition: width 0.4s ease-in-out; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
    color: #1a1a1a !important; font-weight: 600; font-size: 1rem;
    letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
    transition: all 0.4s ease-in-out;
}

/* Targets screens between 990px and 1200px */
@media (min-width: 990px) and (max-width: 1260px) {
    .nav-links {
        gap: 17px !important;
    }

    .nav-links a {
        font-size: 0.7rem !important;
    }

    .nav-phone {
        font-size: 0.8rem !important;
    }

}
.nav-phone {
    color: #1a1a1a !important;
    font-weight: 700; text-decoration: none; transition: all 0.4s ease-in-out;
}

#mainNav.scrolled { padding: 8px 4% !important; background: #ABCEBF !important; }
#mainNav.scrolled .logo img { width: 220px; }
#mainNav.scrolled .nav-links a { font-size: 0.8rem; }
#mainNav.scrolled .nav-phone { font-size: 0.85rem !important; }

.nav-links a:hover, .nav-phone:hover, .nav-socials a:hover {
    color: #c5a059 !important; transform: translateY(-2px);
}

.nav-socials { display: flex; align-items: center; gap: 15px; }
.nav-social-link {
    color: #1a1a1a !important; font-size: 1.3rem; text-decoration: none;
    transition: all 0.4s ease-in-out; display: flex; align-items: center;
    justify-content: center; line-height: 1; height: 24px; width: 24px;
    backface-visibility: hidden; transform: translateZ(0);
}
#mainNav.scrolled .nav-social-link { font-size: 1.05rem; }

/*.mobile-toggle { display: none !important; border: none; background: none; }*/
/*.mobile-toggle span { display: block; width: 20px; height: 2px; background: #1a1a1a; margin: 2px 0; transition: 0.3s; }*/

/* --- Hero Section --- */
.hero-section {
    min-height: 80vh;
}

/* The margin is handled by the container padding,
   but we can add extra spacing here if needed */
.hero-img-container {
    height: 500px; /* Fixed height for a clean look */
    margin-right: 20px; /* Specific margin from the right edge of the grid */
}

.hero-img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .hero-img-container {
        height: 350px;
        margin-right: 0;
        margin-top: 30px;
    }
    .hero-content {
        text-align: center;
    }
}
/* --- Buttons (Global Variants) --- */
.hero-btn, .action-btn, .action-btn-tech, .btn-submit, .download-btn, .btn-booking {
    display: inline-block; border: none; border-radius: 50px; font-weight: 700;
    text-decoration: none; transition: all 0.3s ease; background: #ABCEBF;
    color: white !important; box-shadow: 0 4px 15px rgba(171, 206, 191, 0.4);
}
.hero-btn, .action-btn, .action-btn-tech { padding: 16px 40px; font-size: 1.1rem; }
.btn-submit { width: 100%; padding: 18px; font-size: 1.1rem; }
.download-btn { display: inline-flex; align-items: center; padding: 16px 32px; }
.btn-booking { padding: 18px 45px; }

.hero-btn:hover, .action-btn:hover, .action-btn-tech:hover, .btn-submit:hover, .download-btn:hover, .btn-booking:hover {
    background: #99bcad; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(171, 206, 191, 0.6);
}
.hero-btn:active, .action-btn:active, .action-btn-tech:active, .btn-submit:active, .download-btn:active {
    transform: translateY(0px) scale(0.98); background: #88aa9c;
}

/* --- FAQ Section --- */
.faq_trigger { width: 100%; background: none; border: none; padding: 25px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; text-align: left; outline: none; }
.faq_question { font-size: 1.15rem; font-weight: 600; color: #1a1a1a; transition: color 0.3s ease; padding-right: 20px; }
.faq_content { font-size: 1rem; max-height: 0; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0; }
.faq_answer { padding-bottom: 25px; color: #666; line-height: 1.7; margin: 0; }

.plus_icon { width: 20px; height: 20px; position: relative; flex-shrink: 0; }
.plus_icon::before, .plus_icon::after { content: ''; position: absolute; background-color: #abcebf; transition: transform 0.3s ease, opacity 0.3s ease; }
.plus_icon::before { width: 100%; height: 2px; top: 9px; left: 0; }
.plus_icon::after { width: 2px; height: 100%; top: 0; left: 9px; }

.faq_item.is-open .plus_icon::after { transform: rotate(90deg); opacity: 0; }
.faq_item.is-open .faq_question { color: #abcebf; }
.faq_item.is-open .faq_content { max-height: 1000px; opacity: 1; }

/* --- Visual Decor (Circles) --- */
.circle { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(171, 206, 191, 0.1) 0%, rgba(255, 255, 255, 0) 70%); border: 1px solid rgba(171, 206, 191, 0.2); pointer-events: none; }
.circle_big { width: 600px; height: 600px; right: -100px; top: -100px; }
.circle_small { width: 300px; height: 300px; right: 200px; bottom: 50px; }
.social-circle { width: 44px; height: 44px; border-radius: 50%; background: #abcebf; color: white; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: 0.3s ease; }

.social-circle:hover {
    background-color: #99bcad !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(171, 206, 191, 0.6);
    color: #ffffff;
}

/* --- About & Process --- */
.about-image-container img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.proc-visual { position: relative; min-height: 600px; background: #eee; }
.proc-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease-in-out; z-index: 1; }
.proc-img.active { opacity: 1; z-index: 2; }
.treatment-items p { font-size: 15px; color: #4a4a4a; display: flex; align-items: center; }

/* --- Forms & Inputs --- */
.custom-input { padding: 18px 25px !important; border: 1px solid #abcebf !important; border-radius: 50px !important; font-size: 1rem; background-color: #fafafa !important; box-shadow: none !important; transition: border-color 0.3s ease; }
.custom-input:focus { border-color: #99bcad !important; background-color: #ffffff !important; }

/* --- Tabs & Pricing --- */
.active-tab { font-size: 2rem; color: #abcebf; border-bottom: 4px solid #abcebf; font-weight: 700; }
.price-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.price-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; }
.price-img { height: 180px; object-fit: cover; }
.price-amount { color: #abcebf; }

/* --- Video & Feedback Sliders --- */
.video-wrapper { width: 100%; max-width: 1000px; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; position: relative; background: #000; }
#player { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.feedback_card { padding: 50px 40px; border-radius: 30px; text-align: center; min-height: 380px; display: flex !important; flex-direction: column; justify-content: center; }
.sales_slider_item, .sales_side_txt { min-height: 480px; }

/* --- Slick/Swiper Controls --- */
.slick-prev, .slick-next, .review-btn {
    width: 45px !important; height: 45px !important; background: #abcebf !important;
    border-radius: 50%; color: white !important; z-index: 100; cursor: pointer;
    display: flex; align-items: center; justify-content: center; border: none;
    position: absolute; top: 50%; transform: translateY(-50%); transition: all 0.3s ease;
}
.review-btn { margin-top: 0; pointer-events: auto !important; }
.review-btn:hover, .slick-prev:hover, .slick-next:hover { background: #99bcad !important; opacity: 0.9; }

.slick-prev { left: -10px; }
.slick-next { right: -10px; }
.swiper-button-prev.review-btn { left: -60px; }
.swiper-button-next.review-btn { right: -60px; }
.review-btn:after{
    font-size: 1.5rem!important;
}
.slick-prev:before, .slick-next:before { font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 18px; color: white; }
.slick-dots li button:before { color: #abcebf; font-size: 12px; }
.slick-dots li.slick-active button:before { color: #abcebf; }
.swiper-pagination-bullet-active { background: #ABCEBF !important; opacity: 1 !important; }
.swiper-pagination-bullet { background: #000; opacity: 0.15; }

/* --- Infinite Carousel --- */
.carousel-wrapper { width: 100%; cursor: grab; overflow: hidden; position: relative; }
.carousel-wrapper:active { cursor: grabbing; }
.carousel-track { display: flex; gap: 20px; padding: 20px 0; width: max-content; animation: scroll-infinite 60s linear infinite; will-change: transform; padding-top: 0 !important;  }
.carousel-wrapper:hover .carousel-track, .carousel-wrapper.is-dragging .carousel-track { animation-play-state: paused; }
.carousel-image-item { flex: 0 0 auto; border-radius: 16px; overflow: hidden; pointer-events: none; }
.carousel-image-item img { display: block; height: 400px; width: auto; object-fit: cover; }

@keyframes scroll-infinite { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Loader --- */
#page-loader { position: fixed; inset: 0; background: #ffffff; display: flex; justify-content: center; align-items: center; z-index: 999999; transition: opacity 0.4s ease; }
.loader-spinner { width: 80px; height: 80px; border: 6px solid #f3f3f3; border-top: 6px solid #ABCEBF; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
html.is-loading, body.is-loading { overflow: hidden !important; height: 100vh !important; }

/* --- Footer Specific --- */
.footer_contacts_info { padding-left: 5rem !important; }

/* --- Media Queries --- */
@media (max-width: 1100px) {
    .slick-prev { left: -10px; } .slick-next { right: -10px; }
    .feedback_card { padding: 30px 50px; min-height: 420px; }
}

@media (max-width: 992px) {
    .hero-section { background-position: 70% center; text-align: center; height: auto; min-height: 100vh; padding-bottom: 50px; }
    .hero-title { font-size: 2rem; }
    .hero-features { margin-left: auto; margin-right: auto; }
    .nav-links {
        flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
        background: #ABCEBF; padding: 0; opacity: 0; visibility: hidden;
        transform: translateY(-10px); pointer-events: none;
    }
    .nav-links.active { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
    .nav-links a { padding: 18px; border-bottom: 1px solid rgba(0,0,0,0.05); width: 100%; text-align: center; }
    .nav-right { position: absolute; left: 50%; transform: translateX(-50%); display: flex !important; gap: 15px !important; align-items: center; }
    /*.mobile-toggle { display: flex !important; }*/
    /*.mobile-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }*/
    /*.mobile-toggle.open span:nth-child(2) { opacity: 0; }*/
    /*.mobile-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }*/
    .about-content { text-align: center; }
    .section-title { font-size: 28px; }
}
/* 1. Hide the button by default (Desktop) */
.mobile-toggle {
    display: none;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
    margin-right: 20px; /* Right margin to match logo's left margin */
}

/* 2. Hide the navLinks menu by default on mobile if it's a slide-out */
@media (max-width: 991px) {
    /* Show the button only on mobile/tablet */
    .mobile-toggle {
        display: block;
    }

    /* Ensure your navLinks are hidden until .active is toggled */
    #navLinks {
        display: none;
    }

    #navLinks.active {
        display: flex; /* or block, depending on your layout */
        flex-direction: column;
        /* Add your mobile menu positioning styles here */
    }
}

@media (max-width: 991px) {
    #navLinks {
        gap: 0 !important;
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #abcebf; /* Your Brand Color */

        /* 1. Hidden State */
        height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;

        /* 2. The Closing Animation (The Fix) */
        /* We use 'all' to ensure height and opacity sync perfectly.
           0.4s is the sweet spot for a smooth feel. */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #navLinks.active {
        /* 3. Open State */
        /* Setting a specific height prevents the 'auto' jump */
        height: 330px;
        opacity: 1;
        pointer-events: auto;

        /* Opening Animation: No delay, snappy start */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #navLinks a {
        display: block;
        padding: 15px 0;
        text-align: center;
        color: #ffffff;
        text-decoration: none;
        /* Links fade slightly faster than the box closes */
        transition: opacity 0.2s ease;
    }

    /* 4. The Sync: Fade links immediately when closing starts */
    #navLinks:not(.active) a {
        opacity: 0;
    }
}

/* 3. Keep your existing span and rotation logic */
.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.mobile-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.logo-small {
    display: none;
    width: unset !important;
}

.logo-main {
    display: block;
    height: auto;
    max-height: 80px;
}

.modal {
    z-index: 9999;
}

/* Specific rule for very small mobile devices */
@media (max-width: 400px) {
    .nav-phone {
        font-size: 0.9rem !important;
        /* Optional: reduce letter-spacing if it still feels tight */
        letter-spacing: -0.02em;
    }

    /* Ensuring the logo and toggle maintain their margins on tiny screens */
    .logo-small {
        margin-left: 15px;
    }
    .mobile-toggle {
        margin-right: 15px;
    }
}

@media (max-width: 991px) {
    .logo-main {
        display: none;
    }

    .logo-small {
        display: block;
        height: auto;
        max-height: 40px;
        margin-left: 0;
    }

    .mobile-toggle {
        display: block;
        margin-right: 20px;
    }
}

@media (max-width: 991px) {
    .proc-visual { min-height: 400px; margin-top: 30px; }
    .tech_title, .tech_descr, .recom_descr_txt { text-align: center; }
    .tech-check-list p, .tech-spark-list p { display: inline-block; margin: 0 10px; }
    .active-tab { font-size: 1.5rem; text-align: center; }
    .download-btn { width: 100%; justify-content: center; }
    .footer_contacts { flex-direction: column-reverse; }
    .footer_contacts_map { min-width: 100%; height: 400px; }
    .footer_contacts_info { text-align: center; align-items: center; padding: 60px 20px !important; }
    .footer_legal { flex-direction: column; gap: 15px; }
}

@media (max-width: 1000px) {
    .swiper-button-prev.review-btn { left: 10px; }
    .swiper-button-next.review-btn { right: 10px; }
}

@media (max-width: 768px) {
    .slick-prev, .slick-next { display: none !important; }
    .feedback_card { margin: 0 5px; }
    .carousel-image-item img { height: 280px; }
}

@media (max-width: 576px) {
    .form_wrapper { padding: 30px 20px !important; }
}

.faq_item:first-child .faq_trigger {
    /*padding-top: 0;*/
}
