/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #101010;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Контейнер */
.container {
    position: relative;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    overflow: hidden;
}

/* Декоративное свечение */
.glow-effect {
    position: absolute;
    width: 166px;
    height: 54px;
    left: -83px;
    top: 0;
    pointer-events: none;
    z-index: 10;
}

.glow-effect img {
    width: 287px;
    height: 175px;
    position: absolute;
    top: -60px;
    left: -60px;
}

/* Второе свечение справа (только для десктопа) */
.glow-effect.glow-right {
    display: none;
}

@media (min-width: 768px) {
    .glow-effect.glow-right {
        display: block;
        left: auto;
        right: -83px;
    }
    
    .glow-effect.glow-right img {
        left: auto;
        right: -60px;
    }
}

/* Хедер */
.header {
    display: flex;
    align-items: center;
    gap: 55px;
    padding: 15px 25px;
    position: relative;
    z-index: 5;
}

.logo {
    width: 111px;
    height: 19px;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: 100%;
}

.search-bar {
    position: relative;
    width: 215px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 60px;
    box-shadow: 0px 0px 35.4px 0px rgba(120, 120, 120, 0.1);
    transition: width 0.3s ease;
}

.search-bar.expanded {
    width: 100%;
}

.search-bar input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 40px 0 15px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.search-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.search-icon svg {
    width: 100%;
    height: 100%;
}

