/* ============ FEDERATION HUB — NAP STYLE ============ */
body.page-federation-hub {
    background: var(--black);
}

body.page-federation-hub main {
    padding: 0;
}

.fed-hub {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(3.5rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom));
    overflow: hidden;
    background: var(--black);
}

.fed-hub-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: grayscale(30%) contrast(1.1);
    z-index: 0;
}

.fed-hub-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.72) 40%, rgba(0, 0, 0, 0.85) 100%),
        radial-gradient(ellipse 80% 50% at 50% 30%, rgba(0, 0, 0, 0.3), transparent 70%);
}

.fed-hub-menu-btn {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.fed-hub-menu-btn span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.fed-hub-menu-btn[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.fed-hub-menu-btn[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.fed-hub-menu {
    position: fixed;
    top: calc(max(1rem, env(safe-area-inset-top)) + 3rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 19;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 14rem;
    padding: 0.75rem;
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.fed-hub-menu[hidden] {
    display: none;
}

.fed-hub-menu a {
    display: block;
    padding: 0.65rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background 0.15s ease, color 0.15s ease;
}

.fed-hub-menu a:hover,
.fed-hub-menu a:focus-visible {
    background: rgba(200, 16, 46, 0.2);
    color: var(--white);
    outline: none;
}

.fed-hub-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 22rem;
    text-align: center;
}

.fed-hub-abbr {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 12vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--white);
    margin: 0 0 0.75rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fed-hub-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.fed-hub-logo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.fed-hub-logo img,
.fed-hub-logo svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fed-hub-title {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0 0 0.5rem;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.fed-hub-title span {
    display: block;
}

.fed-hub-city {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 1.25rem;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.fed-hub-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.fed-hub-nav-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.55rem 0.65rem;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: left;
    color: var(--white);
    background: #e84a2f;
    border: 2px solid #1a1a1a;
    border-radius: 2px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) calc(0.18s + var(--item-delay, 0s)) both;
}

.fed-hub-nav-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    fill: currentColor;
    opacity: 0.95;
}

.fed-hub-nav-btn span {
    flex: 1;
}

.fed-hub-nav-btn:hover,
.fed-hub-nav-btn:focus-visible {
    background: #f05a3f;
    transform: translateY(-1px);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
    outline: none;
}

.fed-hub-nav-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.fed-hub-nav-btn--wide {
    grid-column: 1 / -1;
    max-width: 11.5rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    justify-content: center;
    text-align: center;
}

.fed-hub-nav-btn--wide span {
    flex: unset;
}

@media (min-width: 400px) {
    .fed-hub-inner {
        max-width: 24rem;
    }

    .fed-hub-nav-btn {
        font-size: 0.72rem;
        min-height: 3rem;
        padding: 0.6rem 0.75rem;
    }

    .fed-hub-nav-btn--wide {
        max-width: 13rem;
    }
}

@media (min-width: 769px) {
    .fed-hub-inner {
        max-width: 28rem;
    }

    .fed-hub-nav-btn {
        font-size: 0.78rem;
    }

    .fed-hub-nav-btn--wide {
        max-width: 15rem;
    }
}
.fed-hub-logo--awpf img {
    object-fit: contain;
    background: #fff;
}

.fed-hub-logos--single .fed-hub-logo {
    width: 6rem;
    height: 6rem;
}


/* === PRETTY BUTTONS v1 === */
.fed-hub-nav {
    gap: 0.65rem;
}

.fed-hub-nav-btn {
    position: relative;
    gap: 0.7rem;
    min-height: 3.4rem;
    padding: 0.7rem 1rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    color: #fff;
    background: linear-gradient(150deg, #f4623b 0%, #e5451f 52%, #cf3817 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    box-shadow:
        0 8px 20px rgba(196, 44, 18, 0.4),
        0 2px 5px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    overflow: hidden;
    transition:
        transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.fed-hub-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 46%);
    pointer-events: none;
}

.fed-hub-nav-btn svg {
    box-sizing: border-box;
    width: 1.95rem;
    height: 1.95rem;
    padding: 0.42rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    fill: #fff;
    flex-shrink: 0;
    opacity: 1;
    transition: background 0.22s ease, transform 0.22s ease;
}

.fed-hub-nav-btn span {
    position: relative;
    flex: 1;
}

.fed-hub-nav-btn:hover,
.fed-hub-nav-btn:focus-visible {
    background: linear-gradient(150deg, #f77049 0%, #ec4a22 52%, #d63b18 100%);
    transform: translateY(-3px);
    box-shadow:
        0 14px 30px rgba(196, 44, 18, 0.52),
        0 5px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    filter: brightness(1.03);
    outline: none;
}

.fed-hub-nav-btn:hover svg,
.fed-hub-nav-btn:focus-visible svg {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.fed-hub-nav-btn:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow:
        0 6px 16px rgba(196, 44, 18, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Широкие кнопки — на всю ширину ряда, аккуратно по центру */
.fed-hub-nav-btn--wide {
    grid-column: 1 / -1;
    max-width: none;
    width: 100%;
    margin: 0;
    justify-content: center;
    text-align: left;
}

.fed-hub-nav-btn--wide span {
    flex: 0 1 auto;
}

@media (min-width: 400px) {
    .fed-hub-nav-btn {
        font-size: 0.78rem;
        min-height: 3.6rem;
    }
}

@media (min-width: 769px) {
    .fed-hub-nav-btn {
        font-size: 0.82rem;
    }
    .fed-hub-nav-btn--wide {
        max-width: none;
    }
}

/* === MODERN BUTTONS v1 === */
.fed-hub-nav {
    gap: 0.6rem;
}

.fed-hub-nav-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.5rem;
    padding: 0.75rem 1rem 0.75rem 0.85rem;
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    text-align: left;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    overflow: hidden;
    transition:
        transform 0.25s cubic-bezier(0.34, 1.3, 0.64, 1),
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.fed-hub-nav-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #ff6b4a, var(--red));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.fed-hub-nav-btn svg {
    box-sizing: border-box;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0.48rem;
    border-radius: 11px;
    background: linear-gradient(145deg, #e84a2f 0%, #c8102e 100%);
    fill: #fff;
    flex-shrink: 0;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fed-hub-nav-btn span {
    position: relative;
    flex: 1;
}

.fed-hub-nav-btn:hover,
.fed-hub-nav-btn:focus-visible {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
    filter: none;
    outline: none;
}

.fed-hub-nav-btn:hover::before,
.fed-hub-nav-btn:focus-visible::before {
    opacity: 1;
}

.fed-hub-nav-btn:hover svg,
.fed-hub-nav-btn:focus-visible svg {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(200, 16, 46, 0.5);
}

.fed-hub-nav-btn:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.fed-hub-nav-btn--wide {
    grid-column: 1 / -1;
    max-width: none;
    width: 100%;
    margin: 0;
    justify-content: flex-start;
    text-align: left;
}

.fed-hub-nav-btn--wide span {
    flex: 1;
}

@media (min-width: 400px) {
    .fed-hub-nav-btn {
        font-size: 0.78rem;
        min-height: 3.65rem;
    }
}

@media (min-width: 769px) {
    .fed-hub-nav-btn {
        font-size: 0.82rem;
    }
    .fed-hub-nav-btn--wide {
        max-width: none;
    }
}
