.aboutInput {
    max-width: 800px;
    padding-left: 50px;
    margin-bottom: 30px;
}

.expertWrapper {
    width: 100%;
    padding: 25px 50px;
    background-color: #fff;
    border-radius: 25px 25px 0 0;
}
.premium {
    border: 2px solid #ffd400;
}

.premiumSpanSingle {
    position: absolute;
    top: -15px;
    left: 50%;
}
.premiumSpan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #d7f550;
    border-radius: 20px;
    font-size: 14px;
    width: max-content;
    padding: 2px 12px;
}
.premiumGroup {
    display: flex;
    align-items: center;
    gap: 20px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translate(-50%);
}
.expertWrapperCard {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 30px;
}
.expert-card {
    position: relative;
    width: 100%;
    display: flex;
    gap: 35px;
    border-radius: 25px;
    background-color: #fff;
    padding: 25px 30px;
}
.expert-card--wrapper {
    display: flex;
    gap: 20px;
}
.image {
    position: relative;
    border-radius: 50%;
}
.profileIcon {
    position: absolute;
    top: 0;
    right: 0;
}
.expertCardAvatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.expertCardInfo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 25px;
}
.expertCardAbout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.expertCardAboutWrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.expertCardName {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: clamp(22px, 3vw, 30);
    margin-bottom: 10px;
}

