body {
    margin: 0;
    min-height: 100vh;
    background: url("./img/blurred-bg.jpg") center / cover no-repeat;
    font-family: Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

/* Top bar */

.large-rectangle {
    width: min(1200px, 88%);
    height: 36px;
    margin: 35px auto 0;
    background: rgba(255, 255, 255, 1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.small-rectangle {
    width: min(320px, 42%);
    height: 20px;
    background: rgba(189, 201, 218, 1);
    border-radius: 6px;
}

/* Header info */

.menu {
    width: min(1200px, 90%);
    margin: 30px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    color: white;
    font-weight: bold;
    font-size: clamp(14px, 1.4vw, 20px);
    text-transform: uppercase;
}

.menu-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-avatar {
    width: 72px;
    height: 72px;
    border: 3px solid white;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-name,
.menu-group,
.menu-specialty {
    line-height: 1.05;
}

.menu-name p,
.menu-group p,
.menu-specialty p {
    margin: 0;
}

.menu-group {
    min-width: 120px;
}

.menu-specialty {
    max-width: 420px;
}

/* Main composition */

.composition {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding: 0 16px 40px;
}

.composition-stage {
    position: relative;
    width: min(760px, 100%);
    aspect-ratio: 760 / 540;
}

.composition-main_photo {
    width: 100%;
    height: 100%;
    border: 4px solid white;
    border-radius: 28px;
    overflow: hidden;
}

.composition-main_photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Left panel */

.lab-panel {
    position: absolute;
    left: clamp(-200px, -16vw, -190px);
    top: clamp(40px, 7vw, 82px);
    width: clamp(270px, 31vw, 350px);
    min-height: 380px;
    padding: 28px;
    background: rgba(164, 181, 214, 0.72);
    border-radius: 32px;
    backdrop-filter: blur(6px);
    color: white;
    z-index: 3;
}

.lab-panel_title {
    margin: 0;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0;
}

.lab-panel_subtitle {
    margin: 40px 0 30px;
    text-align: center;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    line-height: 1;
    text-transform: none;
}

.lab-panel_slider,
.handouts-panel__content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Left project card */

.project-card {
    width: min(246px, 100%);
    min-height: 155px;
    padding: 22px 22px 20px;
    background: #eef0ff;
    border-radius: 14px;
    text-decoration: none;
    color: #1f2233;
    display: block;
}

.project-card_top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.project-card_name {
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.15;
}

.project-card_text {
    margin: 20px 0 0;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 400;
    line-height: 1.15;
}

.project-card_status {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card_status img {
    width: 24px;
    height: 24px;
}

/* Arrows */

.lab-panel_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 28px;
    height: 48px;
    box-shadow: none;
}

.lab-panel_arrow img {
    width: 18px;
    height: 34px;
}

.lab-panel_arrow-left {
    left: -20px;
}

.lab-panel_arrow-right {
    right: -20px;
}

.lab-panel_arrow:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.lab-panel_arrow:not(:disabled):hover {
    opacity: 0.85;
}

/* Right panel */

.handouts-panel {
    position: absolute;
    right: clamp(-200px, -16vw, -180px);
    top: clamp(320px, 28vw, 290px);
    width: clamp(290px, 33vw, 380px);
    min-height: 172px;
    padding: 34px 34px 10px;
    background: rgba(255, 255, 255, 1);
    border-radius: 22px;
    z-index: 4;
}

.handouts-panel__avatar {
    position: absolute;
    left: 50%;
    top: -42px;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 1);
    background: #ddd;
}

.handouts-panel__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.handouts-panel__title {
    margin: 20px 0 18px;
    text-align: center;
    font-size: clamp(17px, 1.8vw, 20px);
    font-weight: 700;
    line-height: 1.1;
    color: rgba(60, 17, 21, 1);
    text-transform: lowercase;
}

/* Right project card */

.handouts-card {
    position: relative;
    width: min(258px, 100%);
    min-height: 52px;
    border-radius: 12px;
    background: rgba(223, 160, 166, 1);
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 44px;
}

.handouts-card__text {
    font-size: clamp(16px, 1.6vw, 18px);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
}

/* 1100px */

@media (max-width: 1100px) {
    .menu {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .menu-profile {
        width: 100%;
        justify-content: center;
    }

    .composition {
        margin-top: 24px;
    }

    .composition-stage {
        width: min(680px, 100%);
    }

    .lab-panel {
        left: -70px;
        top: 70px;
        width: 300px;
        min-height: 340px;
        padding: 24px;
    }

    .handouts-panel {
        right: -70px;
        top: 300px;
        width: 320px;
    }
}

/* 900px */

@media (max-width: 900px) {
    .large-rectangle {
        width: 92%;
    }

    .small-rectangle {
        width: min(240px, 55%);
    }

    .menu {
        font-size: 16px;
        gap: 18px;
    }

    .composition-stage {
        width: min(560px, 100%);
        aspect-ratio: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .composition-main_photo {
        width: 100%;
        height: auto;
        aspect-ratio: 760 / 540;
        position: relative;
        z-index: 1;
    }

    .lab-panel,
    .handouts-panel {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        width: 100%;
        max-width: 420px;
        min-height: auto;
    }

    .lab-panel {
        order: 2;
    }

    .handouts-panel {
        order: 3;
    }
}

/* 600px */

@media (max-width: 600px) {
    .large-rectangle {
        height: 28px;
        margin-top: 20px;
        border-radius: 10px;
    }

    .small-rectangle {
        height: 14px;
        border-radius: 5px;
    }

    .menu {
        width: 88%;
        margin-top: 20px;
        gap: 14px;
        font-size: 14px;
    }

    .menu-profile {
        flex-direction: column;
        gap: 12px;
    }

    .menu-avatar {
        width: 62px;
        height: 62px;
    }

    .menu-name,
    .menu-group,
    .menu-specialty {
        text-align: center;
    }

    .composition {
        padding: 0 20px 32px;
    }

    .composition-stage {
        width: 100%;
        gap: 18px;
    }

    .composition-main_photo {
        border-width: 3px;
        border-radius: 20px;
    }

    .lab-panel,
    .handouts-panel {
        max-width: 100%;
        border-radius: 24px;
        padding: 22px 18px 20px;
    }

    .lab-panel_title {
        font-size: 22px;
    }

    .lab-panel_subtitle {
        margin: 28px 0 22px;
        font-size: 18px;
    }

    .lab-panel_slider,
    .handouts-panel__content {
        padding: 0 28px;
    }

    .project-card {
        width: 100%;
        min-height: 135px;
        padding: 18px;
    }

    .project-card_name,
    .project-card_text {
        font-size: 18px;
    }

    .lab-panel_arrow {
        width: 24px;
        height: 40px;
    }

    .lab-panel_arrow-left {
        left: 0;
    }

    .lab-panel_arrow-right {
        right: 0;
    }

    .lab-panel_arrow img {
        width: 14px;
        height: 26px;
    }

    .handouts-panel__avatar {
        width: 72px;
        height: 72px;
        top: -36px;
    }

    .handouts-panel__title {
        margin-top: 8px;
        font-size: 18px;
    }

    .handouts-card {
        width: 100%;
        min-height: 48px;
        padding: 0 40px;
    }

    .handouts-card__text {
        font-size: 15px;
    }
}