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

body {
    margin: 0;
    padding: 0;
}

.main-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.div1 {
    text-align: left;
    margin: 20px 20px 20px 20px;
}

.div1 p {
    color: #787571;
    font-family: 'Freigeist-Regular', sans-serif;
    font-size: 38px;
    margin: 0 0 0 0;
}

.div3 {
    background-image: url('images/main-clinic.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 26px 26px 26px 26px;
    margin: 20px 20px 20px 20px;
    width: auto;
    height: 600px;
    font-family: 'Freigeist-Regular', sans-serif;
    position: relative;
}

.div2 {
    background-image: url('images/clinic-img.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 26px 26px 26px 26px;
    margin: 20px 20px 20px 20px;
    width: auto;
    height: 700px;
    font-family: 'Freigeist-Regular', sans-serif;
    position: relative;
}

.div4{
    background-image: url('images/clinic-edge.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 26px 26px 26px 26px;
    margin: 20px 20px 20px 20px;
    width: auto;
    height: 450px;
    font-family: 'Freigeist-Regular', sans-serif;
    position: relative;
}


.div5{
    font-family: 'Freigeist-Regular', sans-serif;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 20px;
}

.services-title {
    text-align: left;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    width: auto;
}

.services-title p{
    font-size: 18px;
    letter-spacing: 4px;
    color: #AEA39C;
    margin: 0;
    font-family: 'Freigeist-Regular', sans-serif;
}

.services-title h1{
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #787571;
    margin: 0;
    font-family: 'Freigeist-Regular', sans-serif;
}

.services-button {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 10px;
    height: 40px;
    width: 70%;
    margin-left: auto;
    border-radius: 13px;
    cursor: pointer;
    font-family: 'Freigeist-Regular', sans-serif;
    font-size: 18px;
    background-color: #EEEAE7;
    align-self: end;
    margin-bottom: 30px;
}

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

.services-button img {
    width: 14px;
    height: 14px;
}

.div6{
    display: grid;
    grid-template-columns: 1.3fr 1.7fr;
    grid-template-rows: repeat(1, 1fr);
    gap: 8px;
}

.edge-main{
    text-align: left;
    padding-bottom: 0.5rem;
    width: auto;
    margin: 20px;
}

.edge-text{
    text-align: left;
    width: auto;
}

.edge-text p{
    font-family: 'Freigeist-Regular', sans-serif;
    color: #AEA39C;
    font-size: 24px;
}

.edge-text h1{
    font-family: 'Freigeist-Medium', sans-serif;
    color: #787571;
    font-size: 28px;
    font-weight: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.clinic-main {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(2, 1fr);
    margin: 50px 20px 0 20px;
}

.clinic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.clinic-left .h1,
.clinic-center .h1,
.clinic-right .h1 {
    font-family: 'Freigeist-Regular', sans-serif;
    color: #787571;
    font-size: 32px;
    margin: 0 0 10px 0;
}

.clinic-left p,
.clinic-center p,
.clinic-right p {
    font-family: 'Freigeist-Regular', sans-serif;
    font-size: 20px;
    font-weight: 1;
    color: #AEA39C;
    margin: 0;
    line-height: 0.9;
}

.custom-line {
    border: none;
    height: 1px;
    background-color: #AEA39C;
    width: 90%;
    margin: 15px 0; /* Уменьшаем отступы вокруг линии */
}

.clinic-left {
    text-align: left;
}

.clinic-center {
    text-align: center;
}

.clinic-center .custom-line{
    margin-left: 20px;
    margin-right: 0;
}

.clinic-right {
    text-align: right;
}

.clinic-right .custom-line {
    margin-left: auto; /* Автоматический отступ слева прижимает элемент вправо */
    margin-right: 0;   /* Обнуляем правый отступ */
}

.doctor-main{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 12px;
    margin: 20px 20px 0 20px;
    max-height: 800px;
}

.doctor{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    max-height: 800px;
}

.doctor-khan,
.doctor-iveta,
.doctor-olga,
.doctor-pak{
    border-radius: 28px;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

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

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

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

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

.doctor-khan span,
.doctor-iveta span,
.doctor-olga span,
.doctor-pak span{
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: auto;

    background-color: #ffffff;
    opacity: 0.67;
    border-radius: 14px;
    padding: 12px 16px;

    color: #787571;
    font-size: 16px;

    text-align: left;
    display: block;
    box-sizing: border-box;
    font-family: 'Freigeist-Regular', sans-serif;
}

.doctor-text{
    height: 200px;
}

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

.doctor-text p {
    color: #AEA39C;
    font-size: 20px;
    font-weight: 1;
    margin: 10px 0 0 0;
    /*line-height: 1.1;*/
    text-align: justify;
    font-family: 'Freigeist-Regular', sans-serif;
}

.mobile{
    display: none;
}

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

    .desktop{
        display: none;
    }

    .main-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
        padding: 20px;
    }

    .div1 {
        margin: 0;
        text-align: center;
    }

    .div1 p {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .div3 {
        height: 420px;
        margin: 20px;

        border-radius: 28px;
    }

    .div7 {
        background-image: url('images/clinic-div7.png');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center;
        border-radius: 28px;
        height: 350px;
        margin: 30px 20px 30px 20px;
        width: auto;
        font-family: 'Freigeist-Regular', sans-serif;
        position: relative;
    }

    .div8 {
        background-image: url('images/clinic-div8.png');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center;
        border-radius: 28px;
        height: 600px;
        margin: 20px 20px 20px 20px;
        width: auto;
        font-family: 'Freigeist-Regular', sans-serif;
        position: relative;
    }

    .clinic {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 10px;
    }

    .clinic-left, .clinic-center, .clinic-right {
        text-align: left;
    }

    .clinic-center .custom-line{
        margin-left: auto;
        margin-right: 0;
    }

    .custom-line {
        width: 100%;
    }

    .doctor-main {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding-left: 20px;
        scroll-snap-type: x mandatory;
    }

    .doctor-main::-webkit-scrollbar {
        display: none;
    }

    .doctor {
        min-width: 280px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .doctor-khan, .doctor-iveta, .doctor-olga, .doctor-pak {
        min-height: 420px;
    }

    .doctor-khan span, .doctor-iveta span, .doctor-olga span, .doctor-pak span{
        font-size: 14px;
    }

    .doctor-text{
        height: auto;
    }

    .doctor-text p {
        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;
    }

    .doctor-button{
        display: none;
    }

    .clinic-main {
        height: 400px;
    }

    .clinic-text,
    .main-text{
        text-align: center;
        margin: 0;
    }

    .services-title-mobile {
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .services-title-mobile p {
        font-family: 'Freigeist-Regular', sans-serif;
        font-size: 20px;
        font-weight: 400;
        color: #AEA39C;
        margin: 0;
        text-align: center;
        word-break: break-word;
        hyphens: auto;
        display: inline-block;
        max-width: 90%;
    }

    .div5-mob{
        font-family: 'Freigeist-Regular', sans-serif;
        display: block;
        gap: 8px;
        margin: 20px 20px 20px 20px;
    }

    .services-title-mob {
        text-align: center;
        padding-bottom: 0.5rem;

    }

    .services-title-mob h1{
        font-size: 32px;
        font-weight: 400;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #787571;
        margin: 0;
        font-family: 'Freigeist-Regular', sans-serif;
    }

    .services-button-mob {
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 0 10px;
        height: 50px;
        width: 100%;
        margin-left: auto;
        border-radius: 17px;
        cursor: pointer;
        font-family: 'Freigeist-Regular', sans-serif;
        font-size: 20px;
        background-color: #EEEAE7;
    }

    .services-button-mob span {
        text-align: left;
        color: #787571;
        font-family: 'Freigeist-Regular', sans-serif;
    }

    .services-button-mob img {
        width: 14px;
        height: 14px;
    }
}