.expertCardCity {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}
.specialization {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.expertCardTextGroup {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.expertCardLine {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: var(--grey);
    color: #fff;
    padding: 4px 12px;
    white-space: nowrap;
    border-radius: 32px;
    font-size: 14px;
    width: max-content;
}
.expertSpecialization {
    max-width: 250px;
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
}
.expertCardNameGroup {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 30px;
}

.expertInfo {
    display: flex;
    align-items: center;
    gap: 20px;
}
.expertExperienceSpan {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    background-color: #ffd400;
}

.expertInfoSpan {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 16px;
    background-color: #52c41a;
    color: #fff;
    border-radius: 100px;
    font-size: 12px;
    padding: 0 14px;
}
.case {
    display: flex;
    align-items: center;
    gap: 10px;
}
.expertCardRating,
.reviews {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.expertCardRating {
    align-items: center;
}
.expertCardContent {
    display: flex;
}
.formatText {
    font-weight: 400;
    font-size: 14px;
}
.expertCardContentSpan {
    font-size: 14px;
    font-weight: 700;
}
.highLight {
    color: var(--green);
}
.expertReviewLink {
    color: #2457fe;
    text-decoration: underline;
    white-space: nowrap;
}
.text {
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
}
.expertCardContentLine {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.expertCardContentGroup {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.expertCardContentPrice {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid #78787999;
    border-radius: 20px;
    padding: 20px;
    height: max-content;
}
.priceContent {
    position: relative;
}
.price {
    white-space: nowrap;
    font-size: 22px;
    font-weight: 400;
    color: var(--green);
}
.priceText {
    font-weight: 500;
    font-size: 12px;
    line-height: 12px;
}
.priceSpan {
    position: absolute;
    left: -6px;
    bottom: -20px;
}
.expertCardCompanySite {
    display: flex;
    align-items: center;
    gap: 40px;
}
.expertCardContenSocial {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.expertCardCompanyGroup {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.expertCardCompanyIcon {
    display: flex;
    align-items: center;
    gap: 10px;
}
.expertCardSocial {
    display: flex;
    align-items: center;
    gap: 20px;
}
.expertCardCompanyInfo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background: #00b1290f;
    box-shadow: 0px 16px 32px -4px #919eab30;
    padding: 15px 30px;
    border-radius: 16px;
}
.companyName {
    font-weight: 700;
    font-weight: 14px;
    color: var(--green);
}
.services {
    display: flex;
    flex-direction: column;
    gap: 60px;

    background-color: #fff;
    margin-bottom: 45px;
}
.servicesList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px 50px;
}
.servicesListGroupIcon {
    display: flex;
    align-items: center;
    gap: 10px;
}
.servicesListItem {
    max-width: 600px;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(1px);
    transition: box-shadow 0.3s ease;
}
.servicesListIcon {
    min-width: 21px;
    transition: all 0.3s ease;
}
.servicesListIcon path {
    fill: #52c41a;
}
.servicesListItem:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.servicesListItem:hover .servicesListIcon {
    margin-top: -10px;
}
.servicesListItem,
.servicesListGroupContent {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.servicesListLinkWrapper {
    flex: 1;
    justify-content: space-between;
}
.servicesListTitle {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 500;
    color: var(--green);
}
.servicesListSpan {
    padding: 2px 12px;
    border-radius: 32px;
    font-size: 12px;
    color: #fff;
}
.servicesListText {
    font-size: 14px;
}
.truncatedText {
    max-height: 150px;
    overflow: hidden;
    position: relative;
}

.showMoreBtn {
    background: none;
    color: var(--green);
    border: none;
    cursor: pointer;
    padding: 5px 0;
    font-weight: 600;
}

.servicesListGroup {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.expertCardContentBanner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    background: #f0f4f8;
    border-radius: 25px;
    padding: 25px 45px;
    margin-bottom: 40px;
}
.expertCardContentBannerGroup,
.expertCardContentButtons {
    display: flex;
    align-items: center;
    gap: 30px;
}
.expertCardContentButton {
    background: #015916;
}
.servicesListButton {
    width: max-content;
}
.servicesListDate {
    font-size: 12px;
    color: #1890ff;
}
.expertCardInfoServices {
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.servicesListLink {
    color: rgb(119, 119, 255);
}
/* posts */

.posts {
    margin-bottom: 40px;
}
.postsTitle {
    font-size: clamp(18px, 3vw, 20px);
    font-weight: 500;
    margin-bottom: 40px;
    padding-left: 50px;
}
.postsCards {
    display: grid;
    gap: 20px;
    margin-bottom: 28px;
}
.postsCards:has(> :nth-child(4)) {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.postsCards:not(:has(> :nth-child(4))) {
    grid-template-columns: repeat(auto-fit, 260px);
    justify-content: start;
}
.postsBtn {
    font-size: 14px;
    color: #2457fe;
}
/* social */
.socialTitle {
    font-size: clamp(16px, 3vw, 20px);
    margin-bottom: 30px;
    font-weight: 400;
    padding-left: 50px;
}
.socialContent {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, max-content));
    gap: 25px;
}
/* education */
.education {
    display: flex;
    flex-direction: column;
    gap: 45px;
    background-color: #fff;
    padding: 50px;
    border-radius: 25px 25px 0 0;
    margin-bottom: 50px;
}
.educationTitle {
    font-size: clamp(18px, 3vw, 20px);
    font-weight: 500;
}
.educationList {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.educationItem {
    padding: 10px 20px;
    box-shadow: 0px 16px 32px -4px #919eab30;
    background: #00b12914;
}
.educationInfo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.educationContent {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 25px;
}
.educationGroupCfalification,
.educationGroup {
    display: grid;
    gap: 20px;
    justify-content: space-between;
}
.educationGroup:has(> :nth-child(2)) {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.educationGroup:not(:has(> :nth-child(2))) {
    grid-template-columns: repeat(auto-fit, 400px);
    justify-content: start;
}
.educationGroupCfalification:has(> :nth-child(2)) {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.educationGroupCfalification:not(:has(> :nth-child(2))) {
    grid-template-columns: repeat(auto-fit, 400px);
    justify-content: start;
}
.educationSpecializationGroup {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.educationName {
    font-weight: 500;
}
.educationDate {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.educationSpecialization {
    font-size: 14px;
}
.cfalificationItem {
    display: flex;
    align-items: center;
    gap: 20px;
}
.cfalificationInfo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
}
/* address */
.address {
    margin-bottom: 75px;
}
.addressInfo {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 385px;
}
.addressWrapper {
    display: flex;
    gap: 50px;
    min-width: 100%;
    padding-left: 50px;
}
.addressContent {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.addressItem {
    padding: 30px;
    box-shadow: 0px 16px 32px -4px #919eab30;
    border-radius: 16px;
    background: #00b1290f;
}
.addressTtext {
    font-size: 14px;
    font-weight: 400;
}
.addressMap {
    width: 100%;
    height: 269px;
    overflow: hidden;
    border-radius: 25px;
}

/* reviews */
.reviewsBtn {
    background: #015916;
}
.reviewsRatingGroup {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-left: 50px;
}
.reviewsRatingContent {
    display: flex;
    gap: 6px;
}
.reviewsRatingValue {
    font-size: 18px;
}
.reviewsGroup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    padding-left: 50px;
}
.reviewsBtns {
    display: flex;
    gap: 30px;
}
.reviewsList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.reviewsList:has(> :only-child) {
    justify-content: start;
}

.reviewsList > :only-child {
    max-width: 500px;
    width: 100%;
}
.reviewsMoreBtn {
    display: flex;
    margin-right: auto;
    color: #2457fe;
    font-size: 14px;
    margin-bottom: 58px;
}
.note {
    color: #00000099;
    font-size: 12px;
    padding-left: 50px;
    margin-bottom: 30px;
}

.drag-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 999;
    cursor: grabbing;
}
.videoScrollWrapper {
    position: relative;
    overflow: hidden;
    padding: 16px 0;
}
.videoScrollTrack {
    position: relative;
    display: flex;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overflow-x: auto;
}
.videoScrollTrack::-webkit-scrollbar {
    display: none;
}
.videoScrollSlide {
    position: relative;
    width: 500px;
    height: 350px;
    flex-shrink: 0;
    border-radius: 30px;
}
.videoScrollIframe {
    height: 350px;
    border-radius: 30px;
}
.videoScrollSlide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 20%,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.4) 80%,
        rgba(0, 0, 0, 0.7) 100%
    );
}
.videoScrollText {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    color: #fff;
    padding: 10px 12px;
    box-sizing: border-box;
    z-index: 2;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.videoTitle {
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.videoTitle:hover {
    color: #ccc;
}

.videoBlogAuthor {
    font-size: 14px;
    color: #ddd;
    margin-top: 4px;
}
.expertCardCompanyLogo {
    width: 150px;
    height: 61px;
}
.expertCardCompanyLogo img {
    height: 100%;
    object-fit: contain;
}
.showMoreBtn {
    display: flex;
    font-weight: 500;
    color: var(--green);
    font-size: 16px;
}
.videoScrollSlide[data-playing='true']::after {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.videoScrollSlide[data-playing='true'] .videoScrollText {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.hidden {
    display: none;
}

@media (max-width: 1180px) {
    .expertCardContent {
        flex-wrap: wrap;
        gap: 20px;
    }
    .lineBorder {
        border: none;
    }
    .expertWrapperCard {
        display: flex;
        flex-direction: column;
    }
}
@media (max-width: 920px) {
    .expert-card {
        flex-direction: column;
    }

    .expertCardInfo {
        justify-content: flex-start;
    }
    .expertCardAbout {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .expert-card {
        padding: 20px;
    }
    .addressInfo {
        min-width: 350px;
    }
    .addressWrapper {
        gap: 20px;
        padding: 0;
    }
    .reviewsGroup,
    .reviewsRatingGroup,
    .note {
        padding: 0;
    }
}
@media (max-width: 768px) {
    .image {
        display: flex;
        margin: 0 auto;
        min-width: 160px;
        max-width: 160px;
        height: 160px;
    }
    .expert-card--wrapper {
        flex-direction: column;
    }
    .expertCardName {
        text-align: center;
    }
    .expertCardInfo {
        flex-direction: column;
        align-items: flex-start;
    }
    .infoExperts {
        flex-direction: row;
    }
    .expertCardContentLine {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    .expertCardCompanyInfo {
        width: 100%;
    }
    .servicesList {
        display: flex;
        flex-direction: column;
    }
    .expertWrapper {
        padding: 30px 10px;
        border-radius: 25px;
    }
    .services {
        padding: 30px 10px;
        background: none;
        gap: 35px;
        margin-bottom: 15px;
    }
    .text {
        text-align: center;
    }
    .servicesListTitle {
        min-height: auto;
    }
    .expertCardCompanySite {
        justify-content: center;
    }
    .expertCardSocial {
        justify-content: center;
    }
    .expertCardContentBanner {
        background: none;
        padding: 0;
    }
    .expertCardContentButtons {
        flex-direction: column;
        align-items: flex-start;
    }
    .aboutInput {
        padding: 0;
    }
    .priceSpan {
        left: -15px;
    }
    .expertCardContentBannerGroup {
        gap: 20px;
    }
    .expertCardInfoServices {
        padding: 0;
        gap: 25px;
    }
    .showMoreBtn {
        margin: 0 auto;
    }
    .postsCards {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .postsBtn {
        display: flex;
        margin: 0 auto;
    }
    .postsTitle,
    .socialTitle {
        margin-bottom: 25px;
        padding: 0;
    }
    .education {
        padding: 25px 15px;
        margin-bottom: 35px;
    }
    .address {
        margin-bottom: 40px;
    }
    .addressWrapper {
        flex-direction: column;
    }
    .addressItem {
        max-width: 354px;
        background: #ebfff0ff;
        z-index: 10 !important;
    }
    .addressInfo {
        align-items: center;
        gap: 20px;
        z-index: 10 !important;
    }
    .addressContent {
        gap: 10px;
    }
    .addressWrapper {
        gap: 0;
    }
    .addressMap {
        margin-top: -20px;
        border-radius: 0;
    }
    .reviewsGroup {
        flex-direction: column;
        gap: 25px;
        align-items: center;
        text-align: center;
        margin-bottom: 25px;
    }
    .reviewsBtns {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .reviewsBtn {
        width: max-content;
    }
    .reviewsMoreBtn {
        margin-bottom: 30px;
    }
    .videoScrollSlide {
        width: 302px !important;
        height: 204px !important;
    }

    .videoScrollIframe {
        height: 204px !important;
    }
    .reviewsList {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    .educationGroupCfalification:has(> :nth-child(2)) {
        grid-template-columns: 1fr;
    }
    .educationGroupCfalification:not(:has(> :nth-child(2))) {
        grid-template-columns: 1fr;
    }
    .cfalificationItem {
        flex-direction: column;
        align-items: flex-start;
    }

    .educationGroup:not(:has(> :nth-child(2))) {
        grid-template-columns: 1fr;
        justify-content: start;
    }
    .reviewsRatingGroup {
        justify-content: center;
    }
}
@media (max-width: 400px) {
    .expertCardContentGroup {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .priceSpan {
        left: 50%;
        transform: translate(-50%);
    }
    .addressInfo {
        min-width: auto;
    }
}
