.lsh-sitemap {
    --lsh-red: #cf2925;
    --lsh-red-dark: #a9211e;
    --lsh-red-soft: #fff1f0;
    --lsh-black: #1d1e21;
    --lsh-text: #46494f;
    --lsh-muted: #777b83;
    --lsh-line: #e2e3e5;
    --lsh-bg: #f7f7f5;
    --lsh-soft: #f2f2f0;
    --lsh-white: #ffffff;

    width: 100%;
    max-width: 100%;
    overflow: hidden;
    color: var(--lsh-text);
    background: var(--lsh-bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.lsh-sitemap,
.lsh-sitemap *,
.lsh-sitemap *::before,
.lsh-sitemap *::after {
    box-sizing: border-box;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.lsh-sitemap h1,
.lsh-sitemap h2,
.lsh-sitemap p {
    margin: 0;
}

.lsh-sitemap a {
    color: inherit;
    text-decoration: none;
}

.lsh-sitemap [hidden] {
    display: none !important;
}

.lsh-sitemap__container {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: clamp(34px, 6vw, 72px) clamp(15px, 4vw, 34px);
}

.lsh-sitemap__header {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--lsh-line);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--lsh-white) 0%, #fbfbfa 68%, var(--lsh-red-soft) 100%);
}

.lsh-sitemap__header::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--lsh-red);
    content: "";
}

.lsh-sitemap__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--lsh-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.3;
}

.lsh-sitemap__brand::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--lsh-red);
    content: "";
}

.lsh-sitemap__header h1 {
    margin-bottom: 12px;
    color: var(--lsh-black);
    font-size: clamp(31px, 5vw, 50px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -.04em;
    word-break: normal;
    overflow-wrap: normal;
}

.lsh-sitemap__header > p {
    max-width: 760px;
    color: var(--lsh-muted);
    font-size: clamp(13px, 1.8vw, 16px);
    line-height: 1.7;
    word-break: normal;
    overflow-wrap: break-word;
}

.lsh-sitemap__search {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 23px;
}

.lsh-sitemap__search svg {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--lsh-muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.lsh-sitemap__search input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 45px;
    border: 1px solid var(--lsh-line);
    border-radius: 9px;
    outline: none;
    color: var(--lsh-black);
    background: rgba(255,255,255,.94);
    font-size: 13px;
}

.lsh-sitemap__search input:focus {
    border-color: rgba(207,41,37,.65);
    box-shadow: 0 0 0 4px rgba(207,41,37,.07);
}

.lsh-sitemap__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 24px;
}

.lsh-sitemap__stat {
    min-width: 0;
    padding: 18px 19px;
    border: 1px solid var(--lsh-line);
    border-radius: 12px;
    background: var(--lsh-white);
}

.lsh-sitemap__stat strong {
    display: block;
    margin-bottom: 5px;
    color: var(--lsh-red);
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
}

.lsh-sitemap__stat span {
    display: block;
    color: var(--lsh-black);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.lsh-sitemap__sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.lsh-sitemap__section {
    min-width: 0;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--lsh-line);
    border-radius: 15px;
    background: var(--lsh-white);
}

.lsh-sitemap__section--wide {
    grid-column: 1 / -1;
}

.lsh-sitemap__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--lsh-line);
}

.lsh-sitemap__section-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.lsh-sitemap__section-title > div {
    min-width: 0;
}

.lsh-sitemap__section-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 10px;
    color: var(--lsh-red);
    background: var(--lsh-red-soft);
}

.lsh-sitemap__section-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lsh-sitemap__section h2 {
    margin-bottom: 3px;
    color: var(--lsh-black);
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.025em;
    word-break: normal;
    overflow-wrap: break-word;
}

.lsh-sitemap__section-title p {
    color: var(--lsh-muted);
    font-size: 10px;
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: break-word;
}

.lsh-sitemap__count {
    min-width: 34px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 9px;
    border-radius: 20px;
    color: var(--lsh-red);
    background: var(--lsh-red-soft);
    font-size: 10px;
    font-weight: 800;
}

.lsh-sitemap__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lsh-sitemap__item {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.lsh-sitemap__link {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--lsh-text);
    background: var(--lsh-soft);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.45;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.lsh-sitemap__dot {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: var(--lsh-red);
}

.lsh-sitemap__link-text {
    min-width: 0;
    flex: 1 1 auto;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
}

.lsh-sitemap__link-meta {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--lsh-muted);
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.lsh-sitemap__link:hover {
    color: var(--lsh-red);
    border-color: rgba(207,41,37,.22);
    background: var(--lsh-red-soft);
}

.lsh-sitemap__empty,
.lsh-sitemap__no-results {
    padding: 18px;
    border: 1px dashed var(--lsh-line);
    border-radius: 9px;
    color: var(--lsh-muted);
    background: var(--lsh-soft);
    font-size: 11px;
    text-align: center;
}

.lsh-sitemap__no-results {
    margin-top: 17px;
    border-style: solid;
    background: var(--lsh-white);
}

@media (max-width: 850px) {
    .lsh-sitemap__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lsh-sitemap__sections {
        grid-template-columns: 1fr;
    }

    .lsh-sitemap__section--wide {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .lsh-sitemap__container {
        padding: 30px 14px 55px;
    }

    .lsh-sitemap__header {
        padding: 27px 21px;
        border-radius: 15px;
    }

    .lsh-sitemap__header h1 {
        font-size: 33px;
    }

    .lsh-sitemap__section {
        padding: 19px 15px;
    }

    .lsh-sitemap__section-header {
        align-items: flex-start;
    }

    .lsh-sitemap__section-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .lsh-sitemap__list {
        grid-template-columns: 1fr;
    }

    .lsh-sitemap__link-meta {
        display: none;
    }
}

@media (max-width: 380px) {
    .lsh-sitemap__stats {
        grid-template-columns: 1fr;
    }

    .lsh-sitemap__section-title p {
        display: none;
    }
}
