/* ===============================
   MOBILE STYLES (GLOBAL)
   =============================== */

@media (max-width: 768px) {

    /* Top navbar */
    .top-navbar {
        display: none;
    }

    /* Section spacing */
    .section-spacing {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .section-spacing-lg {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    /* ===============================
       HERO – MOBILE LAYOUT
       =============================== */

    .hero {
        height: auto;
        padding-top: 120px;
        padding-bottom: 0;
    }

    .hero-inner {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        padding: 0 20px 10px;
    }

    .hero-text .hero-name {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .hero-text h1 {
        font-size: 24px;
        line-height: 1.25;
        margin-bottom: 22px;
        letter-spacing: -0.3px;
    }

    .hero-text p {
        font-size: 17px;
        line-height: 1.55;
        max-width: 320px;
        margin: 0 auto 12px;
    }

    .hero-text .btn-primary {
        margin: 0 auto;
        height: 56px;
        font-size: 17px;
        padding: 0 34px;
    }

    .hero-visual {
        width: 100%;
        height: auto;
        margin-top: 20px;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        position: relative;
    }

    .hero-person {
        max-width: 72%;
        margin: 0 auto;
        right: 0;
    }

    .hero-globe {
        width: 360px;
        right: 0%;
        top: 50%;
        transform: translate(50%, -50%);
        opacity: 0.75;
    }

    .subscribe-section h2 {
        font-size: 28px;
    }

    .subscribe-section p {
        font-size: 16px;
        margin-bottom: 30px;
    }
}



/* ===============================
   MOBILE NAVIGATION
   =============================== */

@media (max-width: 992px) {

    .header-inner {
        height: 80px;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .main-nav li {
        border-bottom: 1px solid #eee;
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 16px 0;
        font-size: 18px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-nav-socials {
        display: block;
    }

    .header-wrap.menu-open .main-nav {
        max-height: 500px;
    }

    .logo-img {
        height: 58px;
    }

    /* ===============================
       Mobile menu socials
       =============================== */

    .mobile-nav-socials {
        padding: 24px 20px 10px;
        text-align: center;
        border-top: 1px solid #eee;
    }

    .mobile-nav-label {
        display: block;
        font-size: 14px;
        color: #888;
        margin-bottom: 6px;
        font-weight: 500;
    }

    .mobile-nav-icons {
        display: flex;
        justify-content: center;
        gap: 28px;
    }

    .mobile-nav-icons a {
        color: #41c127;
        font-size: 32px;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .mobile-nav-icons a:hover {
        opacity: 0.8;
        transform: translateY(-1px);
    }

    /* ===============================
       Animated Hamburger
       =============================== */

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 26px;
        height: 3px;
        background: #2f2f2f;
        border-radius: 2px;
        transition:
            transform 0.35s ease,
            opacity 0.25s ease;
    }

    /* OPEN STATE */
    .header-wrap.menu-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .header-wrap.menu-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .header-wrap.menu-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* ===============================
   Mobile menu overlay + scroll lock
   =============================== */

@media (max-width: 992px) {

    /* Overlay зад менюто */
    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 8;
    }

    .header-wrap.menu-open + .mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* Менюто над overlay */
    .main-header {
        position: relative;
        z-index: 9;
    }

    /* Lock scroll */
    body.menu-open {
        overflow: hidden;
        touch-action: none;
    }
}

/* ===============================
   FOOTER TEXT – MOBILE
   =============================== */

   @media (max-width: 768px) {
    footer,
    footer p,
    footer a,
    footer span {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* ===============================
   FOOTER LINE BREAK – MOBILE
   =============================== */

   @media (max-width: 768px) {

    .footer-separator {
        display: none;
    }

    .footer-text {
        display: flex;
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

