

.mpcHutsHeader {
    --nav-bg: var(--color-paper);
    --nav-text: #0B2745;
    --nav-muted: rgba(11, 39, 69, 0.66);
    --nav-line: rgba(11, 39, 69, 0.12);
    --nav-green: #d5e798;
    --nav-green-text: var(--nav-green-text, var(--color-ink));

    
    position: sticky;
    top: 0;
    
    z-index: 500;
    width: 100%;
    
    background-color: var(--nav-bg);
    background-image: linear-gradient(
        to right,
        var(--color-paper-2) 0%,
        var(--color-paper-2) 25%,
        var(--color-paper-2) 50%,
        var(--color-glass-border) 75%,
        var(--color-glass-border) 100%
    );
}


.mpcHutsHeader.scrolled {
    box-shadow: 0 10px 30px -18px rgba(11, 39, 69, 0.28);
}


.mpcHutsHeader.over-hero {
    position: absolute;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: none;
    border-radius: 0;
}


.mpcHutsHeader .brand,
.mpcHutsHeader .brandTitle {
    color: var(--color-deep);
}
.mpcHutsHeader .navLink {
    color: rgba(11, 39, 69, 0.75);
}

.mpcHutsHeader .navLinkOpen,
.mpcHutsHeader .navLink:hover {
    color: var(--color-deep);
}
.mpcHutsHeader .hamburger {
    border-color: rgba(11, 39, 69, 0.20);
    color: var(--color-deep);
}

.navbarWrap {
    position: relative;
    z-index: 64;
    width: 100%;
    
    background: transparent;
    
    inset: auto;
    top: auto;
    pointer-events: auto;
    -webkit-backdrop-filter: none;
}

.navbar {
    width: 100%;
    height: auto;           
    min-height: 96px;
    display: grid;
    grid-template-columns: minmax(270px, 1fr) auto auto;
    align-items: center;
    column-gap: clamp(22px, 2.6vw, 50px);
    padding: 0 clamp(32px, 3vw, 58px);
    background: transparent;
    justify-content: flex-end;
}





.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--nav-text);
    text-decoration: none;
}

.brandIcon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 0;
}

.brandLogo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brandText {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brandTitle {
    flex: 0 0 auto;
    max-width: 280px;
    font-family: var(--font-nav);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--nav-text);
    text-transform: none;
}

.brandSlogan {
    display: block;
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #B47A16;
    white-space: nowrap;
}

