body {
    margin: 0;
    background: #000000;
    color: #ffffff;
}

main {
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

.card {
    width: 462px;
    height: 198px;
    padding: 20px;
    background: #3a3d42;
    border: 3px solid #565a61;
    border-radius: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.card-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 100%;
    align-items: center;
}

.avatar {
    justify-self: center;
    margin-left: 11px;
    width: 148px;
    height: 148px;
    background: #2b2d31;
    border: 3px solid #6a6f78;
    border-radius: 50%;
    object-fit: cover;
}

.card-info {
    grid-column: 2 / 5;
    padding-left: 48px;
}

.title {
    margin: 0 0 9px;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    text-transform: uppercase;
}

.link {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 7px 0;
    font-size: 16px;
    line-height: 1.35;
    color: #f1f3f5;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.link img {
    width: 19px;
    height: 19px;
    filter: invert(1);
}

@media (max-width: 540px) {
    main {
        padding-top: 24px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .card {
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .card-layout {
        display: flex;
        flex-direction: column;
        gap: 18px;
        justify-content: center;
    }

    .avatar {
        margin-left: 0;
    }

    .card-info {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        text-align: center;
    }

    .link {
        justify-content: center;
    }
}
