:root {
    --background: #f7f7f5;
    --surface: #ffffff;
    --text: #161616;
    --muted: #6d6d68;
    --border: #e4e4df;
    --accent: #111111;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--background);
}

body {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    color: var(--text);
    background: var(--background);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid #3874ff;
    outline-offset: 3px;
}

.header {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 750;
}

.brand-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    background: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.app-count {
    color: var(--muted);
    font-size: 14px;
}

.intro {
    padding: 72px 0 42px;
}

.intro h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 6vw, 52px);
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.intro p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.app-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 72px;
}

.app-card {
    display: flex;
    gap: 20px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.app-icon {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    border-radius: 20px;
    object-fit: cover;
}

.app-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.category {
    margin: 1px 0 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.app-info h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.description {
    margin: 8px 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.store-links a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: 9px;
    color: #ffffff;
    background: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.store-links a:hover {
    background: #363636;
}

.store-status {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--muted);
    background: var(--surface);
    font-size: 13px;
    font-weight: 650;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0 42px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.footer p {
    margin: 0;
}

.footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

.footer a {
    text-underline-offset: 3px;
}

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

@media (max-width: 520px) {
    body {
        width: min(100% - 24px, 960px);
    }

    .intro {
        padding: 52px 2px 30px;
    }

    .app-card {
        gap: 16px;
        padding: 16px;
        border-radius: 15px;
    }

    .app-icon {
        width: 72px;
        height: 72px;
        border-radius: 17px;
    }

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

    .footer nav {
        justify-content: flex-start;
    }
}