/* Скрытие логотипа при активном поиске */
.header.search-active .logo {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin: 0;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.header .logo {
    transition: opacity 0.3s ease, width 0.3s ease;
}

.header.search-active {
    gap: 0;
}

/* Результаты поиска */
.search-results {
    position: absolute;
    top: 54px;
    left: 25px;
    right: 25px;
    z-index: 50;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-results.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.search-results-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Карточка в результатах поиска */
.app-card.search-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    height: 102px;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    box-shadow: 0px 0px 35.4px 0px rgba(120, 120, 120, 0.1);
    backdrop-filter: blur(7.1px);
    -webkit-backdrop-filter: blur(7.1px);
}

/* Большая карточка в поиске */
.featured-card.search-featured {
    height: 380px;
}

/* Скрытие контента при активном поиске */
.content {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.content.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.footer.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Страница приложения */
.app-page {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 25px;
    z-index: 40;
    background: #101010;
    overflow-y: auto;
    padding-bottom: 100px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.app-page.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.app-page-header {
    padding: 12px 0;
}

.app-page-info {
    display: flex;
    align-items: center;
    gap: 9px;
}

.app-page-icon {
    width: 100px;
    height: 100px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    flex-shrink: 0;
}

.app-page-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.app-page-name {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.app-page-developer {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
}

/* Кнопка скачать на всю ширину */
.btn-download-full {
    width: 100%;
    padding: 10px 50px;
    background: #9375ff;
    border: none;
    border-radius: 100px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #fff;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-download-full:hover {
    background: #a88fff;
    transform: scale(1.02);
}

.btn-download-full:active {
    transform: scale(0.98);
}

/* Секция скриншотов */
.screenshots-section {
    margin-top: 20px;
}

.screenshots-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.screenshots-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.screenshots-scroll::-webkit-scrollbar {
    height: 4px;
}

.screenshots-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
    background: rgba(147, 117, 255, 0.5);
    border-radius: 2px;
}

.screenshot-item {
    flex-shrink: 0;
    width: 230px;
    height: 499px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    scroll-snap-align: start;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Страницы разделов (Игры, Приложения) */
.page-content {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 25px;
    padding-bottom: 100px;
    z-index: 35;
    background: #101010;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-content.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.page-content .games-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Сетка категорий */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.category-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.category-card:hover {
    background: rgba(147, 117, 255, 0.2);
    transform: scale(1.02);
}

.category-icon {
    font-size: 28px;
}

.category-name {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-align: center;
}

/* Кнопка назад */
.btn-back {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: #9375ff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-bottom: 10px;
    transition: opacity 0.2s ease;
}

.btn-back:hover {
    opacity: 0.8;
}

.btn-back svg {
    width: 20px;
    height: 20px;
}

/* Рейтинг приложения */
.app-page-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.rating-stars {
    color: #FFD700;
    font-size: 14px;
}

.rating-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Описание приложения */
.app-description {
    margin-top: 20px;
}

.description-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.description-text {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Информация о приложении */
.app-info-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.info-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

/* Состояния кнопки скачать */
.btn-download.downloading {
    background: #6b52cc;
    pointer-events: none;
}

.btn-download.installed {
    background: #4CAF50;
}

.btn-download-full.downloading {
    background: #6b52cc;
    pointer-events: none;
}

.btn-download-full.installed {
    background: #4CAF50;
}

/* Основной контент */
.content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 25px;
    padding-bottom: 20px;
}

/* Секции */
.section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* Кнопка "Смотреть" */
.btn-view {
    background: rgba(147, 117, 255, 0.25);
    border: none;
    border-radius: 60px;
    padding: 2px 14px;
    height: 23px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-view:hover {
    background: rgba(147, 117, 255, 0.4);
}

/* Featured карточка */
.featured-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.featured-card {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 0px 35.4px 0px rgba(120, 120, 120, 0.1);
}

.featured-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.featured-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 102px;
    background: rgba(0, 0, 0, 0.09);
    backdrop-filter: blur(7.1px);
    -webkit-backdrop-filter: blur(7.1px);
    padding: 12px 13px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Строка приложения */
.app-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.app-details {
    display: flex;
    align-items: center;
    gap: 9px;
}

.app-icon {
    width: 77px;
    height: 77px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

.app-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 139px;
}

.app-name {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.app-desc {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 116px;
}

/* Кнопка "Скачать" */
.btn-download {
    width: 100%;
    height: 23px;
    background: #9375ff;
    border: none;
    border-radius: 60px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-download:hover {
    background: #a88fff;
    transform: scale(1.02);
}

.btn-download:active {
    transform: scale(0.98);
}

.price-label {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

/* Slider dots */
.slider-dots {
    width: 38px;
    height: 10px;
}

.slider-dots img {
    width: 100%;
    height: 100%;
}

/* Секция "Во что поиграть" */
.games-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 19px 0;
    gap: 14px;
}

.games-header {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.games-title-wrap {
    display: flex;
    align-items: center;
    width: 100%;
}

.games-title {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    width: 289px;
    line-height: 1.2;
}

.arrow-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.arrow-icon:hover {
    transform: translateX(5px);
}

.arrow-icon img {
    width: 100%;
    height: 100%;
}

.games-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

.games-list {
    display: flex;
    flex-direction: column;
}

/* Компактная карточка приложения */
.app-card.compact {
    height: 102px;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    background: transparent;
}

/* Секция "Наш продукт" */
.our-products {
    gap: 10px;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Кнопка "Показать больше" */
.btn-show-more {
    width: 100%;
    padding: 10px 50px;
    background: #9375ff;
    border: none;
    border-radius: 100px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-show-more:hover {
    background: #a88fff;
    transform: scale(1.02);
}

.btn-show-more:active {
    transform: scale(0.98);
}

/* Футер */
.footer {
    padding: 40px 25px 30px;
    text-align: center;
}

.footer-author {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.footer-rights {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.1);
}

/* Нижнее меню */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(29.9px);
    -webkit-backdrop-filter: blur(29.9px);
    z-index: 100;
    padding: 15px 0 25px;
}

.nav-items {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 70px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
    color: #fff;
}

.nav-item:hover {
    transform: scale(1.05);
}

.nav-icon {
    width: 27px;
    height: 27px;
}

.nav-icon img {
    width: 100%;
    height: 100%;
}

.nav-label {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

/* Активный элемент меню - и текст и иконка */
.nav-item.active {
    color: #977bff;
}

.nav-item.active .nav-label {
    color: #977bff;
}

/* Отступ снизу для контента чтобы не перекрывалось меню */
.footer {
    padding-bottom: 100px;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease forwards;
}

.recommended {
    animation-delay: 0.1s;
}

.games-section {
    animation-delay: 0.2s;
}

.our-products {
    animation-delay: 0.3s;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(147, 117, 255, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 117, 255, 0.7);
}

/* ========================================
   ДЕСКТОПНАЯ ВЕРСИЯ (768px и выше)
   ======================================== */

@media (min-width: 768px) {
    /* Общий layout с сайдбаром */
    body {
        background: linear-gradient(135deg, #0a0a0f 0%, #12121a 50%, #0f0f18 100%);
    }
    
    .container {
        max-width: 100%;
        display: grid;
        grid-template-columns: 280px 1fr;
        grid-template-rows: auto 1fr auto;
        min-height: 100vh;
        background: transparent;
    }
    
    /* Декоративные элементы */
    .glow-effect {
        position: fixed;
        width: 400px;
        height: 400px;
        left: -150px;
        top: -150px;
        z-index: 0;
    }
    
    .glow-effect img {
        width: 600px;
        height: 400px;
        opacity: 0.6;
    }
    
    .glow-effect.glow-right {
        left: auto;
        right: -150px;
        top: auto;
        bottom: -150px;
    }
    
    .glow-effect.glow-right img {
        right: -100px;
    }
    
    /* ===== БОКОВАЯ НАВИГАЦИЯ (САЙДБАР) ===== */
    .bottom-nav {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        max-width: 280px;
        background: rgba(15, 15, 20, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        padding: 30px 20px;
        transform: none;
        z-index: 100;
        display: flex;
        flex-direction: column;
    }
    
    .nav-items {
        flex-direction: column;
        gap: 8px;
        margin-top: 80px;
    }
    
    .nav-item {
        flex-direction: row;
        gap: 15px;
        padding: 16px 20px;
        border-radius: 16px;
        transition: all 0.3s ease;
        justify-content: flex-start;
    }
    
    .nav-item:hover {
        background: rgba(147, 117, 255, 0.1);
        transform: translateX(5px);
    }
    
    .nav-item.active {
        background: linear-gradient(135deg, rgba(147, 117, 255, 0.2) 0%, rgba(147, 117, 255, 0.1) 100%);
        border: 1px solid rgba(147, 117, 255, 0.3);
    }
    
    .nav-icon {
        width: 26px;
        height: 26px;
    }
    
    .nav-label {
        font-size: 16px;
        font-weight: 500;
    }
    
    /* Логотип в сайдбаре */
    .bottom-nav::before {
        content: '';
        position: absolute;
        top: 30px;
        left: 25px;
        width: 130px;
        height: 24px;
        background: url('assets/9693268f87683183731ef0713609c3718b5dd86c.svg') no-repeat center;
        background-size: contain;
    }
    
    /* ===== ХЕДЕР ДЕСКТОП ===== */
    .header {
        grid-column: 2;
        padding: 25px 50px;
        gap: 30px;
        background: rgba(15, 15, 20, 0.8);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        position: sticky;
        top: 0;
        z-index: 50;
    }
    
    .logo {
        display: none; /* Логотип в сайдбаре */
    }
    
    .search-bar {
        width: 100%;
        max-width: 500px;
        height: 48px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .search-bar:focus-within {
        border-color: rgba(147, 117, 255, 0.5);
        box-shadow: 0 0 20px rgba(147, 117, 255, 0.15);
    }
    
    .search-bar.expanded {
        width: 100%;
        max-width: 700px;
    }
    
    .search-bar input {
        font-size: 15px;
        padding: 0 55px 0 24px;
    }
    
    .search-bar input::placeholder {
        color: rgba(255, 255, 255, 0.3);
    }
    
    .search-icon {
        width: 24px;
        height: 24px;
        right: 16px;
    }
    
    .header.search-active .logo {
        display: none;
    }
    
    .header.search-active {
        gap: 30px;
    }
    
    /* ===== ОСНОВНОЙ КОНТЕНТ ===== */
    .content {
        grid-column: 2;
        max-width: 100%;
        padding: 40px 50px 60px;
        gap: 50px;
        margin: 0;
    }
    
    /* Секции */
    .section {
        gap: 30px;
    }
    
    .section-header {
        margin-bottom: 5px;
    }
    
    .section-title {
        font-size: 28px;
        font-weight: 600;
        background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .btn-view {
        height: 36px;
        padding: 8px 24px;
        font-size: 14px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .btn-view:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(147, 117, 255, 0.3);
    }
    
    /* Featured карточки */
    .featured-slider {
        gap: 25px;
    }
    
    .featured-card {
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 24px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }
    
    .featured-card:hover {
        transform: translateY(-8px) scale(1.01);
        box-shadow: 0 20px 60px rgba(147, 117, 255, 0.25);
    }
    
    .featured-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.9) 100%);
        z-index: 1;
        pointer-events: none;
    }
    
    .featured-bg {
        object-fit: cover;
        object-position: center top;
    }
    
    .featured-info {
        height: auto;
        min-height: 110px;
        padding: 18px 20px;
        z-index: 2;
    }
    
    .featured-info .app-row {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .featured-info .app-details {
        flex: 1;
        min-width: 200px;
    }
    
    .app-icon {
        width: 70px;
        height: 70px;
        border-radius: 18px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        flex-shrink: 0;
    }
    
    .app-text {
        width: auto;
        flex: 1;
        min-width: 0;
    }
    
    .app-name {
        font-size: 20px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .app-desc {
        font-size: 13px;
    }
    
    .app-action {
        width: auto;
        min-width: 120px;
        flex-shrink: 0;
    }
    
    .btn-download {
        height: 34px;
        padding: 0 24px;
        font-size: 14px;
        border-radius: 12px;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .btn-download:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(147, 117, 255, 0.4);
    }
    
    .price-label {
        font-size: 13px;
    }
    
    /* Секция игр */
    .games-section {
        padding: 35px;
        border-radius: 24px;
        background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .games-title {
        font-size: 24px;
    }
    
    .games-subtitle {
        font-size: 16px;
    }
    
    .arrow-icon {
        width: 56px;
        height: 56px;
        transition: transform 0.3s ease;
    }
    
    .arrow-icon:hover {
        transform: translateX(8px);
    }
    
    /* Сетка продуктов */
    .products-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .products-list .featured-card {
        aspect-ratio: 4 / 5;
        min-width: 320px;
    }
    
    /* Результаты поиска */
    .search-results {
        position: fixed;
        left: 280px;
        right: 0;
        top: 100px;
        bottom: 0;
        max-width: none;
        padding: 30px 50px;
        transform: none;
        background: rgba(10, 10, 15, 0.98);
        overflow-y: auto;
    }
    
    .search-results.hidden {
        transform: translateY(-20px);
    }
    
    .search-results-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .search-results-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 20px;
    }
    
    .search-results-list .featured-card.search-featured {
        grid-column: 1 / -1;
        max-width: 800px;
    }
    
    .app-card.search-card {
        height: 110px;
        padding: 18px 22px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        transition: all 0.3s ease;
    }
    
    .app-card.search-card:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    
    /* Страницы Игры/Приложения */
    .page-content {
        position: fixed;
        left: 280px;
        right: 0;
        top: 100px;
        bottom: 0;
        max-width: none;
        padding: 30px 50px 60px;
        transform: none;
        background: transparent;
        overflow-y: auto;
        gap: 50px;
    }
    
    .page-content.hidden {
        transform: translateY(20px);
    }
    
    .page-content .products-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-content .games-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 20px;
    }
    
    /* Категории */
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .category-card {
        padding: 28px 15px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        transition: all 0.3s ease;
    }
    
    .category-card:hover {
        background: linear-gradient(135deg, rgba(147, 117, 255, 0.15) 0%, rgba(147, 117, 255, 0.08) 100%);
        border-color: rgba(147, 117, 255, 0.3);
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(147, 117, 255, 0.2);
    }
    
    .category-icon {
        font-size: 32px;
    }
    
    .category-name {
        font-size: 13px;
    }
    
    /* Страница приложения */
    .app-page {
        position: fixed;
        left: 280px;
        right: 0;
        top: 100px;
        bottom: 0;
        max-width: none;
        padding: 30px 50px 60px;
        transform: none;
        background: transparent;
        overflow-y: auto;
    }
    
    .app-page.hidden {
        transform: translateY(20px);
    }
    
    .app-page > * {
        max-width: 900px;
    }
    
    .btn-back {
        font-size: 15px;
        margin-bottom: 20px;
        padding: 10px 0;
    }
    
    .btn-back:hover svg {
        transform: translateX(-5px);
    }
    
    .btn-back svg {
        transition: transform 0.3s ease;
    }
    
    .app-page-header {
        padding: 20px 0;
    }
    
    .app-page-info {
        gap: 25px;
    }
    
    .app-page-icon {
        width: 160px;
        height: 160px;
        border-radius: 32px;
        box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    }
    
    .app-page-name {
        font-size: 32px;
    }
    
    .app-page-developer {
        font-size: 16px;
    }
    
    .app-page-rating {
        gap: 15px;
        margin-top: 12px;
    }
    
    .rating-stars {
        font-size: 20px;
    }
    
    .rating-count {
        font-size: 15px;
    }
    
    .btn-download-full {
        max-width: 300px;
        padding: 16px 50px;
        font-size: 16px;
        margin-top: 25px;
        border-radius: 16px;
        transition: all 0.3s ease;
    }
    
    .btn-download-full:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(147, 117, 255, 0.4);
    }
    
    .app-description {
        margin-top: 40px;
    }
    
    .description-title,
    .screenshots-title,
    .info-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .description-text {
        font-size: 15px;
        line-height: 1.8;
        max-width: 700px;
    }
    
    /* Скриншоты */
    .screenshots-section {
        margin-top: 40px;
    }
    
    .screenshots-scroll {
        gap: 20px;
        padding-bottom: 15px;
    }
    
    .screenshot-item {
        width: 260px;
        height: 520px;
        border-radius: 24px;
        transition: transform 0.3s ease;
    }
    
    .screenshot-item:hover {
        transform: scale(1.02);
    }
    
    /* Информация */
    .app-info-section {
        margin-top: 40px;
    }
    
    .info-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        background: rgba(255, 255, 255, 0.05);
        padding: 25px 30px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .info-item {
        text-align: center;
    }
    
    .info-label {
        font-size: 13px;
    }
    
    .info-value {
        font-size: 18px;
        font-weight: 600;
    }
    
    /* Футер */
    .footer {
        grid-column: 2;
        padding: 50px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .footer-author {
        font-size: 14px;
    }
    
    .footer-rights {
        font-size: 13px;
    }
}

/* ========================================
   БОЛЬШИЕ ЭКРАНЫ (1200px и выше)
   ======================================== */

@media (min-width: 1200px) {
    .content {
        padding: 50px 70px 80px;
    }
    
    .products-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-list .featured-card {
        aspect-ratio: 1 / 1;
        min-width: 400px;
    }
    
    .featured-info .app-row {
        flex-wrap: nowrap;
    }
    
    .app-icon {
        width: 80px;
        height: 80px;
    }
    
    .app-name {
        font-size: 22px;
    }
    
    .page-content {
        padding: 40px 70px 80px;
    }
    
    .page-content .products-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-results {
        padding: 40px 70px;
    }
    
    .app-page {
        padding: 40px 70px 80px;
    }
}

/* ========================================
   ОЧЕНЬ БОЛЬШИЕ ЭКРАНЫ (1600px и выше)
   ======================================== */

@media (min-width: 1600px) {
    .container {
        grid-template-columns: 320px 1fr;
    }
    
    .bottom-nav {
        width: 320px;
        max-width: 320px;
        padding: 40px 30px;
    }
    
    .bottom-nav::before {
        left: 35px;
        width: 150px;
        height: 28px;
    }
    
    .nav-items {
        margin-top: 100px;
        gap: 10px;
    }
    
    .nav-item {
        padding: 18px 24px;
    }
    
    .nav-label {
        font-size: 17px;
    }
    
    .search-results,
    .page-content,
    .app-page {
        left: 320px;
    }
    
    .content {
        padding: 60px 100px 100px;
        gap: 60px;
    }
    
    .products-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    
    .products-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .products-list .featured-card {
        aspect-ratio: 1 / 1;
        min-width: 450px;
    }
    
    .featured-info .app-row {
        flex-wrap: nowrap;
        gap: 20px;
    }
    
    .app-icon {
        width: 85px;
        height: 85px;
    }
    
    .app-name {
        font-size: 24px;
    }
    
    .btn-download {
        padding: 0 30px;
    }
}

/* ========================================
   МОБИЛЬНАЯ ВЕРСИЯ (мелкие корректировки)
   ======================================== */

@media (max-width: 767px) {
    .glow-effect.glow-right {
        display: none;
    }
}

@media (max-width: 430px) {
    .container {
        max-width: 100%;
    }
    
    .header {
        padding: 15px 20px;
        gap: 20px;
    }
    
    .logo {
        width: 90px;
        height: 16px;
    }
    
    .search-bar {
        width: 180px;
    }
    
    .content {
        padding: 0 20px 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .featured-card {
        height: 340px;
    }
    
    .app-icon {
        width: 65px;
        height: 65px;
    }
    
    .app-text {
        width: 110px;
    }
    
    .app-name {
        font-size: 18px;
    }
    
    .app-action {
        width: 100px;
    }
    
    .btn-download {
        font-size: 13px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .screenshot-item {
        width: 200px;
        height: 420px;
    }
}

