* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #18202f;
    background: #edf1f5;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

.topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.language-switch {
    display: inline-grid;
    grid-template-columns: 62px 44px;
    gap: 4px;
    padding: 4px;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(24, 32, 47, 0.06);
}

.language-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    border: 0;
    border-radius: 6px;
    color: #4f6680;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease;
}

.language-button:hover,
.language-button.is-active {
    color: #ffffff;
    background: #263449;
}

.profile {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 36px;
    align-items: center;
    padding: 36px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(24, 32, 47, 0.08);
}

.photo {
    width: 220px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    border: 8px solid #edf1f5;
    background: #edf1f5;
}

.eyebrow {
    margin: 0 0 10px;
    color: #4f6680;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 16px;
    font-size: 48px;
    line-height: 1.08;
}

.summary {
    max-width: 620px;
    margin-bottom: 26px;
    color: #445166;
    font-size: 18px;
    line-height: 1.65;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 8px;
    color: #ffffff;
    background: #263449;
    font-weight: 700;
    transition: transform 160ms ease, background 160ms ease;
}

.links a:hover {
    transform: translateY(-2px);
    background: #405775;
}

.content-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
    margin-top: 24px;
}

.section-panel {
    padding: 28px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(24, 32, 47, 0.06);
}

.section-panel h2 {
    margin-bottom: 16px;
    font-size: 26px;
}

.section-panel p {
    color: #445166;
    line-height: 1.7;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-list span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    color: #263449;
    background: #f8fafc;
    font-weight: 700;
}

.project-list {
    display: grid;
    gap: 14px;
}

.project-item {
    padding: 18px;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    background: #f8fafc;
}

.project-item h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.project-item p {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .page {
        width: min(100% - 24px, 1040px);
        padding: 28px 0;
    }

    .topbar {
        justify-content: center;
    }

    .profile,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .profile {
        justify-items: center;
        gap: 24px;
        padding: 28px 20px;
        text-align: center;
    }

    .photo {
        width: 168px;
    }

    h1 {
        font-size: 36px;
    }

    .summary {
        font-size: 16px;
    }

    .links {
        justify-content: center;
    }
}
