.site-map-trigger {
    position: fixed;
    left: 22px;
    bottom: 88px;
    width: 54px;
    height: 54px;
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    background: #314a85;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    z-index: 9998;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-map-trigger:hover,
.site-map-trigger:focus-visible {
    background: #25636d;
    transform: translateY(-2px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
    outline: none;
}

.site-map-trigger svg {
    width: 28px;
    height: 28px;
}

.site-map-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 10, 24, 0.78);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 10002;
}

.site-map-overlay.active {
    display: flex;
}

.site-map-panel {
    width: min(94vw, 780px);
    max-height: min(86vh, 760px);
    background: #120a2e;
    border: 1px solid #5b7cfa;
    border-radius: 10px;
    color: #f8f5ff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.site-map-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 30px 18px;
    border-bottom: 1px solid rgba(91, 124, 250, 0.68);
}

.site-map-kicker {
    color: #a5b4fc;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.site-map-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.45rem;
}

.site-map-close {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.site-map-body {
    padding: 22px 30px 26px;
    overflow-y: auto;
}

.site-map-group + .site-map-group {
    margin-top: 24px;
}

.site-map-group h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1rem;
}

.site-map-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.site-map-link {
    display: block;
    min-height: 78px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.site-map-link:hover,
.site-map-link:focus-visible {
    color: #ffffff;
    text-decoration: none;
    border-color: rgba(165, 180, 252, 0.86);
    background: rgba(91, 124, 250, 0.18);
    transform: translateY(-1px);
    outline: none;
}

.site-map-link-title {
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
}

.site-map-link-path {
    display: block;
    color: #c7d2fe;
    font-size: 0.83rem;
    line-height: 1.35;
    word-break: break-word;
}

@media (max-width: 640px) {
    .site-map-trigger {
        left: 18px;
        bottom: 84px;
        width: 50px;
        height: 50px;
    }

    .site-map-overlay {
        padding: 12px;
    }

    .site-map-header {
        padding: 18px 22px 16px;
    }

    .site-map-body {
        padding: 18px 22px 22px;
    }

    .site-map-links {
        grid-template-columns: 1fr;
    }
}
