/* =========================================================
   АКТУАЛЬНАЯ ВЕРСИЯ
========================================================= */

.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);
}

/* =========================================================
   КНОПКИ
========================================================= */

.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;
}


/* =========================================================
   АДАПТИВ
========================================================= */

@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-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);
}

/* Витрина приложения */
.app-card {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.app-hero {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 46px);
    align-items: center;
    padding: clamp(24px, 5vw, 46px);
    border: 1px solid rgba(147, 175, 255, 0.28);
    border-radius: 18px;
    background: linear-gradient(145deg, #171e3c, #29234a);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.app-icon {
    width: 250px;
    height: 250px;
    aspect-ratio: 1;
    border-radius: 20%;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.44);
}

.app-main {
    min-width: 0;
}

.app-kicker {
    margin: 0 0 8px;
    color: #b8cbff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.app-main h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -0.035em;
}

.app-description {
    max-width: 56ch;
    margin: 14px 0 0;
    color: rgba(240, 244, 255, 0.84);
    font-size: 16px;
    line-height: 1.65;
}

.main-buttons {
    margin-top: 24px;
}

.btn-download {
    padding: 13px 20px;
    background: #456fd1;
    box-shadow: 0 8px 20px rgba(41, 75, 164, 0.38);
}

.btn-download:hover {
    background: #5782e8;
}

.store-title {
    margin: 24px 0 9px;
    color: rgba(238, 242, 255, 0.68);
    font-size: 14px;
    opacity: 1;
}

.store-buttons {
    gap: 10px;
}

.store-btn {
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.store-btn.google {
    background: #1c667f;
}

.store-btn.huawei {
    background: #6d2947;
}

.store-btn.rustore {
    background: #294f91;
}

.store-btn:focus-visible,
.btn-download:focus-visible {
    outline: 3px solid #dce8ff;
    outline-offset: 3px;
}

.screenshots-title {
    margin: 0 0 12px;
    font-size: 22px;
}

.screenshots-wrapper {
    margin: 30px 0 18px;
}

.screenshot-stage {
    display: grid;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(186, 205, 255, 0.16);
    border-radius: 16px;
    background: rgba(4, 8, 25, 0.28);
}

.screenshot-main {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.screenshot-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 2px 10px;
    scrollbar-color: #527ce0 rgba(255, 255, 255, 0.12);
    scrollbar-width: thin;
}

.screenshot-thumbnails::-webkit-scrollbar {
    height: 10px;
}

.screenshot-thumbnails::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.screenshot-thumbnails::-webkit-scrollbar-thumb {
    border: 2px solid rgba(9, 14, 38, 0.8);
    border-radius: 999px;
    background: #527ce0;
}

.screenshot-thumbnail {
    flex: 0 0 160px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 9px;
    background: #10162f;
    cursor: pointer;
    opacity: 0.68;
    transition: border-color .2s, opacity .2s, transform .2s;
}

.screenshot-thumbnail:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.screenshot-thumbnail.is-active {
    border-color: #6b94ff;
    opacity: 1;
    box-shadow: 0 0 14px rgba(82, 124, 224, 0.5);
}

.screenshot-thumbnail:focus-visible {
    outline: 3px solid #dce8ff;
    outline-offset: 3px;
}

.screenshot-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.info-item {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.info-item span,
.info-item strong {
    display: block;
}

.info-item span {
    margin-bottom: 5px;
    color: rgba(238, 242, 255, 0.65);
    font-size: 13px;
}

.info-item strong {
    font-size: 17px;
}

.changelog {
    padding: 20px;
    border-radius: 12px;
    background: rgba(4, 8, 25, 0.34);
}

@media (max-width: 700px) {
    .app-hero {
        grid-template-columns: 1fr;
    }

    .app-icon {
        width: min(250px, 100%);
        height: auto;
        justify-self: center;
    }

    .app-info {
        grid-template-columns: 1fr;
    }

    .screenshot-thumbnail {
        flex-basis: 104px;
    }
}
