* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f5f7fa;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
}

.portal-simple {
    width: 100%;
    max-width: 960px;
}

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

.portal-header h1 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.portal-header p {
    margin: 0;
    font-size: 15px;
    color: #475569;
    font-weight: 500;
}

.weeks-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.week-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    min-height: 112px;
    padding: 18px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.week-item strong {
    font-size: 18px;
    font-weight: 700;
}

.week-item span {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.35;
}

.week-item:hover,
.week-item:focus-visible {
    transform: translateY(-3px);
    border-color: #0d9488;
    box-shadow: 0 10px 22px rgba(13, 148, 136, 0.12);
    outline: none;
}

.week-item:hover strong {
    color: #0d9488;
}

.back-home {
    text-align: center;
    margin-top: 26px;
}

.back-home a {
    color: #0d9488;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.back-home a:hover {
    text-decoration: underline;
}

@media (max-width: 820px) {
    .weeks-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .weeks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .week-item {
        min-height: 96px;
        padding: 14px 10px;
    }
}
