@media(max-width:768px){

.header-container{

    width:100%;
    height:70px;

    padding:0 16px;

    display:flex;

    justify-content:space-between;

    gap:10px;

}


/* логотип уменьшаем */

.logo img{

    width:34px;
    height:34px;

}


.logo-title{

    font-size:16px;

}


.logo-market{

    font-size:8px;

    letter-spacing:3px;

}


/* каталог пока скрываем */

.catalog-wrapper{

    display:none;

}


/* поиск убираем из шапки */

.search-box{

    display:none;

}


/* меню скрываем */

.menu{

    display:none;

}


/* кнопки справа */

.actions{

    gap:8px;

}


.icon-button{

    width:40px;
    height:40px;

}


.profile{

    padding:0 10px;

}


.profile span{

    display:none;

}


.avatar{

    width:32px;
    height:32px;

}

}

@media(max-width:768px){

    /* Новости на телефоне */

 .news-grid{

        display:flex;

        flex-direction:row;

        gap:16px;

        padding:20px;

        overflow-x:auto;

        overflow-y:hidden;

        scroll-snap-type:x mandatory;

        -webkit-overflow-scrolling:touch;

    }


    .news-grid::-webkit-scrollbar{

        height:4px;

    }


    .news-grid::-webkit-scrollbar-thumb{

        background:#ff7885;

        border-radius:20px;

    }


    .news-card{

        flex:0 0 300px;

        min-width:300px;

        flex-direction:column;

        gap:12px;

        padding:16px;

        scroll-snap-align:start;

    }


    .news-image{

        width:100%;

        height:180px;

        border-radius:14px;

    }


    .news-title{

        font-size:18px;

    }


    .news-link{

        font-size:14px;

    }




    .news-image{

        width:100%;

        height:180px;

        border-radius:14px;

    }


    .news-title{

        font-size:18px;

    }


    .news-link{

        font-size:14px;

    }

}

@media(max-width:768px){

    .top-sellers{

        padding:16px;

    }


    .sidebar-head h3{

        font-size:24px;

    }


    .seller-row{

        gap:10px;

        margin-bottom:14px;

    }


    .seller-avatar{

        width:42px;

        height:42px;

    }


    .seller-place{

        font-size:22px;

    }

}

@media(max-width:768px){

    .seller-banner{

        height:270px;

        border-radius:18px;

    }


    .seller-banner-overlay{

        left:18px;

        right:18px;

        bottom:18px;

    }


    .seller-banner h3{

        font-size:28px;

        margin-bottom:10px;

    }


    .seller-banner p{

        font-size:14px;

        line-height:1.5;

        margin-bottom:16px;

    }


    .seller-banner a{

        height:48px;

    }

}

@media(max-width:768px){

    .seller-banner h3{

        font-size:24px;

    }


    .seller-banner p{

        font-size:13px;

        max-width:260px;

    }

}

@media(max-width:768px){

    .categories-list{

        display:grid;

        grid-template-columns:repeat(2,1fr);

        gap:12px;

        padding:12px;

    }


    .category-card{

        min-height:90px;

        padding:16px;

    }


    .category-card h3{

        font-size:16px;

    }


    .category-card span{

        font-size:13px;

    }

    


}

