@media (max-width: 1024px) {
    html, body {
        max-width: 100%;
        overflow-x: clip;
    }

    .gnnh-header__inner, .gnnh-navigation, .gnnh-nav, .gnnh-menu, .gnnh-menu > li, .gnnh-menu-programs, .gnnh-menu-programs__trigger, .gnnh-mega, .gnnh-mega__inner, .gnnh-mega__programs, .gnnh-header-actions {
        min-width: 0;
        max-width: 100%;
    }

    .gnnh-navigation {
        position: fixed;
        z-index: 1100;
        inset: 0;
        display: flex;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 86px 22px max(28px, env(safe-area-inset-bottom));
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: rgba(255, 250, 245, 0.992);
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        backdrop-filter: blur(18px);
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }


    .gnnh-navigation.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .gnnh-nav {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .gnnh-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        border-top: 1px solid rgba(45, 37, 37, 0.08);
    }

    .gnnh-menu > li {
        border-bottom: 1px solid rgba(45, 37, 37, 0.08);
    }

    .gnnh-menu > li > a, .gnnh-menu-programs__trigger > a {
        display: flex;
        align-items: center;
        min-height: 60px;
        font-size: 21px;
        font-weight: 300;
        line-height: 1.2;
        letter-spacing: -0.012em;
    }

    .gnnh-menu-academy {
        padding: 12px 0 8px;
        border-bottom: 0;
    }

    .gnnh-menu-academy > a {
        justify-content: center;
        min-height: 48px;
        border-radius: 999px;
        background: var(--gnnh-accent);
        color: #fff;
        font-size: 15px;
        font-weight: 600;
    }

    .gnnh-menu-programs__trigger {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 50px;
    }

    .gnnh-menu-programs__trigger > a {
        border-bottom: 0;
        flex: 1 1 auto;
        min-width: 0;
        min-height: 50px;
        padding: 0 4px;
    }

    .gnnh-menu-programs__trigger > button {
        flex: 0 0 48px;
        width: 48px;
        height: 50px;
    }

    .gnnh-mega {
        position: static;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: max-height 0.42s ease;
        width: 100%;
        max-width: 100%;
    }

    .gnnh-menu-programs:hover .gnnh-mega, .gnnh-menu-programs:focus-within .gnnh-mega, .gnnh-menu-programs.is-open .gnnh-mega {
        transform: none;
    }

    .gnnh-menu-programs.is-open .gnnh-mega {
        max-height: 320px;
    }

    .gnnh-mega__inner {
        flex-direction: column;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        width: 100%;
        gap: 0;
        padding: 4px 0 12px;
    }

    .gnnh-mega__programs {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }

    .gnnh-header .gnnh-mega-card {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 7px 34px 7px 14px;
        border-radius: 0;
        border-bottom: 1px solid rgba(45, 37, 37, 0.07);
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .gnnh-mega-card > img, .gnnh-mega-card small, .gnnh-mega-card em {
        display: none;
    }

    .gnnh-mega-card > span {
        display: block;
        min-width: 0;
        padding-left: 0;
        overflow: visible;
    }

    .gnnh-mega-card strong {
        display: block;
        font-size: 17.5px;
        font-weight: 400;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .gnnh-mega-card > i {
        top: 50%;
        right: 12px;
        bottom: auto;
        font-size: 15px;
        transform: translateY(-50%);
    }

    .gnnh-mega-card:hover > i, .gnnh-mega-card:focus-visible > i {
        transform: translateY(-50%);
    }

    .gnnh-header-actions {
        flex-direction: row;
        align-items: stretch;
        gap: 10px;
        margin-top: 14px;
        width: 100%;
        max-width: 500px;
        margin-right: auto;
        margin-left: auto;
        padding-bottom: max(2px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 767px) {

    .gnnh-guide__content h2,
    .gnnh-benefits h2,
    .gnnh-programs h2,
    .gnnh-reviews__intro h2,
    .gnnh-faq__content h2,
    .gnnh-newsletter h2 {
        font-size: 30px;
        line-height: 1.2;
    }

    body.home .gnnh-header,
    body.front-page .gnnh-header,
    body.gnnh-front-page .gnnh-header,
    body.gnnh-about-route .gnnh-header,
    body.home .gnnh-header.is-scrolled,
    body.front-page .gnnh-header.is-scrolled,
    body.gnnh-front-page .gnnh-header.is-scrolled,
    body.gnnh-about-route .gnnh-header.is-scrolled {
        background: rgba(255, 250, 245, 0.96);
        border-bottom: 1px solid rgba(45, 37, 37, 0.06);
        box-shadow: 0 8px 24px rgba(45, 37, 37, 0.045);
        backdrop-filter: blur(14px);
    }

    .gnnh-footer {
        padding: 28px 0 14px;
    }

    .gnnh-footer__main {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding-bottom: 18px;
    }

    .gnnh-footer__identity {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        column-gap: 34px;
        row-gap: 0;
        width: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .gnnh-footer__brand {
        --gnnh-footer-brand-size: 94px;
        order: 1;
        flex: 0 0 var(--gnnh-footer-brand-size);
        width: var(--gnnh-footer-brand-size);
        align-items: flex-start;
    }

    .gnnh-footer-socials {
        justify-content: space-between;
        width: calc(var(--gnnh-footer-brand-size) - 16px);
        margin: 10px auto 0;
    }

    .gnnh-footer-socials a,
    .gnnh-footer-socials__visual,
    .gnnh-footer-socials img {
        width: 18px;
        height: 18px;
    }

    .gnnh-footer__contact {
        display: contents;
    }

    .gnnh-footer__contact-details {
        order: 2;
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        padding-top: 3px;
    }

    .gnnh-footer__contact-details > span {
        margin: 0 0 6px;
        color: var(--gnnh-muted);
        font-size: 10.5px;
        font-weight: 500;
        line-height: 1.2;
    }

    .gnnh-footer__contact-details > span:nth-of-type(2) {
        margin-top: 13px;
    }

    .gnnh-footer__contact-details > a {
        justify-content: flex-start;
        max-width: 100%;
        margin: 0;
        gap: 7px;
        color: var(--gnnh-text);
        font-size: 12px;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
        overflow-wrap: normal;
    }

    .gnnh-footer__contact-details > a img {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
    }

    .gnnh-footer__contact h2 {
        order: 3;
        flex: 0 0 100%;
        margin: 18px 0 10px;
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: -0.025em;
    }

    .gnnh-footer__contact .gnnh-button {
        order: 4;
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0 20px;
        font-size: 12.5px;
    }

    .gnnh-footer__links {
        flex: none;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 28px;
        width: 100%;
        margin-left: 0;
        padding: 0 2px;
    }

    .gnnh-footer__links > div {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        gap: 7px;
    }

    .gnnh-footer__links span {
        margin-bottom: 4px;
        color: var(--gnnh-accent-dark);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.035em;
    }

    .gnnh-footer__links a {
        max-width: 100%;
        color: #3f3a39;
        font-size: 12.5px;
        font-weight: 500;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .gnnh-footer__bottom {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
        width: 100%;
        padding: 13px 2px 0;
        color: #77706e;
        font-size: 9.5px;
        line-height: 1.25;
        text-align: left;
    }

    .gnnh-footer__bottom > span {
        display: block;
        width: 100%;
    }

    .gnnh-footer__bottom > div {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        min-width: 0;
        white-space: nowrap;
    }

    .gnnh-footer__credit {
        display: block;
        width: fit-content;
        margin-top: 2px;
        color: #5f5957;
        font-size: 11px;
        font-weight: 500;
    }

    .gnnh-shell {
        --gnnh-shell-padding: 16px;
        width: 100%;
        min-width: 0;
        max-width: var(--gnnh-shell);
    }

    .gnnh-navigation {
        padding: 82px 16px max(24px, env(safe-area-inset-bottom));
        background: rgba(255, 250, 245, 0.992);
    }

    .gnnh-nav {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .gnnh-menu {
        gap: 0;
        border-top: 1px solid rgba(45, 37, 37, 0.09);
    }

    .gnnh-menu > li {
        border-bottom: 1px solid rgba(45, 37, 37, 0.09);
    }

    .gnnh-menu > li > a, .gnnh-menu-programs__trigger {
        min-height: 50px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .gnnh-menu > li > a, .gnnh-menu-programs__trigger > a {
        min-height: 50px;
        padding-right: 4px;
        padding-left: 4px;
        font-size: 17px;
        font-weight: 450;
        line-height: 1.2;
        letter-spacing: -0.01em;
    }

    .gnnh-menu > li:not(.gnnh-menu-academy) > a {
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .gnnh-menu > li:not(.gnnh-menu-academy) > a:hover, .gnnh-menu > li:not(.gnnh-menu-academy) > a:focus-visible {
        color: var(--gnnh-accent-dark);
        transform: translateX(3px);
    }

    .gnnh-menu-academy {
        padding: 10px 0 8px;
        border-bottom: 0;
    }

    .gnnh-menu-academy > a, .gnnh-menu > li:last-child > a {
        justify-content: center;
        min-height: 46px;
        padding: 0 20px;
        border-radius: 999px;
        background: var(--gnnh-accent);
        color: var(--gnnh-white);
        font-size: 15px;
        font-weight: 600;
        letter-spacing: -0.005em;
        box-shadow: none;
    }

    .gnnh-header-actions {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        width: 100%;
        max-width: 500px;
        margin: 12px auto 0;
    }

    .gnnh-cart, .gnnh-reserve {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        min-height: 54px;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 500;
    }

    .gnnh-cart {
        gap: 8px;
        padding: 0 12px 0 17px;
        border-color: rgba(82, 157, 139, 0.42);
        background: rgba(255, 255, 255, 0.94);
        color: var(--gnnh-dark);
        box-shadow: 0 8px 22px rgba(45, 37, 37, 0.045);
    }

    .gnnh-reserve {
        gap: 8px;
        padding: 0 20px;
        border-color: var(--gnnh-accent);
        background: var(--gnnh-accent);
        color: var(--gnnh-white);
        box-shadow: 0 10px 24px rgba(82, 157, 139, 0.17);
    }

    .gnnh-cart:hover, .gnnh-cart:focus-visible {
        border-color: var(--gnnh-accent);
        background: var(--gnnh-white);
    }

    .gnnh-reserve:hover, .gnnh-reserve:focus-visible {
        border-color: var(--gnnh-accent-dark);
        background: var(--gnnh-accent-dark);
        color: var(--gnnh-white);
    }

    .gnnh-cart img {
        width: 19px;
        height: 19px;
    }

    .gnnh-cart em {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .gnnh-reserve svg {
        width: 16px;
        height: 16px;
    }

    .gnnh-home .gnnh-accordion {
        min-height: 0;
    }

    .gnn-main, .gnnh-home, .gnnh-page, .gnnh-course, .gnnh-programs-index, .gnn-pdf-page, .gnn-shop, .gnnh-product {
        max-width: 100%;
        overflow-x: clip;
    }

    img, video, iframe, svg {
        max-width: 100%;
    }

    input, select, textarea, button {
        max-width: 100%;
    }

    .gnnh-button, .gnn-button {
        max-width: 100%;
    }

    .gnnh-reviews__content, .gnnh-review-list, .gnnh-faq__content, .gnnh-newsletter__content {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    .gnnh-navigation {
        padding-right: 18px;
        padding-left: 18px;
    }

    .gnnh-menu {
        gap: 0;
    }

    .gnnh-menu > li > a, .gnnh-menu-programs__trigger, .gnnh-menu-programs__trigger > a {
        min-height: 48px;
    }

    .gnnh-menu > li > a, .gnnh-menu-programs__trigger > a {
        font-size: 16.5px;
        font-weight: 450;
    }

    .gnnh-menu-academy > a, .gnnh-menu > li:last-child > a {
        min-height: 45px;
        font-size: 15px;
        font-weight: 600;
    }

    .gnnh-header .gnnh-mega-card {
        min-height: 42px;
        padding: 6px 34px 6px 12px;
    }

    .gnnh-mega-card strong {
        font-size: 15px;
        font-weight: 450;
    }

    .gnnh-header-actions {
        gap: 10px;
    }

    .gnnh-cart, .gnnh-reserve {
        flex: 1 1 0;
        min-width: 0;
        font-size: 13.5px;
    }

    .gnnh-cart {
        padding-right: 10px;
        padding-left: 14px;
    }

    .gnnh-reserve {
        padding-right: 16px;
        padding-left: 16px;
    }
}


@media (max-width: 430px) {
    .gnnh-guide__content h2,
    .gnnh-benefits h2,
    .gnnh-programs h2,
    .gnnh-reviews__intro h2,
    .gnnh-faq__content h2,
    .gnnh-newsletter h2 {
        font-size: 28px;
    }

    .gnnh-footer__identity {
        column-gap: 28px;
        padding: 0;
    }

    .gnnh-footer__brand {
        --gnnh-footer-brand-size: 88px;
    }

    .gnnh-footer-socials {
        width: calc(var(--gnnh-footer-brand-size) - 14px);
    }

    .gnnh-footer-socials a,
    .gnnh-footer-socials__visual,
    .gnnh-footer-socials img {
        width: 18px;
        height: 18px;
    }

    .gnnh-footer__contact-details > a {
        font-size: 11.5px;
    }

    .gnnh-footer__links {
        gap: 20px;
    }
}

@media (max-width: 359px) {
    .gnnh-navigation {
        padding-right: 10px;
        padding-left: 10px;
    }

    .gnnh-header-actions {
        flex-direction: column;
    }

    .gnnh-cart, .gnnh-reserve {
        width: 100%;
    }
}

/* Shared mobile component rules for About, Programs and subpage FAQ. */
@media (max-width: 767px) {
    /* O mnie: dedicated mobile composition – no crop of the head. */
    .gnnh-about-page .gnnh-about-hero__mobile-media {
        height: auto;
        overflow: visible;
    }

    .gnnh-about-page .gnnh-about-hero__mobile-media img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center top;
    }

    /* O mnie: exactly four expertise tiles on phones, 2 × 2, without dividers. */
    .gnnh-about-page .gnnh-about-expertise__list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 10px;
        padding: 10px 16px 12px;
    }

    .gnnh-about-page .gnnh-about-expertise__item {
        flex: 0 0 calc(50% - 5px);
        padding: 12px 8px;
        border: 0;
    }

    .gnnh-about-page .gnnh-about-expertise__item:nth-child(5) {
        display: none;
    }

    .gnnh-about-page .gnnh-about-expertise__item:nth-child(odd):not(:last-child) {
        border-right: 0;
    }

    /* Programy: remove the desktop gap carried into the stacked hero. */
    .gnnh-programs-index .gnnh-programs-hero__inner {
        gap: 16px;
    }

    .gnnh-programs-index .gnnh-programs-breadcrumbs {
        margin-bottom: 14px;
    }

    .gnnh-programs-index .gnnh-programs-hero {
        padding-top: 14px;
        padding-bottom: 24px;
    }

    /* All subpage FAQs: image first, then heading/questions. Homepage is untouched. */
    .gnnh-page .gnnh-faq__layout,
    .gnnh-programs-index .gnnh-faq__layout,
    .gnnh-course .gnnh-course-faq__layout {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .gnnh-page .gnnh-faq__image,
    .gnnh-programs-index .gnnh-faq__image,
    .gnnh-course .gnnh-course-faq__image {
        order: 1;
        width: 100%;
    }

    .gnnh-page .gnnh-faq__content,
    .gnnh-programs-index .gnnh-faq__content,
    .gnnh-course .gnnh-faq__content {
        order: 2;
        width: 100%;
    }

    .gnnh-page .gnnh-faq__image img,
    .gnnh-programs-index .gnnh-faq__image img,
    .gnnh-course .gnnh-course-faq__image img {
        display: block;
        width: 100%;
        max-height: 430px;
        margin-inline: auto;
        object-fit: contain;
        object-position: center bottom;
    }
}
