.speaker {
    position: relative;
    /* cursor: url('/public/cursors/pointer.cur'), auto; */
    display: flex;
    flex: 1;
    align-self: stretch;
    width: 100%;
    pointer-events: none;
}

.speaker:hover {
    opacity: 0.95;
}

.speaker__content {
    border-radius: 20px;
    border: 10px solid white;
    padding-bottom: 10px;
    /*padding: 10px 10px 20px 10px;*/
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    box-shadow: 1px 1px 6px 3px rgba(16, 24, 40, 0.1);
}

.speaker__arrow-icon {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    /*transition: all 250ms;*/
}

.speaker__arrow-icon-view {
    opacity: 1;
}

.speaker__image {
    width: 100%;
    overflow: hidden;
    height: 281px;
    border-radius: 20px;
}

.speaker__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker__name {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 118%;
    letter-spacing: 0.02em;
    color: #000;
}

.speaker__position {
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 13px;
    line-height: 123%;
    letter-spacing: 0.02em;
    color: #000;
}

.speaker__company {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 12px;
    line-height: 133%;
    letter-spacing: 0.02em;
    color: #44247a;
    margin-top: auto;
}

.about__speakers {
    margin-top: auto;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 12px;
    line-height: 158%;
    letter-spacing: 0.02em;
    color: #fff;
    width: 100%;

    border-radius: 20px;
    padding: 20px;
    background: #9e62fe;
    border: none;
    display: none;
}

.speaker-modal {
    display: flex;
    flex-direction: column;
}

.speakers-modal__header {
    /*max-width: 303px;*/
    display: flex;
    gap: 24px;
}

.speakers-modal-header__image {
    max-width: 115px;
    max-height: 115px;
    min-width: 115px;
    min-height: 115px;
    overflow: hidden;
    border-radius: 20px;
}

.speakers-modal-header__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speakers-modal-header__text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    max-width: 60%;
    gap: 8px;

    h3 {
        font-family: var(--font-family);
        font-weight: 700;
        font-size: 24px;
        line-height: 117%;
        letter-spacing: 0.01em;
        color: #000;
    }

    p {
        /*margin-top: 20px;*/
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 12px;
        line-height: 135%;
        letter-spacing: 0.02em;
        color: #000;
    }
    p:last-child {
        color: #44247a;
    }
}

.speakers-modal__events-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 175%;
    letter-spacing: 0.02em;
    color: #000;
    margin-top: 32px;
    margin-bottom: 12px;
    display: none;
}

.speakers-modal__events {
    display: flex;
    flex-direction: column;
    gap: 12px;
    display: none;
}

.speakers-modal-event {
    border-radius: 10px;
    padding: 15px 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fff;

    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 135%;
    letter-spacing: 0.02em;
    color: #502974;
}

.speakers-modal-event__header {
    display: flex;
    gap: 8px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 158%;
    letter-spacing: 0.02em;
    color: #502974;
}

.speakers-modal-event-heart {
    margin-left: auto;
}

.speakers-modal-header__text h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (hover: hover) and (pointer: fine) {
    .speaker:hover {
        opacity: 0.95;
    }

    .speaker:hover .speaker__content {
        .speaker__name {
            opacity: 0;
        }

        .speaker__position {
            opacity: 0;
        }

        .speaker__company {
            opacity: 0;
        }

        .about__speakers {
            position: absolute;
            bottom: 20px;
            left: 10px;
            width: calc(100% - 20px);
            display: block;
        }
    }
}

@media (max-width: 850px) {
    .speaker__content {
        border-width: 5px;
    }

    .speaker__name {
        font-size: 12px;
    }

    .speaker__position {
        font-size: 12px;
    }

    .speaker__company {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .speakers-modal__header {
        gap: 12px;
    }
}

@media (max-width: 580px) {
    .speaker__image {
        height: 220px;
    }
}

@media (max-width: 460px) {
    .speaker__image {
        height: 163px;
    }
}

@media (max-width: 420px) {
    .speakers-modal-header__text {
        max-width: 55%;
    }
}
