.thx-page {
    display: flex;
    flex-direction: column;
    font-family: "Manrope", sans-serif;
    gap: clamp(1rem, 0.8846rem + 0.5128vw, 1.5rem);
}

.thx-page__head {
    align-items: flex-start;
    align-items: stretch;
    backdrop-filter: blur(9.149999618530273px);
    background: rgba(18, 122, 141, 0.72);
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    gap: clamp(1rem, 0.8846rem + 0.5128vw, 1.5rem);
    overflow: hidden;
}

.thx-page__photo {
    flex: 0 0 auto;
    width: 240px;
}

.thx-page__photo-img {
    display: block;
    height: auto;
    width: 100%;
}

.thx-page__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: clamp(0.5rem, 0.3846rem + 0.5128vw, 1rem);
    justify-content: center;
    min-width: 0;
    padding: clamp(1rem, 0.4644rem + 0.8368vw, 1.5rem)
        clamp(1rem, 0.4644rem + 0.8368vw, 1.5rem)
        clamp(1rem, 0.4644rem + 0.8368vw, 1.5rem) 0;
}

.thx-page__name {
    -webkit-box-orient: vertical;
    color: #e2eff4;
    display: -webkit-box;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.5rem, 1.3846rem + 0.5128vw, 2rem);
    font-weight: 400;
    -webkit-line-clamp: 1;
    line-height: 130%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thx-page__department {
    -webkit-box-orient: vertical;
    color: #e2eff4;
    display: -webkit-box;
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 500;
    -webkit-line-clamp: 2;
    line-height: 130%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thx-page__description {
    -webkit-box-orient: vertical;
    color: #e2eff4;
    display: -webkit-box;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 500;
    -webkit-line-clamp: 7;
    line-height: 130%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thx-page__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.thx-item {
    align-items: stretch;
    background: #f4fafd;
    border-radius: 4px;
    box-shadow: 0 -2px 9.8px 0 rgba(18, 122, 141, 0.26);
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 16px;
    transition: box-shadow 0.3s ease;
}

.thx-item:hover {
    box-shadow: 0 2px 16px 0 rgba(18, 122, 141, 0.35);
}

.thx-item__image-wrapper {
    aspect-ratio: 150 / 212;
    border-radius: 4px;
    cursor: pointer;
    flex: 0 0 auto;
    height: fit-content;
    overflow: hidden;
    position: relative;
    width: 150px;
}

.thx-item__image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.thx-item__zoom-icon {
    bottom: 10px;
    height: 30px;
    pointer-events: none;
    position: absolute;
    right: 10px;
    transition: transform 0.3s ease;
    width: 30px;
    z-index: 2;
}

.thx-item__zoom-icon svg {
    display: block;
    height: 100%;
    width: 100%;
}

.thx-item__image-wrapper:hover .thx-item__zoom-icon {
    transform: scale(1.167);
}

.thx-item__image-wrapper:active .thx-item__zoom-icon {
    transform: scale(0.9);
}

.thx-item__content {
    align-items: flex-start;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 16px 16px 16px 0;
}

.thx-item__name {
    -webkit-box-orient: vertical;
    color: #127a8d;
    display: -webkit-box;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.25rem, 1.1923rem + 0.2564vw, 1.5rem);
    font-weight: 600;
    -webkit-line-clamp: 2;
    line-height: 130%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: balance;
    text-wrap: pretty;
}

.thx-item__text {
    color: #262626;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1rem, 0.9423rem + 0.2564vw, 1.25rem);
    font-weight: 400;
    line-height: 130%;
    max-width: 100%;
    text-wrap: balance;
    text-wrap: pretty;
}

.thx-page__footer {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 20px;
    min-height: 40px;
    position: relative;
}

.thx-page__back {
    align-items: center;
    color: #127a8d;
    display: inline-flex;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.25rem, 1.1923rem + 0.2564dvw, 1.5rem);
    font-weight: 400;
    gap: 16px;
    left: 0;
    line-height: 140%;
    position: absolute;
    text-decoration: none;
    top: 50%;
    transform: translateY(-50%);
}

.thx-page__back svg {
    display: block;
    transition: transform 0.3s ease;
}

.thx-page__back:hover svg {
    transform: rotate(-30deg);
}

.thx-modal {
    display: none;
    inset: 0;
    position: fixed;
    z-index: 10000;
}

.thx-modal--active {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.thx-modal__overlay {
    background: rgba(0, 0, 0, 0.6);
    inset: 0;
    position: absolute;
}

.thx-modal__content {
    align-items: center;
    display: flex;
    justify-content: center;
    max-height: 90dvh;
    max-width: 90dvw;
    position: relative;
}

.thx-modal__image-wrapper {
    display: inline-block;
    max-height: 90dvh;
    max-width: 90dvw;
    position: relative;
}

.thx-modal__image-icon {
    bottom: 10px;
    cursor: pointer;
    height: 30px;
    pointer-events: auto;
    position: absolute;
    right: 10px;
    transition: transform 0.3s ease;
    width: 30px;
    z-index: 2;
}

.thx-modal__image-icon:hover {
    transform: scale(1.167);
}

.thx-modal__image-icon:active {
    transform: scale(0.9);
}

.thx-modal__image-icon svg {
    display: block;
    height: 100%;
    width: 100%;
}

.thx-modal__image {
    display: block;
    height: auto;
    max-height: 90dvh;
    max-width: 90dvw;
    object-fit: contain;
    width: auto;
}

@media (max-width: 768px) {
    .thx-page__head {
        flex-direction: column;
    }

    .thx-page__photo {
        max-width: 100%;
        width: 100%;
    }

    .thx-page__info {
        padding: 0 16px 16px 16px;
    }

    .thx-page__name {
        -webkit-box-orient: vertical;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .thx-page__department {
        -webkit-box-orient: vertical;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .thx-page__description {
        -webkit-box-orient: unset;
        display: unset;
        -webkit-line-clamp: unset;
        overflow: unset;
        text-overflow: unset;
    }

    .thx-item {
        flex-direction: column;
        gap: 16px;
    }

    .thx-item__image-wrapper {
        align-self: center;
        max-width: 200px;
        width: 100%;
    }

    .thx-item__content {
        padding: 0;
    }

    .thx-item__name {
        display: -webkit-box;
        -webkit-line-clamp: 5;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .thx-page__footer {
        align-items: center;
        flex-direction: column;
        gap: 16px;
        position: static;
    }

    .thx-page__back {
        align-self: flex-start;
        order: 1;
        position: static;
        transform: none;
    }

    .thx-modal__content {
        max-height: 95dvh;
        max-width: 95dvw;
    }

    .thx-modal__image-wrapper {
        max-height: 95dvh;
        max-width: 95dvw;
    }

    .thx-modal__image {
        max-height: 95dvh;
        max-width: 95dvw;
    }
}
