/* ==========================================================================
   AKADEMIA 2026 — MENU (11.10.2026)
   Ładowany na każdej stronie Akademii zaraz po fullhd-layout.css.
   Klasy .akn-*; .navbar / .nav-box / .hamburger / #navLinks zostają,
   bo na nich opierają się odstępy podstron.
   ========================================================================== */

:root {
    --akn-h: 72px;
    --akn-ink: #0b0d16;
    --akn-violet: #6A0DAD;
    --akn-gold: #FDC500;
}

.akn-skip {
    position: absolute; left: 12px; top: -60px; z-index: 2000;
    background: var(--akn-ink); color: #fff; padding: 10px 16px;
    font-family: 'Poppins', sans-serif; font-size: 0.85rem; font-weight: 600;
}
.akn-skip:focus { top: 12px; }
#main-content { position: absolute; top: 0; }

.navbar.akn {
    padding-top: 0; padding-bottom: 0;
    height: var(--akn-h);
    display: flex; align-items: center;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid rgba(11, 13, 22, 0.07);
    transition: box-shadow .3s ease, background .3s ease;
}
.navbar.akn.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 30px -18px rgba(11, 13, 22, 0.35);
}
.navbar.akn::after {
    /* cienka linia marki: fiolet → kobalt → złoto */
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, #6A0DAD, #2F6BFF 55%, #FDC500);
    transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.navbar.akn.is-scrolled::after { transform: scaleX(1); }

.akn-box { height: 100%; }
.akn .brand-logo img, .akn .brand-logo { max-height: 46px; width: auto; }

.akn-menu { display: flex; align-items: center; gap: 18px; flex: 1; justify-content: flex-end; }
.akn-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.akn-item { position: relative; }

.akn-link {
    display: inline-flex; align-items: center; gap: 6px;
    height: 40px; padding: 0 12px;
    font-family: 'Poppins', sans-serif; font-size: 0.84rem; font-weight: 500; letter-spacing: .1px;
    color: var(--akn-ink); background: none; border: 0; cursor: pointer;
    position: relative; white-space: nowrap;
}
.akn-link b { font-weight: 700; color: #b58a00; }
.akn-link i { font-style: normal; color: inherit; }
.akn-link .fa-chevron-down { font-size: .6rem; opacity: .55; transition: transform .25s ease; }
.akn-link::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
    background: var(--akn-violet); transform: scaleX(0); transition: transform .25s ease;
}
.akn-link:hover::after, .akn-link.is-active::after, .akn-item.is-open > .akn-link::after { transform: scaleX(1); }
.akn-link:hover, .akn-link.is-active { color: var(--akn-violet); }
.akn-item.is-open > .akn-link .fa-chevron-down { transform: rotate(180deg); }
.akn-link:focus-visible, .akn-cta:focus-visible, .akn-panel:focus-visible, .akn-burger:focus-visible {
    outline: 2px solid var(--akn-violet); outline-offset: 2px;
}

.akn-actions { display: flex; align-items: center; gap: 10px; margin: 0; }
.akn-panel {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 14px;
    font-family: 'Poppins', sans-serif; font-size: 0.78rem; font-weight: 600;
    color: var(--akn-ink); border: 1px solid rgba(11, 13, 22, 0.14);
}
.akn-panel i { font-style: normal; color: var(--akn-violet); font-family: 'Font Awesome 6 Free'; }
.akn-panel:hover { border-color: var(--akn-ink); }
.akn-cta {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 10px;
    height: 40px; padding: 0 18px;
    font-family: 'Poppins', sans-serif; font-size: 0.8rem; font-weight: 700;
    color: var(--akn-ink); background: var(--akn-gold);
    box-shadow: 0 8px 22px -12px rgba(253, 197, 0, .9);
}
.akn-cta i { font-style: normal; color: inherit; font-family: 'Font Awesome 6 Free'; font-size: .72rem; transition: transform .25s ease; }
.akn-cta::before {
    content: ''; position: absolute; inset: 0; transform: translateX(-110%);
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%);
    transition: transform .7s ease;
}
.akn-cta:hover::before { transform: translateX(110%); }
.akn-cta:hover i { transform: translateX(3px); }

