/* ===== Hero-секция и описание ===== */
.home-page .subtitle {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 1rem;
}

/* ===== Десктоп hero ===== */
.hero-section {
    display: flex;
    justify-content: center;
    padding: 3rem 2rem;
}

.hero-card {
    background: radial-gradient(circle at 20% 30%, rgba(255,204,0,0.1), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(142,45,226,0.1), transparent 60%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0,0,0,0.3);
}

.hero-logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.hero-card h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #ffcc00, #ff4e50, #8e2de2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-card .subtitle {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
}

.feature-list li {
    font-size: 1rem;
    display: flex;
    gap: 0.5rem;
    color: #fff;
}

.hero-btn {
    display: inline-block;
    background: linear-gradient(90deg, #8e2de2, #4a00e0);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ===== Топ игр со скидками ===== */
.topsales-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
}

.topsales-result-card {
    background: #141424;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topsales-result-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.topsales-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.5);
}

.topsales-result-card .game-info {
    padding: 0.4rem 0.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.topsales-result-card .game-title {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.topsales-result-card .game-title {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* максимум 2 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Последние обзоры (развёрнутые карточки) ===== */
.latest-reviews-section {
    padding: 1.5rem 0;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviews-header h2 {
    color: #ffcc00;
    margin: 0;
}

.view-all-btn {
    color: #8e2de2;
    text-decoration: none;
    font-weight: bold;
}
.view-all-btn:hover {
    text-decoration: underline;
}

.latest-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.review-mini-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #1c1c2e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-mini-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-mini-card .review-body {
    padding: 0.8rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.review-mini-card .gradient-overlay {
    padding: 0.6rem;
}

.review-mini-card .review-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #fff;
}

.review-mini-card .review-excerpt {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* ограничиваем в 3 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.review-mini-card:hover img {
    transform: scale(1.05);
}

/* ===== Промо-секция ===== */
.app-promo-section {
    position: relative;
    text-align: center;
    background: url('/store-mobiles.png') center/cover no-repeat;
    padding: 10rem 2rem;
    color: white;
    margin-top: 4rem;
    border-radius: 16px;
    overflow: hidden;
}

.app-promo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.app-promo-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: auto;
}

.app-promo-content h2 {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.app-promo-content p {
    font-size: 1rem;
    color: #ddd;
}

.store-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.store-btn {
    background: #222;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s ease;
}

.store-btn:hover {
    background: #444;
}

/* ===== Мобильная адаптация ===== */
@media (max-width: 600px) {
    .hero-section {
        padding: 1rem;
    }

    .hero-card {
        padding: 1rem;
    }

    .hero-card h1 {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .feature-list li {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .hero-logo {
        max-width: 120px;
        margin-bottom: 1rem;
    }


    .hero-card .subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }



    .hero-btn {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
        background: linear-gradient(90deg, #8e2de2, #4a00e0);
        color: #fff;
        padding: 0.8rem;
        border-radius: 10px;
        text-decoration: none;
        font-size: 1rem;
        font-weight: bold;
        margin-top: 0.5rem;
    }

    .app-promo-section {
        padding: 2rem 1rem;
        border-radius: 0;
    }

    .app-promo-content h2 {
        font-size: 1.5rem;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
    }

    .latest-reviews-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }

    .review-mini-card img {
        height: 160px;
    }
}