.navLinks {
    display: flex;
    align-items: center;
    gap: clamp(19px, 1.7vw, 32px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.navItem { position: relative; }

.navLink {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    border: 0;
    background: transparent;
    color: #0B2745;
    font-family: var(--font-nav);
    font-size: 15.5px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.018em;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 180ms ease, opacity 180ms ease;
}
.navLinkOpen {
    color: rgba(11, 39, 69, 0.75);
}
.navLink:hover {
    color: rgba(11, 39, 69, 0.75);
}

.navPlus {
    position: relative;
    width: 11px;
    height: 11px;
    display: inline-block;
    flex-shrink: 0;
}
.navPlus span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 10px;
    height: 1.4px;
    border-radius: 10px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 230ms var(--ease-emphasis), opacity 180ms ease;
}
.navPlus span:nth-child(2) { transform: translate(-50%, -50%) rotate(90deg); }
.navPlusOpen span:nth-child(2) { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.navCtaWrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.navCta {
    min-width: 122px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 0 !important;
    border-radius: 999px !important;

    box-shadow: 0 10px 22px -14px rgba(11, 39, 69, 0.45) !important;
    color: var(--color-paper) !important;
    font-family: var(--font-nav);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: transform 220ms var(--ease-emphasis), background-color 180ms ease;
}

.navCta:hover {
    transform: translateY(-2px);
}

.megaMenu {
    position: absolute;
    top: 96px;
    left: 0;
    z-index: 62;
    width: 100%;
    background: var(--nav-bg);
    border-top: 1px solid rgba(11, 39, 69, 0.035);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 26px 52px -36px rgba(11, 39, 69, 0.36);
    overflow: hidden;
    animation: megaMenuIn 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes megaMenuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.megaMenuInner {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 2vw, 38px) clamp(38px, 4vw, 84px);
    padding: clamp(38px, 4vw, 70px) clamp(48px, 4vw, 82px) clamp(46px, 5vw, 82px);
}

.ministryMegaItem {
    min-width: 0;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    color: var(--nav-text);
    text-decoration: none;
}
.megaImageBox {
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(11, 39, 69, 0.13);
    border-radius: 17px;
    transition: transform 250ms var(--ease-emphasis), border-color 180ms ease, box-shadow 250ms ease;
}
.megaImageBox img { display: block; width: 100%; height: 100%; object-fit: cover; }
.megaItemCopy { min-width: 0; }
.megaItemCopy h3 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: clamp(21px, 1.35vw, 26px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.035em;
    color: var(--nav-text);
}
.megaItemCopy p {
    max-width: 365px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.45;
    color: var(--nav-muted);
}


.aboutMegaInner {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(18px, 2.6vw, 64px);
    padding: clamp(24px, 2.6vw, 42px) clamp(48px, 4vw, 82px) clamp(26px, 2.8vw, 44px);
}

.aboutMegaItem {
    
    flex: 1 1 0;
    min-width: 0;
    display: grid;
    grid-template-columns: clamp(52px, 4.4vw, 86px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(12px, 1.3vw, 25px);
    color: var(--nav-text);
    text-decoration: none;
}

.aboutMenuIcon {
    width: clamp(52px, 4.4vw, 86px);
    height: clamp(52px, 4.4vw, 86px);
    display: grid;
    place-items: center;
    border: 1px solid rgba(11, 39, 69, 0.13);
    border-radius: 17px;
    background: rgba(245, 246, 244, 0.5);
    color: var(--color-deep);
    transition: transform 220ms var(--ease-emphasis), background 180ms ease;
}
.aboutMenuIcon svg {
    width: clamp(25px, 2.1vw, 37px);
    height: clamp(25px, 2.1vw, 37px);
}
.aboutMegaItem h3 {
    margin: 0 0 clamp(4px, 0.5vw, 7px);
    font-family: var(--font-display);
    font-size: clamp(19px, 1.4vw, 28px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.035em;
    white-space: nowrap;
    color: var(--nav-text);
}
.aboutMegaItem p {
    max-width: 420px;
    margin: 0;
    font-size: clamp(12px, 0.9vw, 13px);
    line-height: 1.45;
    color: var(--nav-muted);
}

.aboutMegaItem:hover {
    transform: translateY(-3px);
}

.aboutMegaItem:hover .aboutMenuIcon {
    background: rgba(217, 167, 46, 0.08);
}

.languageNavItem { position: relative; }
.languageChevron { transition: transform 220ms var(--ease-emphasis); }
.navLinkOpen .languageChevron { transform: rotate(180deg); }
.languageDropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: -14px;
    z-index: 80;
    min-width: 160px;
    padding: 9px;
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-button);
    background: var(--nav-bg);
    box-shadow: 0 18px 48px -22px rgba(11, 39, 69, 0.34);
    animation: languageMenuIn 180ms ease both;
}
@keyframes languageMenuIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}
.languageDropdown a {
    display: block;
    padding: 11px 13px;
    border-radius: 9px;
    color: var(--nav-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 150ms ease;
}


.hamburger {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.hamburger span { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 10px; }

.mobileMenuBackdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
    background: rgba(11, 39, 69, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: mobileBackdropIn 220ms ease;
}
@keyframes mobileBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.mobileMenuSheet {
    width: 100%;
    height: 90svh;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    background: var(--color-paper);
    border: 1px solid var(--color-ink-08);
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -18px 50px -20px rgba(11, 39, 69, 0.35);
    overflow: hidden;
    animation: mobileSheetUp 320ms var(--ease-emphasis);
}
@keyframes mobileSheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.mobileMenuTop {
    flex: none;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(11, 39, 69, 0.09);
}
.mobileMenuBrand {
    max-width: calc(100% - 58px);
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 800;
}
.mobileMenuBrand img { width: 42px; height: 42px; object-fit: contain; }
.mobileMenuClose {
    position: static;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(11, 39, 69, 0.12);
    border-radius: 50%;
    background: transparent;
    color: var(--nav-text);
    cursor: pointer;
}
.mobileMenuContent {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 10px 22px 16px;
}
.mobileMainLink,
.mobileAccordionTrigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 2px;
    border: 0;
    border-bottom: 1px solid var(--color-glass-border);
    background: transparent;
    color: var(--nav-text);
    font-family: var(--font-display);
    font-size: clamp(20px, 5.4vw, 24px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}
.mobilePlus {
    font-family: var(--font-nav);
    font-size: 22px;
    font-weight: 400;
    transition: transform 220ms var(--ease-emphasis);
}
.mobilePlusOpen { transform: rotate(45deg); }
.mobileSubMenu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 16px;
}
.mobileSubLink {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 8px 8px 14px;
    border: 1px solid rgba(11, 39, 69, 0.09);
    border-radius: var(--radius-button);
    background: rgba(245, 246, 244, 0.48);
    color: var(--nav-text);
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
}
.mobileSubText { min-width: 0; }
.mobileSubImg {
    width: 58px;
    height: 44px;
    flex: 0 0 58px;
    border-radius: 9px;
    overflow: hidden;
    display: grid;
    place-items: center;
}
.mobileSubImg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mobileSubChip {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(11, 39, 69, 0.09);
    border-radius: var(--radius-button);
    background: rgba(245, 246, 244, 0.48);
    color: var(--nav-text);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}
.mobileMenuCta {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0 4px;
    border: 0 !important;
    border-radius: 999px !important;

    color: var(--color-paper) !important;
    box-shadow: 0 10px 22px -14px rgba(11, 39, 69, 0.45) !important;
    font-family: var(--font-nav);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
}
.mobileMenuFooter {
    flex: none;
    padding: 16px 22px calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(11, 39, 69, 0.09);
    background: var(--color-paper-2);
}
.mobileMenuFooterLabel {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nav-muted);
}
.mobileMenuSocials {
    display: flex;
    gap: 12px;
}
.mobileMenuSocials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(11, 39, 69, 0.16);
    color: var(--nav-text);
    background: var(--color-paper);
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease,
        transform 200ms ease;
}
.mobileMenuSocials a svg { width: 17px; height: 17px; }


