/* =========================================================
   БАЗА
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;

    font-family: Arial, sans-serif;
    color: white;

    background-image: url('back.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    z-index: 999;

    height: 85px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);

    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.12);
}

/* левая часть: кнопка «Назад» + кругляши */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-back {
    color: white;
    text-decoration: none;
    white-space: nowrap;

    font-size: 22px;
    font-weight: bold;

    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;

    padding: 10px 20px;

    transition: 0.2s;
}

.btn-back:hover {
    background: rgba(255,255,255,0.14);
    transform: scale(1.03);
}

/* кругляши (видео) */
.videos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.videos a {
    display: flex;
}

.videos video {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 14px;
}

/* ссылки справа (пока не используются) */
.links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.links a {
    color: white;
    text-decoration: none;

    font-size: 24px;
    font-weight: bold;

    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;

    padding: 12px 22px;

    transition: 0.2s;
}

.links a:hover {
    background: rgba(255,255,255,0.14);
    transform: scale(1.03);
}
.nyan {
    height: 140px;
    width: auto;
    cursor: pointer;
    user-select: none;

    align-self: center;     /* по вертикали ровно по центру топбара */
    margin-top: 0;
}

.nyan-flying {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    z-index: 1000;
    touch-action: none;
    cursor: grab;
}

.nyan-grabbed {
    cursor: grabbing;
}


/* =========================================================
   ЦЕНТР
   ========================================================= */

.content {
    min-height: 100dvh;
    padding: 120px 20px 30px;   /* сверху место под топбар */

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

/* ряд из трёх карточек */
.cards {
    display: flex;
    flex-direction: row;
    gap: 30px;

    width: min(95%, 1200px);
}

.box {
    flex: 1;
    padding: 40px 30px;

    text-align: center;

    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);

    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.12);
}

.box h2 {
    font-size: 44px;
    margin-bottom: 15px;
}

.box p {
    font-size: 22px;
    opacity: 0.85;
}

/* кнопка (скачать / исходники) */
.btn-more {
    display: inline-block;
    margin-top: 25px;

    color: white;
    text-decoration: none;

    font-size: 30px;
    font-weight: bold;

    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;

    padding: 12px 22px;

    transition: 0.2s;
}

.btn-more:hover {
    background: rgba(255,255,255,0.14);
    transform: scale(1.05);
}


/* =========================================================
   БЛОК «WINDOWS МОЖЕТ РУГАТЬСЯ»
   ========================================================= */

.notice {
    width: min(95%, 1200px);    /* та же ширина, что у .cards */
    padding: 30px 40px;

    display: flex;
    flex-direction: column;

    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);

    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.12);
}

.notice h2 {
    font-size: 34px;
    margin-bottom: 12px;
}

.notice p {
    font-size: 20px;
    line-height: 1.5;
    opacity: 0.85;
    margin-bottom: 8px;
}

.notice-footer {
    margin-top: 10px;

    display: flex;
    justify-content: space-between;   /* картинка слева, кнопка справа */
    align-items: flex-end;            /* обе прижаты к низу */
    gap: 20px;
}

.notice-footer img {
    width: 100%;
    max-width: 380px;

    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 700px) {
.topbar {
    height: auto;
    padding: 12px 18px;

    flex-direction: row;        /* было column */
    flex-wrap: wrap;            /* когда появятся ссылки, уйдут на вторую строку */
    justify-content: space-between;
    align-items: center;
    gap: 10px 15px;
}


.topbar-left {
    width: auto;
}
.nyan {
    height: 80px;               /* крупнее, чтобы компенсировать прозрачные поля */
    margin-top: 0;
    align-self: center;
}
    .btn-back {
        font-size: 16px;
        padding: 8px 14px;
        border-radius: 14px;
    }

    /* на телефоне только один кругляш */
    .videos {
        gap: 10px;
        justify-content: flex-start;
    }

    .videos a:nth-child(n+2) {
        display: none;
    }

    .videos video {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }

    .links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .links a {
        font-size: 18px;
        padding: 10px 14px;
        border-radius: 14px;
    }

    .content {
        padding-top: 170px;
    }

    .cards {
        flex-direction: column;
        width: 100%;
    }

    .box {
        flex: none;
        padding: 35px 20px;
        border-radius: 25px;
    }

    .box h2 {
        font-size: 36px;
    }

    .box p {
        font-size: 20px;
    }

    .notice {
        width: 100%;
        padding: 25px 20px;
        border-radius: 25px;
    }

    .notice h2 {
        font-size: 26px;
    }

    .notice p {
        font-size: 18px;
    }

    .notice-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .notice-footer .btn-more {
        text-align: center;
    }
}
