.section__main__guest, .block__mdr__main__guest {
    width: 100%;
    max-width: 100%;
    margin: auto;
}

.section__main__guest .mdr__mp__section__title,
.section__mdr__hm .mdr__mp__section__title {
    margin-bottom: 50px;
}


.section__main__guest {
    padding: 120px 0 60px;
}

.section__mdr__hm {
    padding: 60px 0;
}

.block__mdr__main__guest {
    height: 830px;
    background-image: url('../img/mdr_bg_guest.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
	cursor: pointer;
}

.block__mdr__main__guest:hover {
	opacity: 0.75;
}

.block__mdr__main__guest__block {
    max-width: 1400px;
    width: 100%;
    margin: auto;
    padding: 72px 60px;
    display: flex;
    align-items: center;
    gap: 101px;
}

.main__guest__side__right {
    width: 541px;
    height: 587px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.main__guest__side__right__l1 {
    width: 100%;
    height: auto;
}

.main__guest__side__right__l1 h3 {
    font-family: var(--third-famil);
    font-weight: 600;
    font-size: 48px;
    line-height: 123%;
    text-transform: uppercase;
    color: #faf9f7;
    margin-bottom: 30px;
}

.main__guest__side__right__l1 .main__guest__descr {
    max-width: 370px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 134%;
    letter-spacing: -0.02em;
    color: #faf9f7;
}

.main__guest__side__right__l2 {
    width: 100%;
    height: auto;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 30px;
    line-height: 120%;
    text-transform: uppercase;
    color: #faf9f7;
}

.main__guest__side__right__l2__bold {
    width: 100%;
    height: auto;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 32px;
    line-height: 120%;
    text-transform: uppercase;
    color: #faf9f7;
	margin-bottom: 10px;
}

.main__guest__side__right__l2 span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 30px;
    line-height: 120%;
    text-transform: none;
    color: #faf9f7;
}

.main__guest__side__left {
    max-width: 580px;
    width: 100%;
    max-height: 687px;
    height: 687px;
    /* padding-top: 118%; */
    padding-top: 55%;
    border-radius: 76px;
    background-image: url('../img/nelson.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.section__main__guest .mdr__mp__section__title {
    margin-bottom: 60px;
}

.section__mdr__hm {
    padding-top: 60px;
}

.block__mdr__hm__headliners,
.block__mdr__hm__masters {
    max-width: 1320px;
    width: 100%;
    margin: auto;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    /* flex-direction: column; */
    gap: 30px;
}

.mdr__hm__headliner__item {
    max-width: 420px;
    width: 31.82%;
    height: 517px;
}

.mdr__hm__headliner__item__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* height: 420px; */
    margin-bottom: 20px;
	border-radius: 45px;
	overflow: hidden;
}

.mdr__hm__headliner__item__img img {
	width: 100%;
	height: 100%;
}

.mdr__hm__headliner__item__name {
    font-family: var(--third-family);
    font-weight: 700;
    font-size: 24px;
    line-height: 123%;
    text-align: center;
    color: #5a5d83;
    margin-bottom: 5px;
}

.mdr__hm__headliner__item__descr {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 134%;
    letter-spacing: -0.02em;
    text-align: center;
    color: #5a5d83;
}

.mdr__hm__master__item {
    width: 419px;
    height: 115px;
    display: flex;
    align-items: center;
    gap: 21px;
}

.mdr__hm__master__item__info {
    width: 283px;
}

.mdr__hm__master__item__img {
    width: 115px;
    height: 115px;
    border-radius: 10px;
}

.mdr__hm__master__item__img img {
	width: 100%;
	height: 100%;
}

.mdr__hm__master__item__name {
    font-family: var(--third-family);
    font-weight: 700;
    font-size: 24px;
    line-height: 123%;
    color: #5a5d83;
}

.mdr__hm__master__item__descr {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 134%;
    letter-spacing: -0.02em;
    color: #5a5d83;
}

.mdr__hm__headliner__item__img, .mdr__hm__master__item__img {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/*-----ШАБЛОН ХЕДЛАЙНЕРА И МАСТЕРА-----*/
.section__hm__item {
    max-width: 1282px;
    width: 100%;
    margin: auto;
    padding: 120px 0;
}

.hm__item__l1 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.hm__item__l2 {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 50px;
}

.hm__item__title {
    font-family: var(--third-family);
    font-weight: 600;
    font-size: 40px;
    line-height: 123%;
    text-transform: uppercase;
    color: #5a5d83;
    margin-bottom: 22px;
}

.hm__item__content, .hm__item__content p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #0f172a;
}

.hm__item__l1__side__left {
    max-width: 700px;
    width: 100%;
}

.hm__item__l1__side__right {
    border-radius: 170px;
    width: 420px;
    aspect-ratio: 1 / 1;
    /* height: 420px; */
}

.hm__item__l1__side__right img {
    width: 100%;
    height: auto;
}


.hm__item__card {
    border-radius: 10px;
    padding: 17px;
    width: 300px;
    height: auto;
    background: #5a5d83;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hm__card__item__place, .hm__card__item__time {
    width: fit-content;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 143%;
    text-align: center;
    color: #0f172a;

    border: 0.87px solid #fcfcfc;
    border-radius: 5px;
    padding: 5px 10px;
    box-shadow: 0 5px 17px 0 rgba(30, 54, 72, 0.08);
    background: #fff;
}

.hm__card__item__title {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 120%;
    color: #fff;
    margin-bottom: 5px;
}

.hm__card__item__desc {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 13px;
    line-height: 120%;
    color: #fff;
}

.hm__card__item__subautor__photo {
    border-radius: 5px;
    width: 65px;
    height: 65px;
}

.hm__card__item__subautor__photo img {
    width: 100%;
    height: 100%;
}

.hm__card__item__subautor__name {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 9px;
    line-height: 123%;
    text-transform: uppercase;
    color: #fff;
}

.hm__card__item__subautor__info {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 8px;
    line-height: 134%;
    letter-spacing: -0.02em;
    color: #fff;
}

.hm__item__card__l1 {
    display: flex;
    align-items: flex-start;
    gap: 7.85px;
}

.hm__item__card__l3 {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media(max-width: 840px) and (min-width: 320px) {
    .hm__item__l1 {
        flex-direction: column-reverse;
        gap: 50px;
    }

    .hm__item__l1__side__left, .hm__item__l1__side__right, .hm__item__l2 {
        max-width: 95%;
        width: 95%;
        margin: auto;
    }

    .hm__item__l1__side__right img {
        width: 100%;
    }

    .block__mdr__main__guest {
        height: auto;
    }

    .block__mdr__main__guest__block {
        flex-direction: column;
        justify-content: center;
        padding: 72px 15px;
    }

    .mdr__hm__master__item, .main__guest__side__right {
        width: 95%;
        margin: auto;
    }

    .main__guest__side__left {
        max-width: 95%;
        width: 95%;
        aspect-ratio: 1 / 1.5;
        height: auto;
        max-height: none;
        border-radius: 20px
    }

    .main__guest__side__right {
        height: auto;
        text-align: center;
    }

    .main__guest__side__right__l1 .main__guest__descr {
        margin: 0 auto 30px;
    }

    .mdr__hm__headliner__item {
        height: auto;
        width: calc(50% - 10px);
    }

    .block__mdr__hm__headliners {
        gap: 10px;
    } 

    .mdr__hm__headliner__item__name, .mdr__hm__master__item__name {
        font-size: 16px;
    }

    .mdr__hm__headliner__item__descr, .mdr__hm__master__item__descr {
        font-size: 12px;
    }

    .mdr__hm__master__item__info {
        width: 50%;
    }
}