/* STANKI-M: универсальное описание страницы */

.stm-description {
    box-sizing: border-box;
    width: 100%;
    max-width: 2000px;
    margin: 0 auto 25px;
    padding: 0;
    color: #444;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.stm-description *,
.stm-description *::before,
.stm-description *::after {
    box-sizing: border-box;
}

.stm-description p {
    margin: 0 0 16px;
}

.stm-description p:last-child {
    margin-bottom: 0;
}

.stm-description h2,
.stm-description h3,
.stm-description h4 {
    color: #001b72;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.stm-description h2 {
    margin: 28px 0 16px;
    font-size: 26px;
}

.stm-description h3 {
    margin: 24px 0 14px;
    font-size: 22px;
}

.stm-description h4 {
    margin: 20px 0 12px;
    font-size: 18px;
}

.stm-description ul,
.stm-description ol {
    margin: 0 0 18px;
    padding-left: 25px;
}

.stm-description li {
    margin-bottom: 7px;
}

.stm-description a {
    color: #001b72;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.stm-description a:hover,
.stm-description a:focus-visible {
    color: #ed1717;
}

.stm-description img,
.stm-description video,
.stm-description iframe {
    max-width: 100%;
}

.stm-description img {
    height: auto;
}

.stm-description strong,
.stm-description b {
    font-weight: 700;
}

@media (max-width: 700px) {
    .stm-description {
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.55;
    }

    .stm-description h2 {
        margin-top: 24px;
        font-size: 21px;
    }

    .stm-description h3 {
        margin-top: 20px;
        font-size: 18px;
    }

    .stm-description h4 {
        margin-top: 18px;
        font-size: 16px;
    }

    .stm-description ul,
    .stm-description ol {
        padding-left: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stm-description a {
        transition: none;
    }
}