/* --- Mega menu „Oferta” --- */
.akn-mega, .akn-drop {
    position: absolute; top: calc(100% + 14px);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
    z-index: 1100;
}
.akn-item.is-open > .akn-mega, .akn-item.is-open > .akn-drop {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .22s ease, transform .22s ease;
}
.akn-mega::before, .akn-drop::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
/* Panel „Oferta” liczy pozycję od całego paska (li jest static), więc zawsze stoi pośrodku. */
.akn-item--mega { position: static; }
.akn-mega {
    top: 100%; left: 50%; transform: translate(-50%, -6px);
    width: min(1000px, calc(100vw - 32px));
}
.akn-item.is-open > .akn-mega { transform: translate(-50%, 0); }
.akn-mega::before { top: -20px; height: 20px; }
.akn-mega-inner {
    display: grid; grid-template-columns: 1.25fr 1fr 0.95fr; gap: 0;
    background: #fff; border: 1px solid rgba(11, 13, 22, .08);
    box-shadow: 0 40px 80px -30px rgba(11, 13, 22, .45);
}
.akn-mega-col { padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; }
.akn-mega-col + .akn-mega-col { border-left: 1px solid rgba(11, 13, 22, .07); }
.akn-mega-label {
    font-family: 'Poppins', sans-serif; font-size: .66rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: rgba(11, 13, 22, .45); margin-bottom: 10px;
}
.akn-path {
    display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center;
    padding: 12px; margin: 0 -12px; transition: background .2s ease;
}
.akn-path:hover { background: color-mix(in srgb, var(--pc) 7%, #fff); }
.akn-path-icon {
    width: 42px; height: 42px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--pc) 12%, #fff); color: var(--pc);
}
.akn-path-icon i { color: inherit; font-style: normal; font-family: 'Font Awesome 6 Free'; }
.akn-path b { display: block; font-family: 'Poppins', sans-serif; font-size: .92rem; font-weight: 600; color: var(--akn-ink); }
.akn-path small { display: block; font-size: .78rem; color: rgba(11, 13, 22, .58); line-height: 1.4; }
.akn-path:hover b { color: var(--pc); }
.akn-sub {
    display: flex; align-items: center; gap: 12px; padding: 9px 0;
    font-family: 'Poppins', sans-serif; font-size: .86rem; font-weight: 500; color: var(--akn-ink);
}
.akn-sub i { width: 18px; text-align: center; color: var(--akn-violet); font-style: normal; font-family: 'Font Awesome 6 Free'; font-size: .85rem; }
.akn-sub:hover { color: var(--akn-violet); transform: translateX(3px); }
.akn-mega-col--cta { background: #f6f4fb; gap: 8px; }
.akn-mega-card {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
    padding: 20px; color: #fff; margin-bottom: 6px;
    background: radial-gradient(120% 140% at 0% 0%, #3b0a6b 0%, #120c2a 55%, #0b1b3d 100%);
}
.akn-mega-card::after {
    content: ''; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(253,197,0,.55), transparent 65%);
}
.akn-mega-card-kicker { font-family: 'Poppins', sans-serif; font-size: .64rem; letter-spacing: 2px; text-transform: uppercase; color: var(--akn-gold); font-weight: 700; }
.akn-mega-card b { font-family: 'Poppins', sans-serif; font-size: 1.05rem; line-height: 1.3; font-weight: 600; color: #fff; }
.akn-mega-card-go { font-family: 'Poppins', sans-serif; font-size: .78rem; font-weight: 600; color: #fff; display: inline-flex; gap: 8px; align-items: center; }
.akn-mega-card-go i { font-style: normal; color: var(--akn-gold); font-family: 'Font Awesome 6 Free'; }
.akn-mega-mini {
    display: flex; align-items: center; gap: 10px; padding: 8px 0;
    font-family: 'Poppins', sans-serif; font-size: .82rem; font-weight: 600; color: var(--akn-ink);
}
.akn-mega-mini i { color: var(--akn-violet); font-style: normal; font-family: 'Font Awesome 6 Free'; }
.akn-mega-mini:hover { color: var(--akn-violet); }

.akn-drop {
    right: 0; width: 300px; padding: 10px;
    background: #fff; border: 1px solid rgba(11, 13, 22, .08);
    box-shadow: 0 30px 60px -28px rgba(11, 13, 22, .45);
}
.akn-drop a { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 10px; }
.akn-drop a:hover { background: #f6f4fb; }
.akn-drop i { width: 34px; height: 34px; display: grid; place-items: center; background: #f1ecfa; color: var(--akn-violet); font-style: normal; font-family: 'Font Awesome 6 Free'; }
.akn-drop b { display: block; font-family: 'Poppins', sans-serif; font-size: .86rem; font-weight: 600; color: var(--akn-ink); }
.akn-drop small { display: block; font-size: .74rem; color: rgba(11, 13, 22, .55); line-height: 1.35; }

/* --- Hamburger --- */
.akn-burger {
    display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
    position: relative; z-index: 1102;
}
.akn-burger span {
    position: absolute; left: 11px; width: 22px; height: 2px; background: var(--akn-ink);
    transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.akn-burger span:nth-child(1) { top: 15px; }
.akn-burger span:nth-child(2) { top: 21px; }
.akn-burger span:nth-child(3) { top: 27px; width: 14px; }
.akn.is-drawer .akn-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.akn.is-drawer .akn-burger span:nth-child(2) { opacity: 0; }
.akn.is-drawer .akn-burger span:nth-child(3) { top: 21px; width: 22px; transform: rotate(-45deg); }

/* Średnie ekrany: ciaśniej */
@media (max-width: 1366px) and (min-width: 1181px) {
    .akn-link { padding: 0 9px; font-size: .8rem; }
    .akn-menu { gap: 12px; }
    .akn-panel { padding: 0 10px; }
}

/* --- Szuflada (tablet i telefon) --- */
@media (max-width: 1180px) {
    /* backdrop-filter robi z paska „okno” dla position:fixed — szuflada miałaby wtedy wysokość paska */
    .navbar.akn { padding-top: 0 !important; padding-bottom: 0 !important; backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
    .akn-burger { display: block; }
    .navbar.akn .akn-menu {
        position: fixed; inset: var(--akn-h) 0 0 0; z-index: 1101;
        display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
        padding: 18px 20px 32px; overflow-y: auto; overscroll-behavior: contain;
        background: #fff;
        transform: translateX(100%); visibility: hidden;
        transition: transform .38s cubic-bezier(.2,.7,.2,1), visibility 0s linear .38s;
        height: auto; width: auto; right: 0;
    }
    .navbar.akn .akn-menu.active {
        transform: none; visibility: visible;
        transition: transform .38s cubic-bezier(.2,.7,.2,1);
    }
    .akn-list { flex-direction: column; align-items: stretch; gap: 0; }
    .akn-item { border-bottom: 1px solid rgba(11, 13, 22, .07); }
    .akn-link { width: 100%; height: 56px; justify-content: space-between; font-size: 1.02rem; padding: 0 4px; }
    .akn-link::after { display: none; }
    .akn-mega, .akn-drop {
        position: static; width: auto; transform: none !important; box-shadow: none; border: 0;
        opacity: 1; visibility: visible; display: none; padding: 0 0 14px;
    }
    .akn-item.is-open > .akn-mega, .akn-item.is-open > .akn-drop { display: block; }
    .akn-mega::before, .akn-drop::before { display: none; }
    .akn-mega-inner { grid-template-columns: 1fr; border: 0; box-shadow: none; }
    .akn-mega-col { padding: 6px 4px 10px; }
    .akn-mega-col + .akn-mega-col { border-left: 0; }
    .akn-mega-col--cta { background: none; }
    .akn-path { margin: 0; padding: 10px 0; }
    .akn-drop { padding: 0 0 12px; }
    .akn-drop a { padding: 8px 0; }
    .akn-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 22px; }
    .akn-panel, .akn-cta { height: 52px; justify-content: center; font-size: .9rem; }
    html.akn-lock, html.akn-lock body { overflow: hidden; }
}

@media (max-width: 600px) {
    :root { --akn-h: 64px; }
    .navbar.akn { padding-left: 16px !important; padding-right: 8px !important; }
    .akn .brand-logo img, .akn .brand-logo { max-height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    .akn-mega, .akn-drop, .navbar.akn .akn-menu, .akn-cta::before, .navbar.akn::after { transition: none !important; }
}
