:root {
    --bg: #0b0f14;
    --panel: #0d121a;
    --text: #e9eef5;
    --muted: #b4c0cf;
    --line: #19d3a2;
    --card: #ffffff;
    --cardText: #111827;
    --soft: #f1f4f8;
    --accent: #19d3a2;
    --accent2: #14b8a6;
    --shadow: 0 8px 20px rgba(0, 0, 0, .12);
    --radius: 10px;
    --max: 980px;
    --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: var(--font);
    background: #f4f6f9;
    color: #0f172a
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 14px
}

/* Header */

.site-header {
    background: var(--panel);
    color: var(--text);
    position: sticky;
    top: 0;
    z-index: 50
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0
}

.brand {
    font-weight: 700;
    letter-spacing: .2px
}

.brand span {
    color: #fbbf24
}

.nav-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px
}

.nav-toggle:focus {
    outline: 2px solid rgba(25, 211, 162, .35)
}

.header-line {
    height: 3px;
    background: var(--accent)
}

.site-nav {
    display: none;
    padding: 8px 0 14px
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.site-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04)
}

.site-nav a:hover {
    background: rgba(255, 255, 255, .07)
}

.site-nav.is-open {
    display: block
}

/* Hero */

.hero {
    background: #000;
    color: var(--text);
    padding: 28px 0 18px
}

.hero h1 {
    margin: 0;
    font-weight: 700;
    font-size: 34px;
    text-align: center
}

.hero p {
    margin: 10px auto 0;
    max-width: 560px;
    text-align: center;
    color: var(--muted);
    line-height: 1.5
}

.hero .search-wrap {
    margin: 18px auto 0;
    max-width: 640px;
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35)
}

.hero input[type="search"] {
    flex: 1;
    border: 0;
    padding: 12px 14px;
    font-size: 15px
}

.hero button {
    border: 0;
    background: var(--accent);
    color: #04221a;
    padding: 0 14px;
    font-weight: 700;
    cursor: pointer
}

.hero button:hover {
    filter: brightness(.95)
}

.hero .tg-wrap {
    display: flex;
    justify-content: center;
    margin-top: 12px
}

.tg-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0b3d5c;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .35)
}

.tg-btn svg {
    width: 22px;
    height: 22px;
    fill: #9fe7ff
}

/* Sections */

.section-title {
    background: var(--soft);
    padding: 14px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb
}

.section-title h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: #243042
}

.featured-strip {
    background: #fff;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden
}

.featured-strip .inner {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px
}

.featured-strip img {
    width: 60px;
    height: 60px;
    border-radius: 12px
}

.featured-strip .meta {
    flex: 1;
    min-width: 0
}

.featured-strip .meta .t {
    font-weight: 700;
    color: #b91c1c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.featured-strip .meta .s {
    font-size: 13px;
    color: #111827;
    margin-top: 2px
}

.featured-strip .btn {
    background: #ef4444;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 8px
}

/* App Grid */

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

.app-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px
}

.app-card img {
    width: 78px;
    height: 78px;
    border-radius: 16px;
    object-fit: cover
}

.app-card .name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.badge {
    font-size: 11px;
    color: #6b7280
}

.stars {
    display: flex;
    gap: 1px;
    justify-content: center
}

.star {
    width: 12px;
    height: 12px
}

.download-mini {
    display: inline-block;
    background: var(--accent);
    color: #043428;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px
}

.download-mini:hover {
    filter: brightness(.95)
}

/* Layout for inner pages */

.main-wrap {
    padding: 16px 0 28px
}

.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 14px
}

.sidebar .widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 14px;
    margin-bottom: 14px
}

.widget h3 {
    margin: 0 0 10px;
    font-size: 16px
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.widget a {
    color: #111827
}

.search-widget form {
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb
}

.search-widget input {
    flex: 1;
    border: 0;
    padding: 10px 12px
}

.search-widget button {
    border: 0;
    background: var(--accent);
    padding: 0 12px;
    font-weight: 800;
    cursor: pointer
}

/* Single app */

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px
}

.pill {
    display: inline-block;
    background: #0f172a;
    color: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px
}

.app-hero {
    display: flex;
    gap: 12px;
    align-items: center
}

.app-hero img {
    width: 84px;
    height: 84px;
    border-radius: 18px
}

.app-hero .title {
    margin: 0;
    font-size: 22px
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 13px;
    margin-top: 6px
}

.big-buttons {
    display: flex;
    gap: 10px;
    margin: 14px 0
}

.big-buttons a {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 12px;
    border-radius: 12px;
    font-weight: 900
}

.btn-download {
    background: #ef4444;
    color: #fff
}

.btn-telegram {
    background: #0ea5e9;
    color: #fff
}

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

.info {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px
}

.info .k {
    font-size: 12px;
    color: #64748b
}

.info .v {
    font-weight: 800;
    color: #0f172a;
    margin-top: 2px
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px
}

.gallery img {
    border-radius: 12px;
    border: 1px solid #e5e7eb
}

/* Footer */

.site-footer {
    background: #0b1220;
    color: #cbd5e1;
    padding: 18px 0;
    margin-top: 24px
}

.site-footer .f {
    display: flex;
    justify-content: center;
    font-size: 13px
}

/* Desktop */

@media (min-width: 900px) {
    .site-nav {
        display: block !important;
        padding: 0
    }
    .site-nav ul {
        flex-direction: row;
        gap: 10px
    }
    .site-nav a {
        background: transparent;
        padding: 8px 10px
    }
    .nav-toggle {
        display: none
    }
    .hero h1 {
        font-size: 44px
    }
    .two-col {
        grid-template-columns: 1.7fr .9fr
    }
    .app-grid {
        grid-template-columns: repeat(4, 1fr)
    }
    .gallery {
        grid-template-columns: repeat(3, 1fr)
    }
}