@media (max-width: 1190px) {
    .navbar {
        min-height: 82px;
        grid-template-columns: minmax(220px, 1fr) auto;
        padding: 0 clamp(20px, 3vw, 34px);
        justify-content: flex-end;
    }
    .navLinks, .navCtaWrap { display: none; }
    .hamburger { display: inline-flex; justify-self: end; }
    .megaMenu { display: none; }
    .brandIcon { width: 50px; height: 50px; flex-basis: 50px; }
    .brandTitle { max-width: 230px; font-size: 13px; }
    .brandSlogan { font-size: 13px; }
}

@media (max-width: 520px) {    .navbar {
        min-height: 72px;
        padding: 0 16px;
        justify-content: flex-end;
    }
    .brand { gap: 9px; }
    .brandIcon { width: 43px; height: 43px; flex-basis: 43px; }
    .brandTitle { max-width: 170px; font-size: 11px; line-height: 1.2; }
    .brandSlogan { font-size: 12px; }
    .hamburger { width: 40px; height: 40px; }
    .mobileMenuTop { padding: 0 18px; }
    .mobileMenuContent { padding: 8px 18px 14px; }
    .mobileMenuFooter { padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); }
    .mobileMenuSheet { border-radius: var(--radius-card) 20px 0 0; }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .mpcHutsHeader.over-hero .brandIcon {
    margin-left: clamp(195px, 20vw, 210px);
  }
}
@media (min-width: 1280px) {
  .mpcHutsHeader.over-hero .brandIcon {
    margin-left: clamp(206px, calc(5.5vw + 11px), 383px);
  }
}

