.hero__description span{
     color: #8f6dd2;
}

.hero__description{
    font-size: 35px;
    font-family: Montserrat Alternates;
    font-weight: 500;
    line-height: 45px;
}

.hero__title{
    font-weight: 500;
    font-size: 64px;
    line-height: 70px;
}

.sign{
    display: flex;
    justify-content: center;
}

.signBtn{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3%;
    width: 300px;
    height: 80px;
    border-radius: 100px;
    background: linear-gradient(to right, #936FD4, #564CAD);
    color: white;
    font-size: 24px;
    text-decoration: none;
}

.hero__img{
    width: 522px;
    height: 482px;
}

/* CONSULTATION */


/* .consultation{
    background-color: #9E99FF2B;
    margin-top: 5%;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
} */

.consultation {
  background-color: #9E99FF2B;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 110px;
  border-radius: 12px;
  height: 800px;
}

.consultation-title{
    font-size: 48px;
    text-align: center;
    background: linear-gradient(to right, #936FD4, #564CAD);
    -webkit-background-clip: text;     /* Обрезает фон по форме текста */
    -webkit-text-fill-color: transparent; /* Делает сам текст "прозрачным" */
    font-weight: 500;
    width: 710px;
    height: 90px;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.card-cons {
  position: relative;
  width: 250px;
  height: 370px;
  /* убираем обычную границу справа */
  border-top: none;
  border-bottom: none;
  border-left: none;
}

.card-cons:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 100px; /* укороченная черта сверху */
  bottom: 100px; /* и снизу */
  right: 0;
  width: 1px;
  background-color: #DDDCFF;
}



.consulting-advantages{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 48px;
    width: 1100px;
    height: 379px;
    margin: 20px auto;

}

/* .card-cons{
    width: 250px;
    height: 370px;
    border: 1px solid #DDDCFF;
    border-right: none;
    border-top: none;
    border-bottom: none;
} */

.card-cons:first-child{
    border-left: none;
}

.card-title{
    text-align: center;
    display: flex;
    justify-self: center;
    margin-top: 100px;
    color: #7A61C4;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 10%;
}

.card-content{
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
}

/* SERVISE */

.servise{
    width: 100%;
    max-width: 70%;
    height: auto;
    align-items: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 0 auto;
    margin-bottom: 200px;
}

.servise-title{
    font-size: 48px;
    text-align: center;
    background: linear-gradient(to right, #936FD4, #564CAD);
    -webkit-background-clip: text;     /* Обрезает фон по форме текста */
    -webkit-text-fill-color: transparent; /* Делает сам текст "прозрачным" */
    font-weight: 500;
    width: 710px;
    height: 90px;
    display: flex;
    justify-content: center;
    margin: 0vh auto;
    margin-top: 20vh;
    margin-bottom: 50px;
}

.servise-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* по желанию: расстояние между карточками */
    margin: 0 auto;
    max-width: 100%;
}

.servise-card{
    display: flex;
    background-color: #fff;
    border: 1px solid black;
    border-radius: 80px;
    padding: 35px;
    width: 400px;
    height: 330px;
    margin: 0vh auto;
    margin: 0 auto;
    box-shadow: 0 0 30px #ABACB3;
}

.servise-description{
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    display: flex;
    align-items: center;     /* по вертикали */
    justify-content: flex-start; /* по горизонтали */
    text-align: center;      /* если много строк, выровняет их по центру */
    height: 100%;            /* чтобы вертикальное центрирование работало */
    width: 100%;
    text-align: left;
}

.servise-img{
    display: flex;
    align-items: center;     /* по вертикали */
    justify-content: center; /* по горизонтали */
    text-align: center;      /* если много строк, выровняет их по центру */
    height: 100%;            /* чтобы вертикальное центрирование работало */
    width: 100%;
}

/* SERVISES */

.services__list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}


.services__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background-color: #fff;
  box-sizing: border-box;
  min-height: 450px; /* или подбери свою высоту */
}


