/* Единая векторная библиотека: навигация, направления и смысловые акценты. */

body.st-redesign-v2 .st-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 1.25em;
    height: 1.25em;
    overflow: visible;
    color: inherit;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -.2em;
}

/* Большие плитки девяти направлений на главной. */
body.st-redesign-v2 .st-icon-tile {
    display: inline-flex;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 1px solid #e4e0ff;
    border-radius: 18px;
    background: #eeebff;
    color: var(--blue, #5146e5);
    transition: background-color .2s ease, border-color .2s ease;
}

body.st-redesign-v2 .st-icon-tile > .st-icon,
body.st-redesign-v2 .st-icon-tile > svg {
    width: 36px;
    height: 36px;
    vertical-align: middle;
}

body.st-redesign-v2 .landing-directions__card:hover .st-icon-tile,
body.st-redesign-v2 .landing-directions__card:focus-visible .st-icon-tile {
    border-color: #c8c1ff;
    background: #e5e0ff;
}

/* Иконка внутри обычного текста не нарушает высоту строки. */
body.st-redesign-v2 .st-inline-icon {
    display: inline-block;
    width: 1.12em;
    height: 1.12em;
    margin-inline: .08em .22em;
    color: var(--blue, #5146e5);
    vertical-align: -.18em;
}

body.st-redesign-v2 .st-inline-icon > .st-icon {
    display: block;
    width: 100%;
    height: 100%;
}

/* Смысловой акцент перед заголовками информационных блоков. */
body.st-redesign-v2 .st-heading-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 12px;
    border: 1px solid #e4e0ff;
    border-radius: 12px;
    background: #eeebff;
    color: var(--blue, #5146e5);
    vertical-align: -.35em;
}

body.st-redesign-v2 .st-heading-icon > .st-icon {
    width: 22px;
    height: 22px;
}

/* Компактная пиктограмма категории в расширенном меню. */
body.st-redesign-v2 .st-menu-category-icon {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e9e6ff;
    border-radius: 12px;
    background: #f3f1ff;
    color: var(--blue, #5146e5);
}

body.st-redesign-v2 .st-menu-category-icon > .st-icon {
    width: 22px;
    height: 22px;
}

@media (max-width: 640px) {
    body.st-redesign-v2 .st-icon-tile {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    body.st-redesign-v2 .st-icon-tile > .st-icon,
    body.st-redesign-v2 .st-icon-tile > svg {
        width: 32px;
        height: 32px;
    }

    body.st-redesign-v2 .st-heading-icon {
        width: 34px;
        height: 34px;
        margin-right: 10px;
        border-radius: 11px;
    }

    body.st-redesign-v2 .st-heading-icon > .st-icon {
        width: 20px;
        height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.st-redesign-v2 .st-icon-tile {
        transition: none;
    }
}

/* Номера этапов сохраняют значение исходных keycap-символов. */
body.st-redesign-v2 .st-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55em;
    height: 1.55em;
    margin-right: .3em;
    border-radius: .45em;
    background: #eeebff;
    color: var(--blue);
    font-size: .85em;
    font-weight: 700;
    vertical-align: .03em;
}
