.groups-page {
    width: 100%;
    min-height: 100vh;
    padding: 30px 20px 80px;

    background:
        linear-gradient(rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.94)),
        url('../../img/background.jpg');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    color: white;
}

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

.groups-header h1 {
    font-size: 48px;
    margin-bottom: 14px;
}

.groups-header p {
    color: #cbd5e1;
}

.groups-grid {
    max-width: 1250px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.group-card,
.best-thirds {
    background: rgba(15, 23, 42, 0.88);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;

    padding: 24px;

    backdrop-filter: blur(12px);
}

.group-card h2,
.best-thirds h2 {
    color: #A3E635;
    font-size: 26px;
    margin-bottom: 22px;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

th,
td {
    padding: 12px 10px;
    text-align: center;
    font-size: 14px;
}

th {
    color: #94a3b8;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr.qualified {
    background: rgba(163, 230, 53, 0.08);
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 10px;

    text-align: left;
    font-weight: 600;
}

.team-cell img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.points {
    color: #A3E635;
    font-weight: 800;
}

.best-thirds {
    max-width: 850px;
    margin: 45px auto 0;
}

.best-thirds h2 {
    text-align: center;
}

@media (max-width: 1000px) {
    .groups-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .groups-page {
        padding: 140px 14px 60px;
    }

    .groups-header h1 {
        font-size: 36px;
    }

    .group-card,
    .best-thirds {
        padding: 18px;
    }

    .group-card h2,
    .best-thirds h2 {
        font-size: 22px;
    }

    th,
    td {
        padding: 10px 8px;
        font-size: 13px;
    }
}