/* =========================================================
   АКТУАЛЬНАЯ ВЕРСИЯ
========================================================= */

.download-section {
    margin: 40px auto;
    max-width: 800px;
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #773333, #001d6f);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .5);
}

.download-button {
    display: inline-block;
    padding: 15px 30px;
    background: #ff8800;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: background .3s, box-shadow .3s;
}

.download-button:hover {
    background: #ffd900;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}

.download-info {
    margin-top: 20px;
    text-align: left;
    color: #fff;
}

.download-info p {
    margin: 5px 0;
    font-size: 16px;
}


/* =========================================================
   ПРОШЛЫЕ ВЕРСИИ
========================================================= */

.previous-versions {
    margin: 40px auto 60px;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 0 20px;
}

.previous-versions h3 {
    grid-column: 1 / -1;
    margin-bottom: 15px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}


/* =========================================================
   КАРТОЧКА ВЕРСИИ
========================================================= */

.version {
    padding: 20px;
    background: linear-gradient(135deg, #2c2755, #1f1b44);
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .5);
    transition: transform .2s, box-shadow .2s;
}

.version:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .6);
}

.download-link {
    display: inline-block;
    margin-bottom: 6px;
    color: #ff8800;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

.download-link:hover {
    text-decoration: underline;
}

.version-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: #fff;
}


/* =========================================================
   CHANGELOG
========================================================= */

.changelog {
    margin-top: 25px;
    font-size: 14px;
    color: #fff;
    text-align: left;
}

.changelog h3,
.changelog h4 {
    margin-bottom: 10px;
}

.changelog ul {
    padding-left: 20px;
}

.changelog li {
    margin: 5px 0;
}


/* =========================================================
   ОСНОВНОЙ КОНТЕНТ
========================================================= */

.content {
    max-width: 900px;
    margin: 20px auto;
    background: rgba(255, 255, 255, .04);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}

.content:first-of-type {
    background: none;
    box-shadow: none;
    padding-bottom: 10px;
    font-size: 26px;
    font-weight: bold;
}

.content h2 {
    margin: 30px 0 10px;
    font-size: 20px;
    border-left: 4px solid #4a8fe7;
    padding-left: 12px;
}

.content p {
    margin: 8px 0 15px;
    line-height: 1.6;
    font-size: 15px;
    color: rgba(255, 255, 255, .9);
}

.content strong {
    color: #fff;
}


/* =========================================================
   FOOTER
========================================================= */

footer a {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    opacity: .85;
    transition: opacity .2s, text-decoration .2s;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}


/* =========================================================
   КАРТОЧКА ПРИЛОЖЕНИЯ
========================================================= */

.app-card {
    max-width: 1100px;
    margin: 40px auto;
    padding: 25px;
    background: linear-gradient(135deg, #2c2755, #1f1b44);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}

.app-header {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.app-icon {
    width: 200px;
    height: 200px;
    border-radius: 18px;
}


/* =========================================================
   КНОПКИ
========================================================= */

.main-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn-download {
    background: #ff8800;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background .2s, transform .15s, box-shadow .2s;
}

.btn-download:hover {
    background: #ffa000;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}

.btn-web {
    background: #42407c;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background .2s, transform .15s, box-shadow .2s;
}

.btn-web:hover {
    background: #5351a3;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}

/* ONLINE кнопка */

.btn-online {
    background: #7d2f76;
    color: white;

    padding: 10px 18px;

    border-radius: 8px;

    text-decoration: none;
    font-weight: 600;
    font-size: 14px;

    margin-left: auto;

    transition:
        background .2s,
        transform .15s,
        box-shadow .2s;
}

.btn-online:hover {

    background: #60299b;

    transform: translateY(-1px);

    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);

}

/* подпись магазинов */

.store-title {

    margin-top: 14px;
    margin-bottom: 6px;

    font-size: 13px;
    opacity: .7;

}


/* =========================================================
   КНОПКИ МАРКЕТОВ
========================================================= */

.store-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: transform .15s, box-shadow .2s, opacity .15s;
}

.store-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}

.google {
    background: #00a8c7;
}

.huawei {
    background: #870000;
}

.rustore {
    background: #0060ff;
}

.store-icon {
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* =========================================================
   СКРИНШОТЫ
========================================================= */

.screenshots-wrapper {
    position: relative;
    margin: 25px 0;
    padding: 10px;
}

.screenshots {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.screenshots::-webkit-scrollbar {
    display: none;
}

.screenshots img {
    height: 260px;
    width: auto;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform .2s, box-shadow .2s;
}

.screenshots img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(255, 255, 255, .3);
}


/* стрелки */

.screen-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .5);
    border: none;
    color: #fff;
    font-size: 30px;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10;
}

.screen-arrow.left {
    left: -10px;
}

.screen-arrow.right {
    right: -10px;
}


/* просмотр изображения */

.image-viewer {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.image-viewer img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    cursor: zoom-out;
}


/* =========================================================
   АДАПТИВ
========================================================= */

@media (max-width:1100px) {
    .previous-versions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:768px) {

    .previous-versions {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .download-section {
        margin: 20px 15px;
        padding: 20px;
    }

    .version {
        padding: 16px;
        border-radius: 10px;
    }

    .download-link {
        font-size: 16px;
    }

    .version-info,
    .changelog {
        font-size: 13px;
    }

    .app-card {
        margin: 20px 10px;
        padding: 18px;
    }

    .app-header {
        align-items: flex-start;
        gap: 18px;
    }

    .screenshots img {
        height: 180px;
    }

    .app-info {
        gap: 20px;
        font-size: 14px;
    }

    footer {
        padding-top: 20px;
    }
}

@media (max-width:600px) {

    .content {
        padding: 20px;
        margin: 20px 15px;
    }

}

/* ===== Категории ===== */

/* ===== Категории ===== */

.bases-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 30px 0 10px 0;
    flex-wrap: wrap;
}

.bases-btn {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 8px 16px;

    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.25);

    background: rgba(255,255,255,0.04);

    color: white;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* иконка */
.bases-icon {
    width: 64px;
    height: 64px;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    flex-shrink: 0;
}

/* hover */
.bases-btn:hover {
    transform: translateY(-1px);

    background: rgba(255,255,255,0.12);

    border-color: rgba(255,255,255,0.45);
}

/* активная категория */
.bases-btn.active {

    background: linear-gradient(
        135deg,
        rgba(120,160,255,0.35),
        rgba(70,110,230,0.35)
    );

    border-color: rgba(120,160,255,0.8);

    box-shadow:
        0 0 0 1px rgba(120,160,255,0.5),
        0 0 12px rgba(120,160,255,0.35);
}