.designers-section {
    margin: 25px 0 40px 0;
    /*margin: 38px 0 40px 0;*/
    padding: 0 12px;
}

.card__navbar {
    list-style: none;
}

.card__navbar > li {
    display: flex;
    align-items: center;
}

.card__navbar > li > a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--card-border-color);
}

.card__navbar > li > a:hover {
    color: var(--link-color-hover);
}

.card__navbar > li:not(:first-child):before {
    content: "";
    background-color: var(--card-border-color);
    width: 6px;
    height: 1px;
    margin: 0 10px;
    display: inline-block;
}

.application__btn {
    width: 318px;
    height: 34px;
    margin: 0 40px 0 0;
}

.application__btn .btn-main-styles {
    border-radius: 3px;
    max-width: none;
}

/*.wrap-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}*/

/* =================================== Designers card ================================== */
.designers .wrap {
    padding: 10px;
    border-radius: 5px;
}

.design-card {
    font-size: 15px;
    line-height: normal;
    margin-bottom: 30px;
}

.designer__fio {
    font-size: 20px;
}

.designer__geo span {
    font-weight: 600;
}

.btn-private-sms {
    background-color: #fff !important;
    border: 2px solid var(--main-color) !important;
    color: var(--main-color) !important;
}

.btn-private-sms:hover {
    background-color: var(--btn-private-hover) !important;
}

/* =================================== Designers card ================================== */
/* =================================== Designers page ================================== */
/* =================================== Designer page ================================== */
.btn-main-styles, .sidebar__underline {
    max-width: 255px;
}

/* ================================ section card designer ================================== */
section.designer__main {
    margin: 30px 0 80px 0;
    justify-content: space-between;
}

.designers-section {
    font-size: 15px;
    font-weight: 400;
    line-height: normal;
}

.designer__info {
    display: flex;
    flex-direction: row;
}

.designer__info_card {
    max-width: 467px;
    margin: 0 41px 0 0;
}

.designer__info_card img {
    max-width: 467px;
    margin-bottom: -131px; /* Примерное значение для обрезания нижней части */
}

.title-designer {
    font-size: 25px;
    font-weight: 700;
    line-height: normal;
}

.title-designer-middle {
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
}

.about-designer {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 131px;
    border-radius: 5px;
    background: #FFF;
    box-shadow: 0px 0px 44px 0px rgba(0, 0, 0, 0.05);
    padding: 20px 30px 16px;
    background-image: url(../img/boundingbox.svg);
    background-position-x: 94%;
    background-position-y: 42%;
    background-repeat: no-repeat;
}

.about-designer .icon-svg {
    width: 16px;
    height: 16px;
}

.designer__about-list {
    text-indent: 0;
    margin: 29px 0 0;
    padding: 0;
    list-style: none;
}

.designer__about-list li {
    align-items: center;
    display: flex;
    line-height: normal;
    font-size: 15px;
    margin-bottom: 9px;
}

.designer__about-list li:before {
    content: "";
    background-image: url(../img/icons/icon_check-mark.svg);
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    display: block;
}

.designer__info_info {
    max-width: 325px;
    margin: 0 30px 0 0;
}

.designer__info_info .btn-main-styles {
    max-width: 285px;
    padding: 14px 16px 14px;
    height: auto;
}

.designer-links {
    margin: 10% 0 0;
}

.designer-links a {
    background-position: 0;
    background-repeat: no-repeat;
    background-size: 12px;
    align-items: center;
    height: 12px;
    padding-left: 19px;
    display: flex;
    font-weight: bold;
    margin: 8px 0;
    color: #000000;
}

.designer-links .profile {
    background-image: url(../img/icons/icon_profile.svg);
}

.designer-links .resume {
    background-image: url(../img/icons/icon_resume.svg);
}

.designer-links .skills {
    background-image: url(../img/icons/icon_skills.svg);
}

.designer-links .portfolio {
    background-image: url(../img/icons/icon_portfolio.svg);
}

.designer-links a:hover {
    color: var(--text-grey-color);
}

.designer__services {
    border-radius: 5px;
    background: #FFF;
    box-shadow: 0px 0px 44px 0px rgba(0, 0, 0, 0.05);
    padding: 20px 25px 25px;
    height: max-content;
}

.designer__services .title span {
    background: url(../img/icons/icon_services.svg);
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
}

/* ================================ section card designer =============================== */
/* ============================= section designer skills and resume ============================ */
.designer__personal_info {
    padding: 40px 45px 22px 40px;
    border-radius: 10px;
    background: var(--background-btn-for-filter);
    line-height: 18px;
    width: 100%;
    justify-content: center;
}

.designer__skills {
    margin: 0 10px 0 0;
}

.designer__resume {
    margin: 0 0 0 10px;
}

/* ============================= section designer skills and resume =============================== */
/* ==================================== Portfolio ================================= */
section.designer__portfolio {
    margin: 50px 0;
}

.wrap-next-button {
    top: 0;
}

.designer__portfolio .next-btn {
    right: -38px;
}

.portfolio__cards-wrap {
    white-space: nowrap;
}

.portfolio__cards {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.portfolio__card {
    z-index: 2;
    border-radius: 5px;
    height: 386px;
    width: 386px;
    text-align: center;
    margin: 30px 0;
    color: inherit;
}

.portfolio__card img {
    padding: 0 10px;
    /*max-width: 386px;*/
    width: 100%;
    height: 100%;
}

.portfolio__card:hover {
    /*box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);*/
    transition: box-shadow 0.2s ease-in-out;
    color: inherit;
    transform: translateY(-5px);
}

.button-arrow {
    z-index: 10;
}

/* ===================================== Portfolio =================================== */
/* =================================== Designer page ================================== */
@media screen and (max-width: 1200px) {
    .designer__services {
        margin: 0 20px 0 0;
    }
}

@media screen and (max-width: 992px) {
    .designer__info_info {
        margin: 0;
    }
}

@media screen and (max-width: 768px) {
    /*.wrap-head {
        flex-direction: column;
        align-items: start;
    }

    .wrap-head-info {
        margin: 10px 0 0 0;
    }*/
    .designer__info_info, .designer__info_card {
        min-width: 250px;
        margin: 0;
    }

    .designer__info_info {
        margin: 20px 0 0 27px;
    }

    .designer__info {
        display: flex;
        flex-direction: column;
    }

    .about-designer {
        position: relative;
    }

    section.designer__main {
        justify-content: center;
    }

    .designer__skills {
        margin: 0;
    }

    .designer__resume {
        margin: 20px 0 0 0;
    }

    .portfolio__card {
        height: 330px;
        width: 330px;
    }

}

@media screen and (max-width: 576px) {
    .design-card {
        font-size: 15px;
        line-height: normal;
        margin-bottom: 20px;
    }

    .designer__fio {
        font-size: 18px;
    }

    .designer__geo, .designer__info {
        margin-top: .8rem !important;
    }

    .designer-buttons {
        margin-top: 1rem !important;
    }

    .designers-section {
        margin: 25px 0 50px 0;
        /*margin: 38px 0 50px 0;*/
    }

    .designer__personal_info {
        padding: 30px 25px 12px 30px;
    }

    .portfolio__card {
        height: 240px;
        width: 240px;
    }
}

@media screen and (max-width: 475px) {
    .application__btn {
        max-width: 230px;
        text-wrap: wrap;
        height: auto;
    }

    .application__btn .btn-main-styles {
        padding: 5px 0;
    }

    .views img {
        margin: 4px 0;
    }

    .designer__info_card img {
        margin-bottom: -100px;
    }
}