:root {
    --primary: #0754b8;
    --primary-hover: #06479d;
    --primary-dark: #063372;
    --deep-navy: #022452;
    --white: #ffffff;
    --section-bg: #f6f8fb;
    --pale-blue: #f7faff;
    --border: #dde6f0;
    --border-strong: #cad8e8;
    --text-main: #102f69;
    --text-body: #34445e;
    --text-muted: #738198;
    --card-radius: 8px;
    --shadow-soft: 0 10px 28px rgba(13, 51, 101, 0.07);
    --shadow-card: 0 18px 42px rgba(13, 51, 101, 0.11);
    --focus-ring: 0 0 0 3px rgba(7, 84, 184, 0.2);
}

.sitemap-main *,
.sitemap-main *::before,
.sitemap-main *::after {
    box-sizing: border-box;
}

body.sitemap-page {
    margin: 0;
    overflow-x: hidden;
    background: var(--white);
    font-family: Inter, Arial, "Helvetica Neue", sans-serif;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: normal;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

svg,
img {
    display: block;
}

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

.sitemap-main button,
.sitemap-main input {
    font: inherit;
}

.sitemap-main button {
    cursor: pointer;
}

.sitemap-main svg,
.sitemap-main img {
    display: block;
}

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

.sitemap-main {
    color: var(--text-body);
    background: var(--section-bg);
}

.sitemap-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 84px;
    color: var(--white);
    background:
        linear-gradient(110deg, rgba(2, 36, 82, 0.96), rgba(7, 84, 184, 0.88)),
        url("/assets/imgs/culture/corporate-culture-hero-mos-chemical-team-logistics.png") center / cover no-repeat;
}

.sitemap-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 8px;
    background: linear-gradient(90deg, #ffffff, #72b8ef, var(--primary));
    opacity: 0.9;
}

.sitemap-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.sitemap-eyebrow {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: 0;
}

.sitemap-hero h1 {
    margin: 0 0 18px;
    color: var(--white);
    font-size: clamp(38px, 4vw, 62px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
}

.sitemap-hero p:not(.sitemap-eyebrow) {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.62;
}

.sitemap-tools {
    position: relative;
    z-index: 2;
    margin-top: -34px;
}

.sitemap-tools__bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
}

.sitemap-search {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: var(--text-main);
    background: #f9fbfe;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    outline: none;
    transition: border-color var(--transition, 0.22s ease), box-shadow var(--transition, 0.22s ease), background var(--transition, 0.22s ease);
}

.sitemap-search:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.sitemap-toggle,
.sitemap-top {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: var(--primary-dark);
    background: var(--white);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
    transition: background var(--transition, 0.22s ease), border-color var(--transition, 0.22s ease), color var(--transition, 0.22s ease), transform var(--transition, 0.22s ease);
}

.sitemap-toggle {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

.sitemap-toggle:hover,
.sitemap-toggle:focus-visible,
.sitemap-top:hover,
.sitemap-top:focus-visible {
    color: var(--white);
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.sitemap-toggle:focus-visible,
.sitemap-top:focus-visible,
.sitemap-section__header:focus-visible,
.sitemap-links a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.sitemap-content {
    padding: 42px 0 88px;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.sitemap-section {
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-soft);
}

.sitemap-section__header {
    width: 100%;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    color: var(--text-main);
    background: var(--white);
    border: 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.sitemap-section__header h2 {
    color: inherit;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 850;
    letter-spacing: 0;
}

.sitemap-count {
    min-width: 34px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: var(--primary);
    background: var(--pale-blue);
    border: 1px solid #d6e8fb;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
}

.sitemap-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 22px;
    list-style: none;
}

.sitemap-links li {
    min-width: 0;
}

.sitemap-links a {
    display: inline-flex;
    max-width: 100%;
    align-items: flex-start;
    gap: 9px;
    color: var(--text-body);
    font-weight: 760;
    line-height: 1.45;
    transition: color var(--transition, 0.22s ease), transform var(--transition, 0.22s ease);
}

.sitemap-links a::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-top: 0.62em;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(7, 84, 184, 0.09);
}

.sitemap-links a:hover,
.sitemap-links a:focus-visible {
    color: var(--primary);
    transform: translateX(2px);
}

.sitemap-empty,
.sitemap-no-results {
    color: var(--text-muted);
    font-weight: 760;
    line-height: 1.55;
}

.sitemap-no-results {
    display: none;
    margin-top: 24px;
    padding: 22px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-soft);
}

.sitemap-no-results.is-visible {
    display: block;
}

.sitemap-section.is-collapsed .sitemap-links {
    display: none;
}

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

@media (max-width: 768px) {
    .sitemap-hero {
        padding: 58px 0 72px;
    }

    .sitemap-tools__bar {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    .sitemap-section__header,
    .sitemap-links {
        padding-inline: 18px;
    }
}

@media (max-width: 560px) {
    .sitemap-hero {
        padding: 46px 0 64px;
    }

    .sitemap-toggle,
    .sitemap-top {
        width: 100%;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sitemap-page *,
    .sitemap-page *::before,
    .sitemap-page *::after {
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
