/* Только мобилка/планшет (≤1175px). Desktop и hero.css не трогаем. */

@media (max-width: 1175px) {
    /* Сброс desktop-фиксированных размеров слайдера */
    .header-slider,
    .home-page .header-slider {
        width: 100% !important;
        max-width: 100% !important;
        align-items: center;
    }

    .slide-header,
    .home-page .slide-header {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: block;
        overflow: hidden;
    }

    .slide-header .header-top-section,
    .home-page .slide-header .header-top-section {
        min-height: 0 !important;
        height: auto !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 8px !important;
        gap: 18px !important;
    }

    .slide-header h3,
    .slide-header h3.h3-main,
    .slide-header p.text-p {
        text-align: center !important;
        width: 100%;
        max-width: 100%;
    }

    .slide-header .group-info {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        gap: 14px !important;
    }

    .slider-num,
    .home-page .slider-num {
        width: 100%;
        justify-content: center !important;
        margin-top: 24px !important;
        margin-left: 0 !important;
    }

    /* Hero-панель */
    .header-center,
    .home-page .header-center {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 0 !important;
        height: auto !important;
        gap: 0 !important;
        padding: 20px 0 !important;
        width: 100%;
    }

    .header-center > .left-header-content,
    .home-page .header-center > .left-header-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        justify-content: center;
        align-items: center;
    }

    .right-header-content,
    .home-page .right-header-content {
        display: none !important;
    }

    img.absolute-image-1,
    img.absolute-image-2 {
        display: none !important;
    }

    /* Шапка */
    .header {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    body.home-page .header {
        padding-bottom: 56px;
    }

    body.inner-page .header {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .header-top {
        margin-top: 0;
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Контент главной */
    .content-main {
        grid-template-columns: 1fr !important;
        margin-top: 20px !important;
        gap: 16px;
    }

    .left-block,
    .right-block {
        width: 100% !important;
        max-width: 100% !important;
    }

    .right-block {
        order: -1;
    }

    /* Нижние карточки hero */
    .bottom-header-content {
        grid-template-columns: 1fr !important;
        width: 100%;
        gap: 12px;
    }

    a.header-content-object:not(.video) {
        display: none !important;
    }

    a.header-content-object.video {
        display: flex !important;
        width: 100%;
        min-height: 140px;
        box-sizing: border-box;
        border-radius: 12px;
    }

    p.title-text-video {
        font-size: clamp(17px, 4.5vw, 24px);
        padding: 0 12px;
    }

    /* Сайдбар */
    .content-right-block {
        padding: 22px 18px;
        width: 100%;
        box-sizing: border-box;
    }

    a.navigation-link-a {
        width: 100%;
        box-sizing: border-box;
    }

    ul.socials-list-header {
        width: 100%;
    }

    .custom-button-1.big {
        width: 100%;
        max-width: 300px;
        min-width: 0;
    }

    h3,
    h3.h3-main {
        font-size: clamp(22px, 6vw, 32px) !important;
    }

    p.text-p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Профиль */
    .cabinet-main {
        flex-direction: column !important;
    }

    .right-cabinet {
        max-width: 100% !important;
    }

    .group-top-b-cabinet {
        grid-template-columns: 1fr !important;
    }

    .group-top-b-cabinet-right {
        max-width: 100% !important;
    }

    .forum-sidebar.right-block {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --site-gutter: 14px;
    }

    .header {
        padding-top: 14px;
        padding-bottom: 32px;
    }

    .header-top {
        padding: 12px;
        gap: 10px;
    }

    img.logotype {
        max-width: 130px;
        height: auto;
    }

    .header-center,
    .home-page .header-center {
        padding: 16px 0 !important;
    }

    .content-right-block {
        padding: 18px 14px;
    }

    .contnet-block-a {
        padding: 18px 14px;
    }

    .custom-button-1.big {
        max-width: 100%;
        font-size: 14px;
    }

    a.header-content-object.video {
        min-height: 120px;
    }

    .top-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .bottom-footer {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .left-cabinet {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        background: transparent;
    }
}

@media (max-width: 480px) {
    :root {
        --site-gutter: 12px;
    }

    .header-top {
        padding: 10px;
    }

    .slide-header .header-top-section {
        gap: 14px !important;
    }

    .contnet-block-a {
        padding: 16px 12px;
    }

    a.social-header-a {
        padding: 16px 14px;
    }
}
