.header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    padding: 0 24%;
    box-sizing: border-box;
}

/* Контейнер с пользователем и ссылками */
.header__user {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
}

/* Баланс */
.user-balance {
    background: url('/public/images/key.gif') right 20px no-repeat;
    padding-right: 36px;
    font-size: 14px;
}

/* Личный кабинет */
.user-cabinet a {
    color: #E25311;
    text-decoration: underline;
}

/* Выход */
.header__exit {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header__exit img {
    vertical-align: middle;
}

/* Гость: вход и регистрация */
.login-link,
.register-link {
    display: flex;
    align-items: center;
}
.register-link img {
    vertical-align: middle;
}

/* Цвет литров */
.litra {
    color: rgb(226, 83, 17);
}

/* Адаптив */
@media (max-width: 768px) {
    .header__top {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 10px 16px;
        gap: 10px;
    }

    .header__user {
        align-items: flex-start;
    }
}







.header__search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-wrap: wrap;
    height: 52px;
    margin-top: 6px;
}

.logo-wrapper {
    flex: 0 0 23%;
    align-self: baseline;
    margin-top: 5px;
}

.logo-wrapper a {
    display: block;
}

.logo-new {
    position: relative;
    top: 0;
    left: 0;
}

.search-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.search-center {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.search-title {
    font-size: 22px;
    width: 35%;
}

.search-advanced a {
    background: url('/public/images/search.gif') left no-repeat;
    padding-left: 20px;
    font-size: 14px;
    color: #E25311;
    text-decoration: underline;
}

.search-form {
    flex: 0 0 65px;
}

.search-form form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    flex: 1;
    /*padding: 8px;*/
    font-size: 14px;
}

/* Кнопка оставить оригинальной */
.submit {
    width: 65px;
    height: 1.55em;
}

@media (max-width: 768px) {
    .header__search {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        flex-wrap: nowrap;
        height: fit-content;
        margin-top: 0;
    }

    .search-meta,
    .search-form {
        width: 100%;
        flex: 1;
    }

    .search-form form {
        align-items: stretch;
    }
    .logo-wrapper {
        flex: 1;
        width: 100%;
        margin-bottom: 10px;
    }
    .logo {
        position: relative;
        top: 0;
        left: 0;
        justify-self: center;
    }
}



/* Основной layout */
.main-layout {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 10px;
    gap: 10px;
}

.sidebar {
    flex: 0 0 23%;
}

.content {
    flex: 1;
    min-width: 300px;
}

.rightbar {
    flex: 0 0 23%;
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar,
    .rightbar {
        flex: 1 0 100%;
    }
}


/* Фильтр авторов по алфавиту */
.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 0;
    justify-content: flex-start;
}

.alphabet-filter a {
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    border: 1px solid #E1E0DF;
    background-color: #fff;
    text-decoration: none;
    color: #08628C;
    font-size: 14px;
}

.alphabet-filter a:hover {
    background-color: #f0f0f0;
}


.shadow-separator {
    width: 100%;
    height: 40px;
    background: url("/public/images/shadow.jpg") left top no-repeat;
}


.footer {
    box-sizing: border-box;
    display: flex;
    background-color: #fff;
    width: 100%;
    min-height: 100px;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
}

.footer__content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5em;
    color: #464E62;
    margin-left: 10%;
}

.footer__content a {
    color: #08628C;
    text-decoration: underline;
}

.footer__content a:hover {
    color: #E25311;
}

@media (max-width: 768px) {
    .footer__content {
        margin-left: 0;
    }
        .footer {
        box-sizing: border-box;
        flex-direction: column;
        gap: 10px;
    }

    .footer__bg {
        width: 100%;
        height: 60px;
        background-position: center top;
    }
}

.under_menu_container {
    margin-top: 10px;
    height: 100%;
    width: 100%;
}

#under_menu {
    position: sticky;
    top: 10px;
    width: 100%;
}

.under_content_container {
    margin-top: 10px;
    height: 100%;
    width: 100%;
}

#under_content {
    position: sticky;
    top: 10px;
    width: 100%;
}

#top_ad {
    min-height: 250px;
    max-height: 250px;
    width: 100%;
}

#bottom_ad {
    max-height: 250px;
    width: 100%;
}

.plitka {
    max-height: 300px;
    width: 100%;
    margin: 5px 0;
    background: gray;
}

@media (max-width: 768px) {
    #bottom_ad {
        display: none;
    }
}

.f_btn {
    width: 30px;
    height: 30px;
    opacity: 0;
    position: fixed;
    z-index: 111;
}