.user-profile {
    padding: clamp(48px, 8vw, 72px) 0;
    background: #f4f7fb;
}

.user-profile__container {
    width: min(100%, 1224px);
    margin: 0 auto;
    padding: 0 clamp(12px, 4vw, 32px);
    display: grid;
    gap: clamp(28px, 5vw, 40px);
    box-sizing: border-box;
}

.user-profile__header {
    display: grid;
    grid-template-columns: minmax(0, clamp(220px, 26vw, 320px)) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    background: #ffffff;
    border-radius: clamp(20px, 4vw, 28px);
    box-shadow: 0 20px 48px rgba(14, 38, 63, 0.14);
    padding: clamp(28px, 5vw, 48px);
    align-items: center;
}

.user-profile__image {
    position: relative;
    border-radius: clamp(18px, 3vw, 24px);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #d7e3f4, #f4f7fb);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-profile__placeholder {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.8rem, 6vw, 3.8rem);
    font-weight: 600;
    color: #173750;
    letter-spacing: 0.08em;
}

.user-profile__info {
    display: grid;
    gap: clamp(12px, 2vw, 18px);
    color: #173750;
}

.user-profile__name {
    margin: 0;
    font: 600 clamp(2.2rem, 3.8vw, 3rem) 'Inter', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.user-profile__position {
    margin: 0;
    font: 400 clamp(1.1rem, 2.2vw, 1.4rem) 'Inter', sans-serif;
    line-height: 1.6;
}

.user-profile__certificate {
    margin: 0;
    font: 600 clamp(1rem, 2vw, 1.2rem) 'Inter', sans-serif;
    letter-spacing: 0.1em;
    color: #f5c84c;
    text-transform: uppercase;
}

.user-profile__section {
    background: #ffffff;
    border-radius: clamp(20px, 4vw, 28px);
    box-shadow: 0 20px 48px rgba(14, 38, 63, 0.12);
    padding: clamp(28px, 5vw, 48px);
}

.user-profile__section--bio {
    box-shadow: 0 12px 32px rgba(14, 38, 63, 0.08);
}

.user-profile__section-title {
    margin: 0 0 clamp(18px, 3vw, 24px);
    font: 600 clamp(1.4rem, 2.4vw, 1.8rem) 'Inter', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #173750;
}

.user-profile__description {
    color: #173750;
    font: 400 clamp(1rem, 1.8vw, 1.125rem)/1.75 'Inter', sans-serif;
}

.user-profile__description p {
    margin: 0 0 1.2em;
}

.user-profile__description p:last-child {
    margin-bottom: 0;
}

.user-profile__description a {
    color: #173750;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.user-profile__social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 18px);
}

.user-profile__social-item {
    margin: 0;
}

.user-profile__social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(23, 55, 80, 0.06);
    color: #173750;
    font: 500 0.95rem/1.2 'Inter', sans-serif;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.user-profile__social-link:hover,
.user-profile__social-link:focus {
    background: #173750;
    color: #ffffff;
}

.nl-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 992px) {
    .user-profile__header {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .user-profile__image {
        margin: 0 auto;
        max-width: 320px;
    }

    .user-profile__info {
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .user-profile__container {
        gap: clamp(20px, 6vw, 28px);
    }

    .user-profile__section {
        padding: clamp(20px, 6vw, 28px);
    }

    .user-profile__section-title {
        text-align: center;
    }

    .user-profile__social-list {
        justify-content: center;
    }

    .user-profile__description {
        font-size: 0.95rem;
    }
}
