* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: #1e2227;
    color: #f2f2f2;
}

.site-header {
    display: flex;
    justify-content: center;
    padding: 45px 20px 30px;
}

.site-logo {
    display: block;
    width: min(700px, 90%);
    height: auto;
}

main {
    width: 100%;
    padding: 20px;
}

.portal {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portal-card {
    min-height: 260px;
    padding: 35px 30px;

    border-radius: 12px;

    text-align: center;

    transition: transform 0.25s ease,
        box-shadow 0.25s ease;
}

.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.portal-card--rww {
    background: #7a3434;
}

.portal-card--tcb {
    background: #8a5738;
}

.portal-card--tcw {
    background: #365a70;
}

.portal-card__icon {
    height: 70px;
}

.portal-card h2 {
    margin: 10px 0 15px;
    font-size: 1.5rem;
}

.portal-card p {
    margin: 0;
    line-height: 1.6;
}

.portal-card__icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-card__icon img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.portal-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    margin-top: 24px;

    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;

    color: #ffffff;
    text-decoration: none;

    font-size: 28px;
    line-height: 1;

    transition: transform 0.2s ease,
        background-color 0.2s ease;
}

.portal-card__button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.site-footer {
    padding: 40px 20px 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 900px) {
    .portal {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}