


/* ============================================================
   VARIABLES
   ============================================================ */

body {
    --smap-purple: #393186;
    --smap-purple-dark: #2e286d;
    --smap-purple-hover: #4a4194;

    --smap-soft: #f6f4fb;
    --smap-soft-hover: #f1eef8;

    --smap-text: #26242b;
    --smap-muted: #74717b;

    --smap-border: #e4e0ed;
    --smap-border-hover: #d5cee5;

    --smap-yellow: #ffd400;
}


/* ============================================================
   КРИТИЧЕСКИЙ RESET СТАРОЙ КАРТЫ
   ============================================================ */

html body ul.map-level-0,
html body ul.map-level-0 ul,
html body ul.map-level-0 li {
    position: static !important;

    float: none !important;
    clear: none !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    transform: none !important;

    columns: auto !important;
    column-count: auto !important;
    column-width: auto !important;

    box-sizing: border-box !important;

    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
}

html body ul.map-level-0::before,
html body ul.map-level-0::after,
html body ul.map-level-0 ul::before,
html body ul.map-level-0 ul::after,
html body ul.map-level-0 li::before,
html body ul.map-level-0 li::after {
    box-sizing: border-box !important;
}

html body ul.map-level-0 li::marker {
    content: "" !important;
}

html body ul.map-level-0 a {
    float: none !important;

    width: auto !important;
    max-width: 100% !important;

    box-sizing: border-box !important;

    text-shadow: none !important;

    word-break: normal !important;
    overflow-wrap: anywhere !important;
}


/* ============================================================
   PAGE TITLE
   ============================================================ */

html body #pagetitle {
    display: block !important;

    width: 100% !important;

    margin: 30px 0 10px !important;
    padding: 0 !important;

    color: var(--smap-purple-dark) !important;

    font-family: 'NotoSans', Arial, sans-serif !important;
    font-size: clamp(40px, 4vw, 52px) !important;
    line-height: 1.06 !important;
    font-weight: 750 !important;

    letter-spacing: -.04em !important;

    text-align: left !important;

    border: 0 !important;
}

html body #pagetitle::before {
    content: "НАВИГАЦИЯ";

    display: block !important;

    margin: 0 0 9px !important;

    color: var(--smap-purple) !important;

    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 650 !important;

    letter-spacing: .12em !important;
}

html body #pagetitle::after {
    content: "Все разделы сайта в одном месте";

    display: block !important;

    margin: 12px 0 0 !important;

    color: var(--smap-muted) !important;

    font-size: 16px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;

    letter-spacing: 0 !important;
}


/* линия после заголовка */

html body ul.map-level-0 {
    position: relative !important;

    display: block !important;

    width: 100% !important;

    margin: 31px 0 58px !important;
    padding: 25px 0 0 !important;

    /*
     * Две естественные колонки.
     * В отличие от grid здесь высокий раздел не создаёт
     * километровую пустоту под коротким соседом.
     */
    column-count: 2 !important;
    column-gap: 20px !important;
    column-fill: balance !important;

    border-top: 1px solid var(--smap-border) !important;
}


/* ============================================================
   ГЛАВНЫЕ РАЗДЕЛЫ
   ============================================================ */

html body ul.map-level-0 > li {
    display: inline-block !important;

    width: 100% !important;

    margin: 0 0 16px !important;
    padding: 19px 20px 17px !important;

    vertical-align: top !important;

    break-inside: avoid !important;
    page-break-inside: avoid !important;

    background: #fff !important;

    border: 1px solid var(--smap-border) !important;
    border-radius: 16px !important;

    box-shadow:
        0 5px 18px rgba(45, 38, 85, .035) !important;

    overflow: hidden !important;
}


/* никаких прыжков карточек */

html body ul.map-level-0 > li:hover {
    border-color: var(--smap-border-hover) !important;

    box-shadow:
        0 7px 22px rgba(45, 38, 85, .055) !important;

    transform: none !important;
}


/* ============================================================
   ЗАГОЛОВОК ГЛАВНОГО РАЗДЕЛА
   ============================================================ */

html body ul.map-level-0 > li > a {
    position: relative !important;

    display: flex !important;
    align-items: flex-start !important;

    gap: 11px !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    color: var(--smap-purple-dark) !important;

    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.38 !important;
    font-weight: 650 !important;

    text-decoration: none !important;

    background: transparent !important;
    border: 0 !important;
}


/* фирменный квадрат-маркер */

html body ul.map-level-0 > li > a::before {
    content: "" !important;

    display: block !important;

    flex: 0 0 8px !important;

    width: 8px !important;
    height: 8px !important;

    margin: 7px 0 0 !important;

    background: var(--smap-purple) !important;

    border: 0 !important;
    border-radius: 3px !important;

    box-shadow:
        0 0 0 4px rgba(57,49,134,.07) !important;

    transform: none !important;
}

html body ul.map-level-0 > li > a:hover,
html body ul.map-level-0 > li > a:focus-visible {
    color: var(--smap-purple-hover) !important;

    text-decoration: none !important;
}


/* ============================================================
   ПОДРАЗДЕЛЫ
   ============================================================ */

