/* ============================================================
   layout.css — каркас страницы: обёртка, шапка, контент, подвал
   ============================================================ */

/* --- Корневой контейнер страницы --- */

#__next > div {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.Layout_root__O5qNr {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Шапка (AppBar) --- */

.app-header {
    display: flex;
    flex-direction: row;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    position: static;
    min-width: 280px;
    z-index: 1201;
    color: #FAFAF5;

    /* Тема по умолчанию */
    background-color: #172944;
    border-bottom: 4px solid #ee453b;
}

/* Зелёная тема */
.app-header--green {
    background-color: #268960;
    border-bottom: 4px solid #1B6949;
}

@media (min-width: 0px) {
    .app-header {
        height: 65px;
    }
}

@media (min-width: 900px) {
    .app-header {
        height: 110px;
    }
}

/* --- Логотип в шапке --- */

/* Мобильная строка с логотипом */
.header-logo-row--mobile {
    margin: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 0px) {
    .header-logo-row--mobile {
        display: flex;
    }
}

@media (min-width: 900px) {
    .header-logo-row--mobile {
        display: none;
    }
}

/* Десктопная строка с логотипом */
.header-logo-row--desktop {
    margin: 0 auto;
    display: none;
    align-items: center;
    justify-content: center;
}

@media (min-width: 900px) {
    .header-logo-row--desktop {
        display: flex;
    }
}

/* Обёртка логотипа */
.header-logo-wrapper {
    display: flex;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

/* Само изображение логотипа */
.header-logo-image {
    display: block;
}

@media (min-width: 0px) {
    .header-logo-image {
        height: 45px;
        width: 45px;
    }
}

@media (min-width: 900px) {
    .header-logo-image {
        height: 90px;
        width: 90px;
    }
}

/* --- Основной контент --- */

.Layout_main__4SwWV {
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 0px) {
    .Layout_main__4SwWV {
        min-height: auto;
        padding-bottom: 0;
    }
}

@media (min-width: 900px) {
    .Layout_main__4SwWV {
        flex: 1;
        justify-content: flex-end;
    }
}

/* --- Подвал --- */

.Layout_footer__7GBOF {
    position: relative;
    bottom: 0;
    width: 100%;
    height: 50px;
    background-color: #172944;
}

.footer-inner {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    color: #bbc9c3;
}

.footer-spacer {
    width: 30%;
}

.footer-privacy {
    font-size: 14px;
    text-align: center;
    color: #FAFAF5;
    white-space: nowrap;
    padding-bottom: 5px;
}

.footer-version {
    width: 30%;
    font-size: 10px;
    text-align: right;
    padding-right: 5px;
}
