/*===============  ZIYOLILAR SAHIFASI  ===============*/

.hero__ziyolilar{
    height: 420px;
}
.hero__ziyolilar .h1{
    font-size: 72px;
    line-height: 78px;
}

/* Сетка карточек: по 2 в ряд */
.ziyolilar__items{
    margin-top: 20px;
    margin-bottom: 100px;
}
.ziyolilar__grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media all and (max-width: 1400px) {
	.ziyolilar__grid{
		grid-template-columns: repeat(3, 1fr);
	}

}

@media all and (max-width: 1100px) {
	.ziyolilar__grid{
		grid-template-columns: repeat(2, 1fr);
	}

}

/* --- Вариант со скроллом вместо сетки: добавить класс ziyolilar__grid--scroll на .ziyolilar__grid --- */
.ziyolilar__grid--scroll{
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
}
.ziyolilar__grid--scroll .ziyoli__card{
    flex: 0 0 360px;
    scroll-snap-align: start;
}

/* Карточка */
.ziyoli__card{
    position: relative;
    display: block;
    width: 100%;
    height: 420px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background-color: #E2E4E7;
    font: inherit;
    text-align: left;
    transition: transform .4s ease, box-shadow .4s ease;
}
.ziyoli__card:hover{
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.ziyoli__card-img{
    position: absolute;
    inset: 0;
    display: block;
}
.ziyoli__card-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.ziyoli__card:hover .ziyoli__card-img img{
    transform: scale(1.06);
}

.ziyoli__card-overlay{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 65%);
}
.ziyoli__card-name{
    color: #FFF;
    font-family: 'SM';
    font-size: 32px;
    line-height: 1.15;
}
.ziyoli__card-position{
    color: rgba(255,255,255,.75);
    font-family: 'SR';
    font-size: 18px;
}

/* Адаптация сетки */
@media (max-width: 768px){
    .ziyolilar__grid{
        grid-template-columns: 1fr;
    }
    .ziyoli__card{
        height: 340px;
    }
    .hero__ziyolilar{
        height: 320px;
    }
    .hero__ziyolilar .h1{
        font-size: 42px;
        line-height: 48px;
    }
}

/*===============  MODAL  ===============*/
.ziyoli__modal{
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}
.ziyoli__modal.is-open{
    visibility: visible;
    opacity: 1;
}

.ziyoli__modal-overlay{
    position: absolute;
    inset: 0;
    background: rgba(22,22,22,.75);
}

.ziyoli__modal-content{
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 1200px;
    width: calc(100% - 40px);
    max-height: 85vh;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(.94);
    transition: transform .3s ease;
}
.ziyoli__modal.is-open .ziyoli__modal-content{
    transform: scale(1);
}

.ziyoli__modal-img{
    flex: 0 0 42%;
    max-width: 42%;
}
.ziyoli__modal-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ziyoli__modal-text{
    flex: 1 1 auto;
    padding: 50px;
    overflow-y: auto;
}
.ziyoli__modal-name{
    color: #161616;
    font-family: 'SB';
    font-size: 40px;
    margin-bottom: 10px;
}
.ziyoli__modal-position{
    display: block;
    color: rgba(22,22,22,.5);
    font-family: 'SR';
    font-size: 20px;
    margin-bottom: 24px;
}
.ziyoli__modal-bio{
    color: #161616;
    font-family: 'SR';
    font-size: 20px;
    line-height: 1.5;
    white-space: pre-line;
}

.ziyoli__modal-close{
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #F4F4F4;
    color: #161616;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .3s ease;
}
.ziyoli__modal-close:hover{
    background: #161616;
    color: #fff;
}

@media (max-width: 768px){
    .ziyoli__modal-content{
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
        width: calc(100% - 24px);
    }
    .ziyoli__modal-img{
        flex: 0 0 auto;
        max-width: 100%;
        height: 280px;
    }
    .ziyoli__modal-text{
        padding: 30px 24px;
    }
    .ziyoli__modal-name{
        font-size: 28px;
    }
    .ziyoli__modal-bio{
        font-size: 17px;
    }
}

.header__menu ul {
	align-items: center;
}

.header__menu #menu-item-946 a,
.header__menu #menu-item-982 a,
.header__menu #menu-item-985 a{
	font-size: 0;
	min-height: 40px;
	width: 100px;
	background: url(../img/ziyolilar-y.png) 50% no-repeat;
	background-size: contain;
	display: block;
}

/*===============  PDF DOWNLOAD BUTTON  ===============*/
.ziyolilar__pdf{
    display: flex;
    justify-content: center;
    margin: 20px 0 100px;
}
 
.pdf-book-btn{
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 44px;
    border-radius: 100px;
    background-color: #161616;
    transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.pdf-book-btn:hover{
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.2);
    background-color: #000;
}
 
.pdf-book-btn__icon{
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .4s ease;
}
.pdf-book-btn:hover .pdf-book-btn__icon{
    transform: rotate(-8deg) scale(1.08);
}
.pdf-book-btn__icon svg{
    width: 100%;
    height: 100%;
}
 
.pdf-book-btn__text{
    color: #FFF;
    font-family: 'SM';
    font-size: 24px;
}
 
@media (max-width: 768px){
    .pdf-book-btn{
        width: 100%;
        justify-content: center;
        padding: 20px 24px;
        text-align: center;
    }
    .pdf-book-btn__text{
        font-size: 18px;
    }
    .pdf-book-btn__icon{
        width: 36px;
        height: 36px;
    }
}