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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #f5f5f7 0%, #e8e8ec 100%);
    min-height: 100vh;
    padding: 50px 20px 20px;
}

.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.language-selector form {
    display: contents;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid #000;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    color: #000;
}

.lang-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lang-btn.active {
    background: #000;
    color: white;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header .title {
    font-size: 56px;
    font-weight: 300;
    color: #000;
    letter-spacing: -2px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 375px;
    margin: 0 auto;
}

.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    color: #000;
}

.app:active {
    transform: scale(0.9);
    opacity: 0.7;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.app-icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.app-icon.blue {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.app-icon.red {
    background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
}

.app-icon.green {
    background: linear-gradient(135deg, #34a853 0%, #0d652d 100%);
}

.app-icon.orange {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.app-icon.black {
    background: linear-gradient(135deg, #000 0%, #333 100%);
}

.app-icon.gray {
    background: linear-gradient(135deg, #8e8e93 0%, #636366 100%);
}

.app-icon.yellow {
    background: linear-gradient(135deg, #ffd60a 0%, #ffc300 100%);
}

.app-label {
    font-size: 12px;
    text-align: center;
    color: #000;
    font-weight: 500;
    width: 70px;
    word-wrap: break-word;
    line-height: 1.2;
}