@media (max-width: 550px) {
    .hero__img{
        width: 291px;
        height: auto;
    }
    .hero__title{
        font-size: 32px;
        line-height: 35px;
    }
    .hero__description{
        font-size: 14px;
        line-height: 16px;
        width: 235px;
        margin: 0 auto;
    }
    .signBtn{
        width: 186px;
        height: 50px;
        border-radius: 100px;
        font-size: 14px;
        /* margin-top: 20px; */
    }
    .hero__description {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .consultation-title{
        width: 300px;
        font-size: 25px;
        margin: 0 auto;
        font-weight: 500;
        line-height: 30px;
        margin-left: -40px;
    }
    .consulting-advantages{
        display: flex;
        flex-wrap: wrap; /* Позволяет карточкам переноситься */
        /* gap: 20px; */
        justify-content: center;
        align-items: center;
        background-color: #FFFFFF;
        border-radius: 48px;
        width: 150%;
        max-width: 150%;
        margin: 0px auto;
        /* padding: 200px; */
        box-sizing: border-box;
        height: auto;
        border: none;
        margin-left: -50px;
    }
    .consultation{
        height: auto;
        width: auto;
    }
    .card-cons{
        height: auto;
        border: 1px solid #DDDCFF;
        border-top: block;
        border-bottom: none;
        border-left: none;
        border-right: none;
        margin-bottom: 70px;
    }
    .consultation-efficiency{
        margin-bottom: 100px;
    }
    .servise{
        margin-top: -100px;
    }
    .servise-title{
        width: 280px;
        height: 150px;
    }
    .servise-cards{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        /* margin-left: -45px; */
    }
    .servise-card{
        width: 300px;
        height: 250px;
        overflow: hidden;
    }
    .servise-description{
        font-size: 14px;
        line-height: 16px;
    }
    .servise-img{
        width: 50px;
        height: auto;
    }
    .servise-img img{
        /* border-radius: 100px; */
        /* border-top-right-radius: 120px;
        border-bottom-right-radius: 170px; */
        object-fit: cover;
    }

    .servise-img:nth-child(3){
    margin-left: 20px;
    }

    .servise .signBtn{
        margin-top: 50px;
    }
    .services__card-info{
        width: 330px;
    }
    .servise{
        margin-bottom: 100px;
    }
    .services__list{
        grid-template-columns: repeat(1, 1fr);
    }
    .services__card{
        height: 380px;
        min-height: 0px;
    }
}

#services .services__list > .services__card-six .services__card-link {
    position: relative;
    top: -20px;
}

@media (max-width: 1000px) {
    #services .services__list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-auto-rows: auto;
        gap: 20px;
    }

    #services .services__list > .services__card {
        grid-column: auto;
        min-width: 0;
        min-height: 360px;
        height: auto;
    }

    #services .services__list > .services__card:nth-last-child(2),
    #services .services__list > .services__card:last-child {
        grid-column: auto;
    }

    #services .services__card-info {
        width: 100%;
    }

    #services .services__list > .services__card-six .services__card-link {
        top: 0;
    }
}

@media (max-width: 550px) {
    .hero__img {
        width: min(100%, 230px);
        height: auto;
    }

    .hero__img img {
        display: block;
        width: 100%;
        height: auto;
    }

    .hero__description {
        width: 100%;
        max-width: 330px;
        font-size: 16px;
        line-height: 22px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .header {
        padding: 12px 0 16px;
    }

    .header__mobile-wrap {
        margin-bottom: 10px;
    }

    .hero {
        min-height: calc(100vh - 190px);
        min-height: calc(100svh - 190px);
        padding-bottom: 8px;
        display: flex;
        flex-direction: column;
    }

    .hero__container {
        flex: 1;
        gap: 12px;
        justify-content: center;
    }

    .hero__title {
        margin-bottom: 8px;
    }

    .signBtn {
        margin-top: auto;
    }

    .hero__inner {
        display: flex;
        flex: 1;
        flex-direction: column;
    }

    .hero .sign {
        margin-top: auto;
        padding-top: 10px;
        padding-bottom: 20px;
    }

    .consultation {
        width: 100%;
        height: auto;
        padding: 40px 16px;
        gap: 20px;
        box-sizing: border-box;
    }

    .consultation-title {
        width: 100%;
        height: auto;
        margin: 0 auto;
        font-size: 26px;
        line-height: 1.25;
    }

    .consulting-advantages {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
        padding: 8px;
        border-radius: 24px;
        box-sizing: border-box;
    }

    .card-cons {
        width: auto;
        min-width: 0;
        height: auto;
        min-height: 160px;
        margin: 0;
        padding: 14px 9px;
        border: 1px solid #DDDCFF;
        border-radius: 16px;
        box-sizing: border-box;
    }

    .card-cons::after {
        display: none;
    }

    .card-title {
        justify-content: center;
        margin: 0 0 8px;
        font-size: 15px;
        line-height: 18px;
    }

    .card-content {
        font-size: 12px;
        line-height: 16px;
    }

    .consultation-efficiency {
        margin-bottom: 0;
    }

    .servise {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 80px;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .servise-title {
        width: 100%;
        height: auto;
        margin: 40px auto 24px;
        font-size: 28px;
        line-height: 1.25;
    }

    .servise-cards {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .servise-card {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 210px;
        padding: 24px;
        border-radius: 32px;
        box-sizing: border-box;
    }

    .servise-description {
        flex: 1;
        width: auto;
        height: auto;
        font-size: 15px;
        line-height: 21px;
    }

    .servise-img {
        flex: 0 0 88px;
        width: 88px;
        height: auto;
    }

    .servise-img img {
        display: block;
        max-width: 100%;
        height: auto;
    }

    .top-psychologists__title {
        margin-bottom: 24px;
    }

    #top-psychologists .top-psychologists__single-card {
        padding: 20px 14px;
    }

    #top-psychologists .top-psychologists__single-row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 16px;
    }

    #top-psychologists .top-psychologists__single-image {
        width: 100%;
        max-width: 100%;
    }

    #top-psychologists .top-psychologists__single-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .top-psychologists__single-title {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .top-psychologists__single-text {
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 380px) {
    .servise-card {
        padding: 20px 16px;
    }

    #top-psychologists .top-psychologists__single-card {
        padding: 16px 12px;
    }

    #top-psychologists .top-psychologists__single-image img {
        width: 100%;
        height: auto;
    }
}