* {
    box-sizing: border-box;
}

:root {
    --bg: #050505;
    --surface: #12151a;
    --text: #f5f5f3;
    --muted: #9a9fa8;
    --line: #23272e;
    --accent: #8fb4ff;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page {
    width: min(100% - 36px, 760px);
    margin: 0 auto;
    padding: 64px 0 48px;
}

.panel {
    text-align: center;
}

h1 {
    margin: 0;
    font-size: clamp(30px, 6vw, 46px);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 12px 0 34px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    justify-content: center;
}

.language-card {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.language-card:hover,
.language-card:focus-visible {
    background: #171b21;
    border-color: #344052;
    outline: none;
}

.language-card:last-child {
    grid-column: 1;
}

.arrow {
    color: var(--accent);
    font-size: 30px;
    line-height: 1;
    font-weight: 300;
}

.headphones {
    margin-top: 38px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.headphones-icon {
    margin-bottom: 8px;
    font-size: 24px;
}

@media (max-width: 620px) {
    .page {
        width: min(100% - 28px, 620px);
        padding-top: 42px;
    }

    h1 {
        font-size: 32px;
    }

    .subtitle {
        margin-bottom: 26px;
    }

    .language-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .language-card,
    .language-card:last-child {
        grid-column: auto;
    }

    .language-card {
        min-height: 72px;
        padding: 0 20px;
        font-size: 21px;
    }

    .headphones {
        margin-top: 30px;
    }
}
