/* =========================================================
   GLOBAL RESPONSIVE
========================================================= */


/* =========================================================
   TABLET AND MOBILE NAVIGATION
========================================================= */

@media (max-width: 992px) {

    body.menu-open {
        overflow: hidden;
    }


    /* =====================================================
       HEADER
    ===================================================== */

    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header__container {
        position: relative;
    }


    /* =====================================================
       MOBILE MENU BUTTON
    ===================================================== */

    .menu-toggle {
        position: relative;
        z-index: 1002;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 48px;
        height: 48px;

        padding: 0;

        border: 0;
        background: transparent;

        color: var(--color-primary);

        font-family: inherit;
        font-size: 32px;
        font-weight: 400;
        line-height: 1;

        cursor: pointer;
    }

    .menu-toggle:focus-visible {
        outline: 3px solid var(--color-secondary);
        outline-offset: 4px;
        border-radius: 8px;
    }


    /* =====================================================
       NAVIGATION PANEL
    ===================================================== */

    .nav {
        position: fixed;

        top: var(--header-height);
        left: 0;
        right: 0;

        display: block;

        height: calc(100dvh - var(--header-height));

        padding: 34px 24px 50px;

        background: #ffffff;

        overflow-y: auto;
        overscroll-behavior: contain;

        opacity: 0;
        visibility: hidden;

        transform: translateY(-18px);

        pointer-events: none;

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;

        z-index: 1001;
    }


    /* =====================================================
       OPEN NAVIGATION
    ===================================================== */

    .nav.nav--open {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }


    /* =====================================================
       NAVIGATION LIST
    ===================================================== */

    .nav__list {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        max-width: 720px;

        margin: 0 auto;
        padding: 0;

        gap: 0;
    }

    .nav__list li {
        width: 100%;

        border-bottom: 1px solid var(--color-border);
    }

    .nav__list a {
        display: flex;
        align-items: center;

        width: 100%;
        height: auto;

        padding: 20px 4px;

        color: var(--color-text);

        font-size: clamp(1.35rem, 5vw, 2rem);
        font-weight: 700;
        line-height: 1.2;
    }

    .nav__list a:hover,
    .nav__list a.active {
        color: var(--color-primary);
    }


    /* =====================================================
       REMOVE DESKTOP UNDERLINE
    ===================================================== */

    .nav__list a::after {
        display: none;
    }


    /* =====================================================
       ACTIVE LINK
    ===================================================== */

    .nav__list a.active::before {
        content: "";

        width: 8px;
        height: 8px;

        margin-right: 14px;

        border-radius: 50%;

        background: var(--color-secondary);

        flex-shrink: 0;
    }


    /* =====================================================
       HEADER BUTTON
    ===================================================== */

    .header__button {
        display: none;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .nav {
        padding:
            24px
            20px
            calc(40px + env(safe-area-inset-bottom));
    }

    .nav__list a {
        padding: 18px 2px;

        font-size: 1.45rem;
    }

}
/* =========================================================
   HOME MOBILE
========================================================= */

@media (max-width: 768px) {

    /* HERO */

    .hero {
        min-height: auto;
        padding: 50px 0 70px;
    }

    .hero__container {
        flex-direction: column;
        gap: 50px;
        margin-bottom: 0;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__title {
        font-size: 44px;
    }

    .hero__text {
        font-size: 18px;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 14px;
    }

    .hero__image {
        width: 100%;
    }

    .hero__image img {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
    }


    /* ABOUT PREVIEW */

    .about-preview {
        padding: 80px 0;
    }

    .about-preview__container {
        flex-direction: column;
        gap: 50px;
    }

    .about-preview__image {
        display: none;
        width: 100%;
    }

    .about-preview__image img {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-preview__content {
        width: 100%;
    }

}

/* =========================================================
   HOME MOBILE FINAL POLISH
========================================================= */

@media (max-width: 576px) {

    /* HERO */

    .hero {
        padding-top: 38px;
        padding-bottom: 65px;
    }

    .hero__container {
        gap: 42px;
    }

    .hero__title {
        font-size: 40px;
        line-height: 1.02;
    }

    .hero__text {
        font-size: 17px;
        line-height: 1.6;
    }

    .hero__buttons {
        margin-bottom: 8px;
    }

    .hero__image img {
        max-height: 560px;
        object-fit: cover;
        object-position: center top;
    }


    /* GENERAL MOBILE TEXT */

    .about-preview p {
        font-size: 16px;
        line-height: 1.65;
    }


    /* ABOUT */

    .about-preview {
        padding: 70px 0;
    }

    /* FOOTER */

    .site-footer {
        padding-top: 65px;
    }

}
/* =========================================================
   ABOUT PAGE MOBILE FINAL POLISH
========================================================= */

@media (max-width: 576px) {

    /* ABOUT HERO */

    .about-hero {
        padding: 45px 0 65px;
    }

    .about-hero__container {
        gap: 42px;
    }

    .about-hero__title {
        margin: 16px 0 22px;

        font-size: 39px;
        line-height: 1.04;
    }

    .about-hero__text {
        margin-bottom: 28px;

        font-size: 17px;
        line-height: 1.7;
    }

    .about-hero__quote {
        margin-bottom: 30px;
        padding-left: 18px;

        font-size: 19px;
        line-height: 1.55;
    }

    .about-hero__buttons {
        flex-direction: column;
        gap: 12px;
    }

    .about-hero__buttons .btn {
        width: 100%;
    }

    .about-hero__image img {
        border-radius: 16px;
    }


    /* STORY */

    .about-story {
        padding: 70px 0;
    }

    .about-story__grid {
        gap: 40px;
    }

    .about-story__content {
        gap: 20px;
    }

    .about-story__content p {
        font-size: 17px;
        line-height: 1.75;
    }


    /* FACTS */

    .about-facts {
        padding: 70px 0;
    }

    .about-facts__grid {
        gap: 16px;
    }

    .about-fact {
        padding: 30px 24px;
        border-radius: 16px;
    }

    .about-fact__number {
        margin-bottom: 12px;

        font-size: 38px;
    }

    .about-fact p {
        font-size: 16px;
        line-height: 1.65;
    }


    /* VALUES */

    .about-values {
        padding: 70px 0;
    }

    .about-values__grid {
        gap: 16px;
    }

    .about-value {
        padding: 28px 24px;
        border-radius: 16px;
    }

    .about-value h3 {
        margin-bottom: 14px;
    }

    .about-value p {
        font-size: 16px;
        line-height: 1.7;
    }


    /* TIMELINE */

    .about-timeline {
        padding: 70px 0;
    }

    .timeline {
        margin-top: 50px;
        padding-left: 38px;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-item {
        margin-bottom: 34px;
    }

    .timeline-item::before {
        left: -38px;
        top: 7px;

        width: 16px;
        height: 16px;

        border-width: 3px;
    }

    .timeline-item__content {
        padding: 24px 20px;
        border-radius: 15px;
    }

    .timeline-item__content h3 {
        margin-bottom: 10px;

        font-size: 19px;
        line-height: 1.3;
    }

    .timeline-item__content p {
        font-size: 16px;
        line-height: 1.7;
    }


    /* VISION */

    .about-vision {
        padding: 70px 0;
    }

    .about-vision__content > h2 {
        margin: 16px 0 24px;

        font-size: 39px;
        line-height: 1.04;
    }

    .about-vision__content > p {
        font-size: 17px;
        line-height: 1.7;
    }

    .about-vision__grid {
        gap: 16px;
        margin-top: 38px;
    }

    .about-vision__item {
        padding: 28px 24px;
        border-radius: 16px;
    }

    .about-vision__item h3 {
        margin-bottom: 12px;

        font-size: 21px;
    }

    .about-vision__item p {
        font-size: 16px;
        line-height: 1.65;
    }


    /* CTA */

    .about-cta {
        padding: 70px 0;
    }

    .about-cta h2 {
        margin-bottom: 20px;

        font-size: 39px;
        line-height: 1.04;
    }

    .about-cta p {
        font-size: 17px;
        line-height: 1.7;
    }

    .about-cta__buttons {
        gap: 12px;
        margin-top: 32px;
    }

}
/* =========================================================
   PROGRAM PAGE MOBILE FINAL POLISH
========================================================= */

@media (max-width: 576px) {

    /* PROGRAM TABS */

    .program-tabs {
        gap: 12px;
    }

    .program-tab {
        min-height: 58px;

        padding: 19px 20px;

        font-size: 16px;
        line-height: 1.35;
    }

    .program-tab span {
        min-width: 30px;

        font-size: 12px;
    }


    /* PROGRAM CARDS */

    .program-grid {
        gap: 18px;
    }

    .program-card {
        padding: 27px 24px;

        border-radius: 17px;
    }

    .program-card h3 {
        font-size: 23px;
        line-height: 1.25;
    }

    .program-card__intro {
        font-size: 16px;
        line-height: 1.7;
    }

    .program-card__preview {
        gap: 11px;
    }

    .program-card__preview li {
        font-size: 15px;
        line-height: 1.6;
    }

    .program-card__details > p {
        font-size: 16px;
        line-height: 1.75;
    }

    .program-card__details > ul {
        gap: 10px;
    }

    .program-card__details > ul li {
        padding: 14px 15px 14px 18px;

        font-size: 15px;
        line-height: 1.6;
    }

    .program-card__goal {
        padding: 21px 20px;

        font-size: 15px;
        line-height: 1.7;
    }

    .program-card__toggle {
        font-size: 15px;
    }


    /* IMPLEMENTATION */

    .implementation-card h3 {
        font-size: 22px;
    }

    .implementation-card p {
        font-size: 16px;
        line-height: 1.7;
    }

}