/* Веб-режим темы main_mobile.
   На экране уже 1100px правила не действуют, мобильная колонка остаётся как в style.css. */

.mm-web-side,
.mm-web-brand,
.mm-web-nav {
    display: none;
}

@media (min-width: 1100px) {
    body.site-theme--main_mobile {
        max-width: none;
        padding-bottom: 0;
        font-size: 15px;
    }

    body.site-theme--main_mobile .user-menu-padding {
        position: sticky;
        top: 0;
        bottom: auto;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0;
        background: #1c1c1c;
        border-bottom: 3px solid #ffa500;
    }

    body.site-theme--main_mobile .user_menu {
        max-width: 1160px;
        min-height: 64px;
        height: auto;
        margin: 0 auto;
        border-radius: 0;
        box-shadow: none;
        justify-content: flex-start;
        gap: 8px;
        padding: 0 16px;
    }

    body.site-theme--main_mobile .mm-web-brand {
        display: inline-flex;
        align-items: center;
        margin-right: 12px;
        color: #fff;
        font-size: 22px;
        font-weight: 800;
        letter-spacing: -0.04em;
        text-decoration: none;
        white-space: nowrap;
    }

    body.site-theme--main_mobile .mm-web-brand span {
        color: #ffa500;
    }

    body.site-theme--main_mobile .mm-web-nav {
        display: flex;
        align-items: center;
        gap: 2px;
        flex-wrap: wrap;
        min-width: 0;
    }

    body.site-theme--main_mobile .mm-web-nav a {
        color: #f5f5f5;
        text-decoration: none;
        font-weight: 700;
        font-size: 14px;
        padding: 8px 10px;
        border-radius: 8px;
    }

    body.site-theme--main_mobile .mm-web-nav a:hover {
        background: #ffa500;
        color: #1c1c1c;
    }

    body.site-theme--main_mobile .user_menu-icons.home {
        margin-left: auto;
    }

    body.site-theme--main_mobile .add-container {
        position: relative;
    }

    body.site-theme--main_mobile .actions-container {
        position: absolute;
        top: 52px;
        right: 0;
        bottom: auto;
        left: auto;
        transform: none;
    }

    body.site-theme--main_mobile .page-wrapper {
        max-width: 1160px;
        margin: 18px auto 36px;
        padding: 0 16px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        column-gap: 22px;
        row-gap: 0;
        align-items: start;
    }

    body.site-theme--main_mobile .verx,
    body.site-theme--main_mobile .top-links,
    body.site-theme--main_mobile .footer,
    body.site-theme--main_mobile .navg {
        grid-column: 1 / -1;
    }

    body.site-theme--main_mobile .verx {
        display: none;
    }

    body.site-theme--main_mobile .top-links {
        margin-bottom: 16px;
        padding: 12px 16px;
        border-radius: 12px;
        line-height: 1.6;
    }

    body.site-theme--main_mobile .mm-main {
        min-width: 0;
        grid-column: 1;
    }

    body.site-theme--main_mobile .mm-web-side {
        display: block;
        grid-column: 2;
        position: sticky;
        top: 82px;
    }

    body.site-theme--main_mobile .mm-web-side .menu {
        border-radius: 12px 12px 0 0;
    }

    body.site-theme--main_mobile .mm-web-side .ram {
        border-radius: 0 0 12px 12px;
        overflow: hidden;
        margin-bottom: 0;
    }

    body.site-theme--main_mobile .mm-web-side .raz {
        display: block;
        text-decoration: none;
        font-weight: 700;
    }

    body.site-theme--main_mobile .page-container,
    body.site-theme--main_mobile .my-buttons {
        max-width: none;
    }

    body.site-theme--main_mobile .my-buttons {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.site-theme--main_mobile .stories-container {
        justify-content: flex-start;
        gap: 12px;
        overflow: visible;
        flex-wrap: wrap;
        padding: 14px;
    }

    body.site-theme--main_mobile .story {
        width: 180px;
    }

    body.site-theme--main_mobile .forum-thread {
        gap: 18px;
        padding: 18px 20px;
    }

    body.site-theme--main_mobile .thought {
        padding: 22px 24px;
    }

    body.site-theme--main_mobile .thought p,
    body.site-theme--main_mobile .theme-content,
    body.site-theme--main_mobile .block,
    body.site-theme--main_mobile .raz {
        font-size: 15px;
        line-height: 1.55;
    }

    body.site-theme--main_mobile .page-item {
        align-items: center;
        gap: 16px;
    }

    body.site-theme--main_mobile .page-item-description {
        max-width: none !important;
        flex: 1;
    }

    body.site-theme--main_mobile .mails-container .mail-item {
        padding: 14px 16px;
    }

    body.site-theme--main_mobile input[type="text"],
    body.site-theme--main_mobile input[type="password"],
    body.site-theme--main_mobile input[type="email"],
    body.site-theme--main_mobile input[type="number"],
    body.site-theme--main_mobile select,
    body.site-theme--main_mobile textarea,
    body.site-theme--main_mobile .textarea-block {
        max-width: 100%;
        font-size: 15px;
    }

    body.site-theme--main_mobile .footer {
        margin: 22px 0 0;
        border-radius: 12px;
    }

    body.site-theme--main_mobile .user-profile-main {
        align-items: flex-start;
    }

    body.site-theme--main_mobile .user-profile-main .photo img {
        max-width: 160px;
        max-height: 160px;
    }

    body.site-theme--main_mobile .mm-main > .menu,
    body.site-theme--main_mobile .mm-main > .menu-container,
    body.site-theme--main_mobile .mm-main > .main-menu {
        margin-top: 16px;
    }

    body.site-theme--main_mobile .mm-main > .menu:first-child,
    body.site-theme--main_mobile .mm-main > .main-menu:first-child {
        margin-top: 0;
    }

    body.site-theme--main_mobile .list-container {
        max-width: none;
        padding: 18px 20px 8px;
    }

    body.site-theme--main_mobile .news-content {
        font-size: 16px;
        max-width: none;
        padding-right: 70px;
    }

    body.site-theme--main_mobile .stories-container a {
        text-decoration: none;
    }

    body.site-theme--main_mobile .story {
        max-width: none;
        width: 210px;
        min-height: 96px;
        padding: 14px;
        background: #fff8ee;
        border: 1px solid #ffe0b2;
        border-radius: 14px;
    }

    body.site-theme--main_mobile .story-preview {
        display: block;
        margin-top: 8px;
        color: #555;
        font-size: 13px;
        line-height: 1.4;
    }

    body.site-theme--main_mobile .menu,
    body.site-theme--main_mobile .menu2,
    body.site-theme--main_mobile .main-menu {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    body.site-theme--main_mobile .main-menu a {
        padding: 6px 10px;
        font-size: 15px;
    }

    body.site-theme--main_mobile .main-menu a:before {
        display: none;
    }

    body.site-theme--main_mobile .theme-title {
        text-decoration: none;
        color: inherit;
    }

    body.site-theme--main_mobile .forum-thread {
        align-items: flex-start;
    }

    body.site-theme--main_mobile .theme-content {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body.site-theme--main_mobile .thought {
        border-radius: 16px 16px 0 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }

    body.site-theme--main_mobile .thought + .block-parent {
        border-radius: 0 0 16px 16px;
        margin-bottom: 18px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }

    body.site-theme--main_mobile .thought-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    body.site-theme--main_mobile .avatar-16 {
        width: 36px;
        height: 36px;
        padding: 0;
        top: 0;
        border-radius: 50%;
        overflow: hidden;
    }

    body.site-theme--main_mobile .avatar-16 img {
        position: static;
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }

    body.site-theme--main_mobile .flex-comment {
        align-items: flex-start;
        padding: 12px 4px;
        border-bottom: 1px solid #f3f3f3;
    }

    body.site-theme--main_mobile .page-tabs {
        gap: 8px;
        padding: 12px;
        background: #fff;
        border-radius: 12px 12px 0 0;
    }

    body.site-theme--main_mobile .page-tab {
        border-radius: 999px;
        padding: 10px 8px;
        font-weight: 700;
    }

    body.site-theme--main_mobile .block .count,
    body.site-theme--main_mobile .raz .count {
        top: 50%;
        transform: translateY(-50%);
    }

    body.site-theme--main_mobile .mm-web-side .menu {
        margin-top: 0;
    }

    body.site-theme--main_mobile .mm-web-side .menu + .ram,
    body.site-theme--main_mobile .mm-web-side .ram + .menu {
        margin-top: 14px;
    }

    body.site-theme--main_mobile .pager-pages,
    body.site-theme--main_mobile .pager-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
    }
}
