.stm-container {
    width: min(1425px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.stm-site-header,
.stm-site-footer {
    padding: 20px 0;
}

.stm-site-header {
    background: #fff;
}

.stm-site-header .stm-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.stm-site-logo {
    color: var(--stm-primary);
    font-weight: 700;
    text-decoration: none;
}

.stm-primary-navigation ul,
.stm-site-footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stm-primary-navigation a {
    color: var(--stm-primary);
    text-decoration: none;
}

.stm-content {
    min-height: 300px;
    padding-top: 35px;
    padding-bottom: 50px;
}

.stm-site-footer {
    background: var(--stm-background);
}

@media (max-width: 768px) {
    .stm-site-header .stm-container {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Белый фон страниц независимой темы STANKI-M */
body {
    background-color: #ffffff;
}

/* Белый фон основной области между шапкой и футером */
.stm-main {
    background-color: #ffffff;
}