html body ul.map-level-0 > li > ul {
    display: block !important;

    width: 100% !important;

    margin: 14px 0 0 !important;
    padding: 11px 0 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-top: 1px solid #eeebf3 !important;
}

html body ul.map-level-0 > li > ul > li {
    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
}


/* ============================================================
   ССЫЛКИ ПОДРАЗДЕЛОВ
   ============================================================ */

html body ul.map-level-0 > li > ul > li > a {
    position: relative !important;

    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 6px 8px 6px 18px !important;

    color: #514e57 !important;

    font-size: 14px !important;
    line-height: 1.38 !important;
    font-weight: 400 !important;

    text-decoration: none !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 8px !important;
}


/* микро-стрелочка */

html body ul.map-level-0 > li > ul > li > a::before {
    content: "" !important;

    position: absolute !important;

    left: 5px !important;
    top: 50% !important;

    display: block !important;

    width: 5px !important;
    height: 5px !important;

    margin: -3px 0 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-top: 1.5px solid #9993ad !important;
    border-right: 1.5px solid #9993ad !important;

    border-radius: 0 !important;

    transform: rotate(45deg) !important;

    box-shadow: none !important;
}

html body ul.map-level-0 > li > ul > li > a:hover,
html body ul.map-level-0 > li > ul > li > a:focus-visible {
    color: var(--smap-purple) !important;

    background: var(--smap-soft) !important;

    text-decoration: none !important;
    outline: none !important;
}

html body ul.map-level-0 > li > ul > li > a:hover::before {
    border-color: var(--smap-purple) !important;
}


/* ============================================================
   ТРЕТИЙ УРОВЕНЬ, ЕСЛИ ВСТРЕТИТСЯ
   ============================================================ */

html body ul.map-level-0 ul ul {
    display: block !important;

    width: auto !important;

    margin: 3px 0 5px 18px !important;
    padding: 0 0 0 10px !important;

    background: transparent !important;

    border: 0 !important;
    border-left: 1px solid #e8e4ef !important;
}

html body ul.map-level-0 ul ul > li {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
}

html body ul.map-level-0 ul ul a {
    display: block !important;

    margin: 0 !important;
    padding: 5px 7px !important;

    color: #67636d !important;

    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;

    text-decoration: none !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 7px !important;
}

html body ul.map-level-0 ul ul a:hover {
    color: var(--smap-purple) !important;

    background: var(--smap-soft) !important;
}


/* ============================================================
   ОДИНОЧНЫЕ ССЫЛКИ
   Доставка / Корзина / Реквизиты и т.п.
   ============================================================ */

@supports selector(:has(*)) {

    html body ul.map-level-0 > li:not(:has(> ul)) {
        padding: 0 !important;

        background: transparent !important;

        border: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        overflow: visible !important;
    }

    html body ul.map-level-0 > li:not(:has(> ul)) > a {
        display: flex !important;
        align-items: center !important;

        min-height: 48px !important;

        padding: 12px 15px !important;

        background: var(--smap-soft) !important;

        border: 1px solid var(--smap-border) !important;
        border-radius: 13px !important;

        color: var(--smap-purple-dark) !important;

        font-size: 14px !important;
        line-height: 1.3 !important;
        font-weight: 550 !important;
    }

    html body ul.map-level-0 > li:not(:has(> ul)) > a::before {
        flex: 0 0 7px !important;

        width: 7px !important;
        height: 7px !important;

        margin: 0 !important;

        background: var(--smap-yellow) !important;

        border-radius: 50% !important;

        box-shadow:
            0 0 0 3px rgba(255,212,0,.14) !important;
    }

    html body ul.map-level-0 > li:not(:has(> ul)) > a:hover {
        background: var(--smap-soft-hover) !important;
        border-color: var(--smap-border-hover) !important;
    }
}


/* ============================================================
   VISITED
   ============================================================ */

html body ul.map-level-0 a:visited {
    color: inherit !important;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    html body ul.map-level-0 {
        column-gap: 14px !important;
    }

    html body ul.map-level-0 > li {
        margin-bottom: 14px !important;

        padding: 17px 17px 15px !important;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    html body #pagetitle {
        margin-top: 23px !important;

        font-size: 36px !important;
    }

    html body #pagetitle::after {
        font-size: 14px !important;
    }


    html body ul.map-level-0 {
        column-count: 1 !important;

        margin-top: 24px !important;
        margin-bottom: 40px !important;

        padding-top: 19px !important;
    }


    html body ul.map-level-0 > li {
        display: block !important;

        margin-bottom: 11px !important;
        padding: 16px 15px 14px !important;

        border-radius: 14px !important;

        box-shadow:
            0 3px 12px rgba(45,38,85,.035) !important;
    }


    html body ul.map-level-0 > li > a {
        font-size: 16px !important;
    }


    html body ul.map-level-0 > li > ul {
        margin-top: 11px !important;
        padding-top: 9px !important;
    }


    html body ul.map-level-0 > li > ul > li > a {
        padding-top: 7px !important;
        padding-bottom: 7px !important;

        font-size: 14px !important;
    }

}