* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eef2f5;
    position: relative;
}

.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2;
    display: flex;
    background: white;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    padding: 4px;
    gap: 4px;
}

.lang-switch button {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    color: #777;
}

.lang-switch button.active {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
}

.wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 1380px;
}

.title {
    margin: 0 auto 36px;
    width: 100%;
    max-width: 1330px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 28px 40px;
}

.title h1 {
    margin: 0;
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.title p {
    margin: 8px auto 0;
    font-size: 25px;
    color: #666;
    max-width: 700px;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(385px, 1fr));
    gap: 42px;
    max-width: 1330px;
    margin: 0 auto;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 56px 35px;
    text-decoration: none;
    color: inherit;
    min-height: 315px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
}

a.tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(52, 152, 219, 0.22), 0 8px 20px rgba(155, 89, 182, 0.15);
}

.tile .icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.12), rgba(155, 89, 182, 0.12));
}

.tile h2 {
    margin: 0 0 10px;
    font-size: 35px;
    color: #2c3e50;
}

.tile p {
    margin: 0;
    font-size: 25px;
    color: #666;
}

.tile.disabled {
    cursor: default;
    background: #f2f4f6;
}

.tile.disabled::before {
    background: #cfd4da;
}

.tile.disabled .icon,
.tile.disabled h2,
.tile.disabled p {
    opacity: 0.55;
}

.tile .badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.footer {
    margin-top: 30px;
}

.footer-logo {
    display: block;
    height: 144px;
    width: auto;
    margin: 0 auto 10px;
    filter: blur(0.5px);
    opacity: 0.88;
}

@media (max-width: 480px) {
    .wrapper {
        padding: 28px 14px;
    }

    .title {
        padding: 20px 24px;
    }

    .title h1 {
        font-size: 30px;
    }

    .title p {
        font-size: 17px;
    }

    .tiles {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tile {
        padding: 32px 20px;
        min-height: 200px;
    }

    .tile .icon {
        width: 76px;
        height: 76px;
        font-size: 40px;
        margin-bottom: 16px;
    }

    .tile h2 {
        font-size: 26px;
    }

    .tile p {
        font-size: 17px;
    }

    .lang-switch {
        top: 12px;
        right: 12px;
    }
}
