@font-face {
    font-family: 'Freigeist-Medium';
    src: url('font/Freigeist-Medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Freigeist-Regular';
    src: url('font/Freigeist-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Freigeist-Bold';
    src: url('font/Freigeist-Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.h1 {
    margin: 20px;
    font-size: 40px;
    color: #787571;
    font-family: 'Freigeist-Regular', sans-serif;
}

.h2 {
    margin: 20px;
    font-size: 43px;
    color: #787571;
    font-family: 'Freigeist-Regular', sans-serif;
}

.parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 50px;
    height: 700px;
}

.div1-olga,
.div1-khan,
.div1-iveta,
.div1-pak,
.div1-shoha{
    grid-row: span 3 / span 3;
    border-radius: 28px;
    height: 700px;              /* теперь равна высоте родителя */
    background-size: cover;    /* лучше чем contain */
    background-position: center;
    background-repeat: no-repeat;
    margin: 20px;
}

.div1-olga {
    background-image: url('images/card-storozhenko.png');
}

.div1-khan {
    background-image: url('images/card-khan.png');
}

.div1-iveta {
    background-image: url('images/card-iveta.png');
}

.div1-pak {
    background-image: url('images/card-pak.png');
}

.div1-shoha{
    background-image: url('images/card-shoha.png');
}

.fio {
    font-size: 25px;
    font-weight: 400;
    color: #787571;
    font-family: 'Freigeist-Medium', sans-serif;
}

.div2 {
    height: auto;
    margin-top: 20px;
}

.div2 p,
.div3 p{
    font-size: 20px;
    color: #AEA39C;
    margin-top: 30px;
    font-family: 'Freigeist-Regular', sans-serif;
}

.div3 {
    grid-column: span 2 / span 2;
    grid-column-start: 2;
    grid-row-start: 2;
    width: 70%;
    height: auto;
}

.education {
    margin-top: 50px;
    font-size: 20px;
    font-weight: 400;
    color: #787571;
    font-family: 'Freigeist-Bold', sans-serif;
}


.div4 {
    grid-column: span 2 / span 2;
    grid-column-start: 2;
    grid-row-start: 3;
    width: 40%;
    justify-self: end;
    align-self: end;
    margin: 20px;
}

.div4 a {
    text-decoration: none;
}

.div5 {
    grid-column-start: 3;
    grid-row-start: 1;
}

.button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    height: 50px;
    width: auto;
    gap: 20px;
    padding: 7px;
    border-radius: 16px;
    border: none;
    background: #EEEAE7;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s ease;
    margin: 10px;
}

.button span {
    margin-left: 10px;
    text-align: left;
    color: #AEA39C;
    font-family: 'Freigeist-Regular', sans-serif;
}

.button img {
    width: 14px;
    height: 14px;
    margin-right: 10px;
}

.info {
    text-align: right;
}

.label {
    font-size: 16px;
    color: #AEA39C;
    margin: 20px 20px 0 20px;
}

.value {
    font-size: 22px;
    font-weight: 600;
    color: #787571;
    margin: 0 20px 20px 20px;
}

.slider {
    width: 97%;
    height: 600px;
    border: 2px solid #787571;
    border-radius: 26px;
    position: relative;
    overflow: hidden;
    background: #fafafa;
    padding: 30px 70px 55px;
    margin: 20px;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
    width: 100%;
    height: 100%;
}

.slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    gap: 28px;
    align-items: center;
}

.slide img {
    width: 40%;
    height: 400px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.doc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #D2CAC5;
    background: white;
    color: #D2CAC5;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}

.doc-nav:hover {
    background: #f4f4f4;
    color: #888;
}

.prev {
    left: 16px;
}

.next {
    right: 16px;
}

.dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 36px;
    height: 5px;
    border-radius: 10px;
    background: #d7d1c7;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #7a7773;
}

.mobile{
    display: none;
}

@media (max-width: 1024px) {
    .mobile{
        display: block;
    }

    .desktop{
        display: none;
    }

    .h1, .h2 {
        font-size: 26px;
        margin: 16px;
        text-align: center;
        font-family: 'Freigeist-Regular', sans-serif;
    }

    .parent {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 0;
        margin-left: 20px;
    }

    .div1-olga,
    .div1-pak,
    .div1-shoha,
    .div1-khan,
    .div1-iveta {
        height: 380px;
        margin: 16px 16px 16px 0;
        border-radius: 20px;
    }

    .div2 {
        margin: 0 16px 0 0;
    }

    .fio {
        font-size: 20px;
        margin-top: 10px;
    }

    .div2 p,
    .div3 p {
        font-size: 16px;
        margin-top: 16px;
        line-height: 1.4;
    }

    .div5 {
        display: flex;
        justify-content: space-between;
        margin: 10px 16px 10px 0;
    }

    .info {
        text-align: left;
    }

    .label {
        font-size: 16px;
        margin: 0;
    }

    .value {
        font-size: 19px;
        margin: 4px 0 0 0;
    }

    .div3 {
        width: auto;
        margin: 0 16px 0 0;
    }

    .education {
        font-size: 20px;
        margin-top: 20px;
    }

    .div4 {
        width: 100%;
        margin: 20px;
        justify-self: stretch;
    }

    .button {
        width: 100%;
        height: 48px;
        font-size: 16px;
    }


    .premium-slider {
        margin: 20px 0 0 0;
    }

    .slider-track {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding: 0 20px;
        -webkit-overflow-scrolling: touch;
    }

    .slider-track::-webkit-scrollbar {
        display: none;
    }

    .slide {
        flex: 0 0 85%;
        scroll-snap-align: center;
        height: 600px;
        margin-bottom: 20px;
    }

    .slider-indicator {
        display: flex;
        justify-content: center;
        gap: 6px;
    }

    .slider-indicator span {
        width: 40px;
        height: 3px;
        background-color: #E6E1DD;
        border-radius: 2px;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .slider-indicator span.active {
        background-color: #787571;
    }

    .services-slider .slider-track {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding: 0 20px;
    }

    .services-slider .slider-track::-webkit-scrollbar {
        display: none;
    }

    .services-slider .slide {
        min-width: 700px;

        flex: 0 0 85%;
        scroll-snap-align: center;

        height: 300px; /* можно подстроить под карточки */
    }

    .services-slider .slide > div {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .certificate {
        width: 100%;
        height: 100%;
        background-size: contain;  /* или cover */
        background-position: center;
        background-repeat: no-repeat;
    }
}