body {
    margin: 0;
    background: #0f1220;
    color: #e9eef7;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif
}

/* Неоновое пятно на фоне */
body::before {
    content: "";
    position: fixed;
    inset: -20%;
    background: radial-gradient(60% 40% at 70% 20%, rgba(108, 140, 255, .2) 0%, transparent 60%),
        radial-gradient(40% 30% at 20% 80%, rgba(124, 255, 238, .14) 0%, transparent 60%);
    filter: blur(60px);
    z-index: -1
}

.wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px
}

.hero {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap
}

.logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c8cff, #7cf);
    box-shadow: 0 8px 24px #6c8cff88
}

.btn {
    display: inline-block;
    padding: 12px 16px;
    background: #6c8cff;
    color: #0f1220;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700
}

.btn .os {
    margin-right: 8px;
    opacity: .9;
    vertical-align: middle
}

.btn:hover {
    filter: brightness(1.08)
}

.btn.outline {
    background: transparent;
    color: #e9eef7;
    border: 1px solid #2b3866
}

.btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 28px
}

.cards article {
    padding: 16px;
    border-radius: 12px;
    background: #151a2e;
    border: 1px solid #242b4a;
    background: rgba(21, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 140, 255, 0.16);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s
}

.cards article:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 255, 238, 0.28);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .35)
}

.card {
    padding: 16px;
    border-radius: 12px;
    background: #151a2e;
    border: 1px solid #242b4a;
    background: rgba(21, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 140, 255, 0.16);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 255, 238, 0.28);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .35)
}

.muted {
    color: #9fb0d6
}

pre {
    background: #0c0f1f;
    padding: 12px;
    border-radius: 8px;
    overflow: auto
}

iframe {
    border: 0;
    border-radius: 12px;
    width: 100%;
    min-height: 660px;
    background: #0f1220
}

.link {
    color: #7cf
}

/* Мини-стрип преимуществ */
.strip {
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    color: #9fb0d6
}

.strip div {
    background: rgba(21, 26, 46, 0.6);
    border: 1px solid rgba(108, 140, 255, 0.16);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center
}

/* Footer */
.footer {
    padding: 24px 16px 36px
}

.foot-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    color: #9fb0d6
}

.links {
    display: flex;
    gap: 12px
}

/* Language switcher */
.lang-switch {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999
}

.lang-btn {
    background: rgba(255, 255, 255, .16);
    color: #e9eef7;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    backdrop-filter: blur(6px)
}

.lang-btn::after {
    content: '▾';
    font-size: 12px;
    opacity: .85;
    margin-left: 4px
}

.lang-btn.open::after {
    transform: rotate(180deg);
    display: inline-block
}

.lang-btn img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .8), 0 2px 6px rgba(0, 0, 0, .25)
}

.lang-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    background: #ffffff;
    color: #141824;
    border: 1px solid #d6dbe6;
    border-radius: 12px;
    padding: 6px;
    min-width: 170px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .25)
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #141824;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600
}

.lang-menu a:hover {
    background: #f2f4f8
}

.lang-menu img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 2px 6px rgba(0, 0, 0, .15)
}

/* Адаптивность */
@media (max-width: 860px) {
    .wrap {
        max-width: 760px;
        padding: 28px 16px
    }

    .hero {
        gap: 14px
    }

    .logo {
        width: 56px;
        height: 56px
    }

    .cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))
    }

    .btn-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px
    }

    .btn-row .btn {
        width: 100%;
        text-align: center
    }
}

@media (max-width: 640px) {
    .wrap {
        max-width: 560px;
        padding: 24px 14px
    }

    .hero {
        flex-direction: row;
        align-items: center
    }

    .hero h1 {
        font-size: 26px
    }

    .btn-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 12px 14px
    }

    .cards {
        grid-template-columns: 1fr
    }
}

@media (max-width: 420px) {
    body::before {
        filter: blur(44px)
    }

    .wrap {
        padding: 20px 12px
    }

    .hero h1 {
        font-size: 22px
    }

    .logo {
        width: 48px;
        height: 48px
    }

    .card,
    .cards article {
        padding: 14px
    }

    .btn .os {
        width: 16px
    }
}