@media(max-width:768px){


.mobile-menu-btn{

    display:flex;

    width:40px;
    height:40px;

    align-items:center;
    justify-content:center;

    border-radius:14px;

    background:#1A1F3D;

    color:white;

    border:1px solid rgba(255,255,255,.05);

    font-size:22px;

    cursor:pointer;

}



.mobile-menu{

    position:absolute;

    top:60px;

    right:16px;

    width:220px;

    padding:14px;


    background:#171d38;


    border:1px solid rgba(255,255,255,.08);


    border-radius:20px;


    box-shadow:
    0 20px 50px rgba(0,0,0,.45);


    display:flex;

    flex-direction:column;

    gap:8px;


    opacity:0;

    visibility:hidden;


    transform:translateY(-10px);


    transition:.25s;


    z-index:3000;

}



.mobile-menu.active{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.mobile-menu{

    left:16px;

    right:auto;

}

.mobile-menu a{

    padding:14px;

    border-radius:12px;

    text-decoration:none;

    color:#DDE3FF;

    font-weight:600;

}



.mobile-menu a:hover{

    background:linear-gradient(135deg,#ff617d,#ff9578)
;

}

}



@media(min-width:769px){

.mobile-menu-btn{

    display:none;

}

}



@media(max-width:768px){

.profile-sidebar-menu{

    overflow-x:auto;

    display:flex;

    gap:10px;

    white-space:nowrap;

}


.profile-sidebar-menu a{

    flex-shrink:0;

}

}

/* =========================================
   HOME MOBILE — HERO + CATEGORIES FINAL
========================================= */

@media (max-width: 768px) {

    /* =========================
       HERO
    ========================= */

    .hero {
        width: 100%;
        max-width: 100%;

        height: auto;
        min-height: 0;

        overflow: visible;
    }


    .hero .container {
        width: 100%;
        max-width: 100%;

        height: auto;
        min-height: 0;

        margin: 0;
        padding: 0;

        box-sizing: border-box;

        display: flex;
        flex-direction: column;
    }


    /* =========================
       HERO BOTTOM
    ========================= */

    .hero-bottom {
        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box;

        transform: none !important;

        overflow: visible !important;

        z-index: 20;
    }


    /* =========================
       FEATURES
    ========================= */

    .hero-features {
        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;

        margin: 0 !important;

        padding: 24px 20px !important;

        box-sizing: border-box;

        display: flex !important;
        flex-direction: column !important;

        align-items: stretch !important;
        justify-content: flex-start !important;

        gap: 14px !important;

        transform: none !important;

        overflow: visible !important;

        mask-image: none !important;
        -webkit-mask-image: none !important;

        background:
            linear-gradient(
                180deg,
                rgba(15,18,35,.86),
                rgba(15,18,35,.96)
            ) !important;

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }


    /* =========================
       FEATURE
    ========================= */

    .feature {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        height: auto !important;

        display: flex !important;

        flex-direction: row !important;

        align-items: center !important;
        justify-content: flex-start !important;

        gap: 12px !important;

        box-sizing: border-box;
    }


    .feature-icon {
        width: 44px !important;
        height: 44px !important;

        min-width: 44px !important;
        max-width: 44px !important;

        flex: 0 0 44px !important;
    }


    .feature-icon img {
        width: 26px !important;
        height: 26px !important;
    }


    .feature > div:last-child {
        flex: 1 1 auto;

        width: auto;
        min-width: 0;
        max-width: none !important;

        overflow: visible;
    }


    .feature strong {
        display: block;

        font-size: 14px !important;
        line-height: 1.3;

        white-space: normal !important;

        overflow: visible !important;
        text-overflow: clip !important;
    }


    .feature span {
        display: block;

        margin-top: 4px;

        font-size: 12px !important;
        line-height: 1.4;

        white-space: normal !important;

        overflow: visible !important;
        text-overflow: clip !important;
    }


    /* =========================
       CATEGORIES SECTION
    ========================= */

    .categories {
        width: 100%;
        max-width: 100%;

        overflow: hidden;

        box-sizing: border-box;
    }


    .categories .container {
        width: calc(100% - 28px) !important;
        max-width: none !important;

        margin: 0 auto !important;

        padding: 0 !important;

        box-sizing: border-box;
    }


    .categories-header {
        width: 100%;

        box-sizing: border-box;

        display: flex;

        align-items: center;
        justify-content: space-between;

        gap: 10px;
    }


    .categories-list {
        width: 100% !important;
        max-width: 100% !important;

        box-sizing: border-box;

        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 12px !important;

        padding: 12px !important;

        margin: 0 !important;

        overflow: hidden;
    }


    /* =========================
       CATEGORY CARD
    ========================= */

    .category-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        box-sizing: border-box;

        padding: 14px !important;

        min-height: 90px;

        overflow: hidden;
    }


    .category-icon {
        flex: 0 0 auto;

        max-width: 42px;
    }


    .category-icon img {
        max-width: 100%;
        height: auto;
    }


    .category-info {
        min-width: 0 !important;
        max-width: 100%;

        overflow: hidden;
    }


    .category-info h3 {
        font-size: 15px !important;

        white-space: normal;

        overflow-wrap: anywhere;
    }


    .category-info p {
        font-size: 12px !important;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;
    }

}

@media (max-width: 768px) {

    .hero-content {
        padding-top: 10px !important;
        padding-bottom: 20px !important;
    }

}

/* =========================================
   MOBILE NOTIFICATIONS
========================================= */

@media (max-width: 768px) {

    .profile.notifications-widget .notifications-dropdown {
        position: fixed !important;

        top: 76px !important;
        right: 12px !important;
        left: auto !important;

        width: min(290px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px);

        box-sizing: border-box;

        padding: 12px;

        border-radius: 16px;

        max-height: calc(100vh - 90px);
        overflow-y: auto;

        z-index: 5000;
    }


    .notifications-dropdown-title {
        font-size: 16px;
        margin-bottom: 10px;
    }


    .notifications-dropdown-item {
        min-width: 0;

        grid-template-columns: 28px minmax(0, 1fr);

        padding: 10px;
    }


    .notifications-dropdown-item strong {
        font-size: 13px;
        line-height: 1.35;
    }


    .notifications-dropdown-item small {
        font-size: 11px;
        line-height: 1.35;
    }


    .notifications-all {
        width: 100%;
        box-sizing: border-box;

        padding: 11px;

        font-size: 13px;
    }

}

/* =========================================
   HERO — REMOVE EXTRA MOBILE HEIGHT
========================================= */

@media (max-width: 768px) {

    .hero {
        min-height: 0 !important;
        height: auto !important;
        padding-bottom: 0 !important;
    }

    .hero .container {
        height: auto !important;
        min-height: 0 !important;
    }

    .hero-image {
        height: 100% !important;
    }

    .hero-bottom {
        position: relative !important;
        bottom: auto !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        transform: none !important;
    }

}

@media (max-width: 768px) {

    .hero-features {
        position: relative !important;

        background: rgba(15, 22, 48, 0.62) !important;

        backdrop-filter: blur(14px) saturate(125%);
        -webkit-backdrop-filter: blur(14px) saturate(125%);

        border: 1px solid rgba(255, 255, 255, 0.08);

        border-radius: 0;

        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 -18px 35px rgba(8, 12, 30, 0.25),
            0 18px 35px rgba(8, 12, 30, 0.25);

        overflow: hidden;

        isolation: isolate;
    }


    /* Мягкое свечение/размытие по краям */

    .hero-features::before {
        content: "";

        position: absolute;

        inset: 0;

        pointer-events: none;

        z-index: -1;

        background:
            linear-gradient(
                to bottom,
                rgba(15, 22, 48, 0.18),
                rgba(15, 22, 48, 0.48) 18%,
                rgba(15, 22, 48, 0.48) 82%,
                rgba(15, 22, 48, 0.18)
            );

        filter: blur(10px);

        transform: scale(1.04);
    }


    /* Мягкое свечение по внешнему периметру */

    .hero-features::after {
        content: "";

        position: absolute;

        inset: -1px;

        pointer-events: none;

        z-index: 5;

        border-radius: inherit;

        box-shadow:
            inset 0 0 22px rgba(111, 102, 255, 0.10),
            inset 0 0 45px rgba(255, 105, 135, 0.05);

        opacity: 0.9;
    }

}

@media (max-width: 768px) {

    .hero-features {
        -webkit-mask-image:
            linear-gradient(
                to right,
                transparent 0%,
                #000 4%,
                #000 96%,
                transparent 100%
            ),
            linear-gradient(
                to bottom,
                transparent 0%,
                #000 5%,
                #000 95%,
                transparent 100%
            );

        -webkit-mask-composite: source-in;

        mask-image:
            linear-gradient(
                to right,
                transparent 0%,
                #000 4%,
                #000 96%,
                transparent 100%
            ),
            linear-gradient(
                to bottom,
                transparent 0%,
                #000 5%,
                #000 95%,
                transparent 100%
            );

        mask-composite: intersect;
    }

}

