.site-map-page {
    padding: clamp(18px, 2vw, 28px) 4.5% clamp(30px, 4vw, 48px);
    color: #17251e;
}

.site-map-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 17px 22px;
    color: #ffffff;
    background:
        radial-gradient(circle at 84% -55%, rgba(255, 226, 117, 0.2), transparent 43%),
        var(--brand-dark);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
}

.site-map-hero__mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #fff2ad;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    box-shadow: 0 0 19px rgba(255, 220, 94, 0.2);
}

.site-map-hero__mark svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-map-hero h1,
.site-map-hero p,
.site-map-summary h2,
.site-map-summary p,
.site-map-group__header h2,
.site-map-group__header p {
    margin: 0;
}

.site-map-hero h1 {
    color: inherit;
    font-size: clamp(21px, 2.1vw, 29px);
    line-height: 1.15;
}

.site-map-hero p {
    margin-top: 4px;
    color: inherit;
    font-size: 14px;
    opacity: 0.88;
}

.site-map-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 17px;
    align-items: center;
    margin-top: 14px;
    padding: clamp(17px, 2.2vw, 24px);
    background: #eef3ef;
    border: 1px solid #c6cec9;
    border-left: 5px solid var(--accent);
}

.site-map-summary__number {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    color: #ffffff;
    background: var(--brand-dark);
    border-bottom: 4px solid var(--accent);
    font-size: 23px;
    font-weight: 800;
}

.site-map-summary h2 {
    color: var(--brand-dark);
    font-size: clamp(18px, 1.7vw, 23px);
}

.site-map-summary p {
    margin-top: 5px;
    color: #4c5b53;
    font-size: 13px;
    line-height: 1.55;
}

.site-map-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.site-map-group {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #bcc4bf;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.09);
}

.site-map-group__header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    min-height: 85px;
    padding: 14px 16px;
    background: #737c77;
    border-bottom: 3px solid var(--accent);
}

.site-map-group__header > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--brand-dark);
    background: #eef3ef;
    border: 1px solid #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.site-map-group__header h2,
.site-map-group__header p {
    color: #ffffff;
}

.site-map-group__header h2 {
    font-size: clamp(17px, 1.55vw, 21px);
}

.site-map-group__header p {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.45;
    opacity: 0.84;
}

.site-map-links {
    margin: 0;
    padding: 6px;
    list-style: none;
}

.site-map-links li + li {
    margin-top: 4px;
}

.site-map-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding: 10px 12px 10px 15px;
    color: #17251e;
    background: #f3f5f3;
    border: 1px solid #d0d6d2;
    border-left: 4px solid #7a847f;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.site-map-links a:hover,
.site-map-links a:focus-visible {
    color: var(--brand-dark);
    background: #e3eee8;
    border-color: #9eb7aa;
    border-left-color: var(--accent);
    outline: none;
    transform: translateX(2px);
}

.site-map-link__body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.site-map-link__body strong {
    color: var(--brand-dark);
    font-size: 14px;
    line-height: 1.25;
}

.site-map-link__body > span {
    color: #59665f;
    font-size: 11px;
    line-height: 1.4;
}

.site-map-link__action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    color: #17654d;
    font-size: 22px;
    font-weight: 800;
}

.site-map-link__badge {
    padding: 3px 6px;
    color: #ffffff;
    background: #65716a;
    border-bottom: 2px solid var(--accent);
    font-size: 9px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 940px) {
    .site-map-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .site-map-page {
        padding: 12px;
    }

    .site-map-hero {
        justify-content: flex-start;
        padding: 14px;
    }

    .site-map-hero__mark {
        width: 43px;
        height: 43px;
    }

    .site-map-hero__mark svg {
        width: 31px;
        height: 31px;
    }

    .site-map-summary {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
    }

    .site-map-summary__number {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .site-map-group__header {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .site-map-group__header > span {
        width: 42px;
        height: 42px;
    }

    .site-map-links a {
        align-items: flex-start;
        min-height: 0;
        padding: 10px;
    }

    .site-map-link__badge {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-map-links a {
        transition: none;
    }
}