.navbar {
    transition: background 240ms ease;
}


@media (prefers-reduced-motion: reduce) {
    .megaMenu, .languageDropdown { animation: none; }
    .navPlus span, .mobilePlus, .languageChevron { transition: none; }
    .mpcHutsHeader, .navbar { transition: none; }
}

.megaMenu,
.languageDropdown {
    --nav-bg: var(--color-paper, #F7F7F3);
    --nav-text: var(--color-deep);
    --nav-muted: rgba(11, 39, 69, 0.72);
    --nav-line: rgba(11, 39, 69, 0.14);
    background: var(--color-paper, var(--color-paper));
    border-top: 1px solid rgba(11, 39, 69, 0.10);
}

.megaImageBox {
    border-color: rgba(11, 39, 69, 0.14);
    background: rgba(255, 255, 255, 0.45);
}

.ministryMegaItem:hover .megaImageBox {
    transform: translateY(-3px);
    border-color: rgba(217, 167, 46, 0.38);
    box-shadow: 0 14px 28px -22px rgba(11, 39, 69, 0.48);
}


.megaMenuEvents {
    --nav-bg: var(--color-paper, #F7F7F3);
}


.aboutMegaMenu {
    background: var(--color-paper, var(--color-paper));
    border-top: 1px solid rgba(11, 39, 69, 0.14);
}

.aboutMegaMenu .aboutMenuIcon {
    border-color: rgba(11, 39, 69, 0.16);
    background: rgba(255, 255, 255, 0.55);
    color: var(--color-deep);
}

.aboutMegaMenu .aboutMegaItem {
    color: var(--color-deep);
}

.aboutMegaMenu .aboutMegaItem h3 {
    color: var(--color-deep);
}

.aboutMegaMenu .aboutMegaItem p {
    color: rgba(11, 39, 69, 0.72);
}

.aboutMegaMenu .aboutMegaItem:hover .aboutMenuIcon {
    border-color: rgba(217, 167, 46, 0.42);
    background: var(--color-primary-soft);
}


@media (max-width: 1190px) {
  .aboutMegaMenu {
    background: var(--color-deep);
    border-top-color: rgba(245, 246, 244, 0.10);
  }
  .aboutMegaMenu .aboutMenuIcon {
    border-color: rgba(245, 246, 244, 0.16);
    background: rgba(245, 246, 244, 0.10);
    color: var(--color-paper);
  }
  .aboutMegaMenu .aboutMegaItem {
    color: var(--color-paper);
  }
  .aboutMegaMenu .aboutMegaItem h3 {
    color: var(--color-paper);
  }
  .aboutMegaMenu .aboutMegaItem p {
    color: rgba(255, 255, 255, 0.72);
  }
  .aboutMegaMenu .aboutMegaItem:hover .aboutMenuIcon {
    border-color: var(--color-glass-dark);
    background: rgba(255, 255, 255, 0.5);
  }
}


.mpcHutsHeader {
    transition: background-color 240ms ease, box-shadow 240ms ease;
}

.mpcHutsHeader:has(.megaMenu),
.mpcHutsHeader:has(.languageDropdown) {
    background-color: var(--color-paper, var(--color-paper));
    background-image: none;
}


.mpcHutsHeader.over-hero:has(.megaMenu),
.mpcHutsHeader.over-hero:has(.languageDropdown) {
    background-color: var(--color-paper, var(--color-paper));
    background-image: none;
}
