.specialist-card__title {
    font-weight: 600;
    font-size: 34px;
    margin-bottom: 40px;
}

.specialist-card__subtitle {
    font-weight: 600;
    font-size: 32px;
    margin-bottom: 20px;
}

.request-lider__slide {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    border-radius: 20px;
}

.request-lider__slide > div {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-radius: 32px;
    gap: 21px;
}

.request-lider__slide > div > div > div {
    padding: 30px 38px;
}

.request-lider__slide > div > div {
    background-image: linear-gradient(135deg, #AEE1FF, #ffffff);
}

.usluga_block > div {
    margin-top: 0;
    align-items: flex-start;
}

.info__card {
    position: relative;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: #F8FAFC;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.pulse-btn::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(84, 193, 255, 0.5);
    animation: pulse 1.5s infinite;
    z-index: -1;
}

.diploms__slider {
    transition: opacity 0.3s ease;
}

.btn_spec-container__title-window {
    display: flex;
    align-items: center;
    text-wrap: nowrap;
    position: absolute;
    width: auto;
    font-size: 14px;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 18px 22px 18px 20px;
    z-index: 3;
    background-color: #ffffff;
    border-radius: 20px 50px 50px 20px;
    opacity: 0;
    visibility: hidden;
    transition: .2s ease-in-out;
}

.btn_spec-container__title-window button {
    position: relative;
    margin-left: 40px;
    background-color: transparent;
    border: none;
    height: 20px;
    width: 20px;
}

.btn_spec-container__title-window button img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-active {
    background: #54C1FF !important;
    color: white !important;
    border: none !important;
}

.btn-inactive {
    background: transparent !important;
    color: black !important;
    border: 1px solid #000000 !important;
}

.info__title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding-right: 2.5rem;
    font-weight: 600;
    color: #2D3336;
    transition: color 0.3s ease;
}

/* Arrow icon */
.info__title::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%232D3336' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

/* Arrow rotation for active state */
.info__card[aria-expanded="true"] .info__title::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Content area */
.info__text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out,
    opacity 0.3s ease-out,
    margin 0.3s ease-out;
    opacity: 0;
    margin-top: 0;
}

.mm {
    display: none;
}

/* Active state for content */
.info__card[aria-expanded="true"] .info__text {
    max-height: 2000px;
    opacity: 1;
    margin-top: 1rem;
}

/* List styles for education section */
.info__text li {
    position: relative;
    padding: 0.75rem 0 0.75rem 1.25rem;
    line-height: 1.5;
    color: #4A5568;
}

.nadeuslasttaskaphp {
    background-image: var(--desktop-img);
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: right center;
    border: solid 2px #54C1FF;
    padding: 53px 61px;
    box-sizing: border-box !important;
    min-height: 276px;
    border-radius: 20px;
    overflow: hidden;
}

.nadeuslasttaskaphp .clouds-container {
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 60%;
}

.nadeuslasttaskaphp .clouds-container a,
.nadeuslasttaskaphp .clouds-container div {
    text-wrap: nowrap;
}

.videos__container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    width: 100%;
    justify-content: center;
}

/* Individual video wrapper */
.video__wrapper {
    flex: 1 1 100%;
    width: 100%;
    aspect-ratio: 16/9;
    margin: 0;
}

.video__wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

#fired {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(231, 231, 231, .8);
    z-index: 1200;
    display: flex;
    justify-content: center;
    align-items: center;
}

.c-disabled-overlay {
    position: fixed;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    padding: 0 25px;
    max-width: 100%;
    width: 100%;
    justify-content: center;
}

.c-disabled-overlay__body {
    padding: 30px 30px 40px;
    border-radius: 12px;
    background: #fbfaf7;
    z-index: 999999;
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
    font-size: 14px;
    -webkit-box-shadow: 2px 4px 40px rgba(0, 0, 0, .5);
    box-shadow: 2px 4px 40px rgba(0, 0, 0, .5);
    max-width: 100%;
}

.c-disabled-overlay__header {
    font-size: 44px;
    line-height: 0.9;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 800;
}

.c-disabled-overlay__text {
    font-size: 16px;
}

.specialist__button p {
    font-size: 14px !important;
}

.tag img {
    width: 22px !important;
    height: 22px !important;
}

.btn_spec-container__title-window.visible {
    opacity: 1;
    visibility: visible;
}

.videos-next,
.videos-prev,
.article-next,
.article-prev,
.request-next,
.request-prev {
    border: 1px solid #2A2828;
    position: static;
    width: 46px;
    height: 46px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid #689bd7;
    margin-top: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-transition: .2s ease-out;
    transition: .2s ease-out;
}

.videos-next::after,
.videos-prev::after,
.article-next::after,
.article-prev::after,
.request-next::after,
.request-prev::after,
.awards-next::after,
.awards-prev::after {
    display: none
}

.c-disabled-overlay__buttons {
    margin-top: 20px;
}

.c-button--l {
    margin: 0 15px .5rem 0;
    font-size: 1.4rem;
    color: #47802d;
    text-decoration: underline;
}

.dekstop_g {
    display: block;
    width: 100% !important;
}

.mobile_g {
    display: none;
    width: 100% !important;
}

.specialist__banner {
    min-height: 600px !important;
    height: 100% !important;
}

.line-through {
    text-decoration-line: line-through;
}

.open_rutube_modal_btn {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: none;
}

.open_rutube_modal_btn-decoration {
    width: 75px;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #54C1FF;
    border-radius: 50%;
}

.price-tooltip {
    font-size: 16px;
    visibility: hidden;
    min-width: 200px;
    background-color: #fff;
    color: #2D3336;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.list {
    list-style: none;
    padding-left: 20px;
    margin-left: 20px;
    margin-top: 14px;
}

.list li {
    position: relative;
    padding-left: 20px;
}

.list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #54C1FF;
}

.service__info-item:hover .price-tooltip {
    visibility: visible;
}

.discounted-price {
    color: #54C1FF;
    font-weight: 600;
}

.original-price {
    margin-right: 8px;
}

.rutube-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .8);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: visible;
    transition: 0.2s ease-in-out;
    z-index: -1;
}

.rutube-modal--visible {
    opacity: 1;
    visibility: visible;
    z-index: 1000;
}

.rutube-modal__wrapper {
    position: relative;
    width: 80vw;
    height: 80vh;
}

.rutube-modal__close {
    position: absolute;
    top: 30px;
    right: 30px;
    background-color: rgba(0, 0, 0, .5);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 50%;
}

.rutube-modal__close__img {
    width: 20px;
    height: 20px;
}

.rutube-modal__video-container {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.8);
        opacity: 0;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Tablet and Desktop styles */
@media (min-width: 712px) {
    .video__wrapper {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .specialist-card__title {
        font-weight: 700;
        font-size: 26px;
        margin-bottom: 24px;
    }

    .specialist-card__subtitle {
        font-weight: 600;
        font-size: 20px;
    }

    .themes-container {
        padding: 0 !important;
    }

    .request-lider__slide {
        background: linear-gradient(135deg, #AEE1FF, #ffffff);
    }

    .request-lider__slide > div {
        background-image: var(--mobile-img);
        background-size: auto 300px;
        background-position: bottom center;
        background-repeat: no-repeat;
        padding-bottom: 300px;
    }

    .request-lider__slide > div > div {
        background-image: none;
    }

    .themes-container__text-block {
        padding: 26px 16px;
    }

    .request-lider__slide div > img {
        display: none;
    }

    .info__card {
        padding: 1rem;
    }

    .info__title {
        padding-right: 2rem;
    }

    .info__title::after {
        width: 20px;
        height: 20px;
    }

    .info__text li {
        font-size: 0.875rem;
    }

    .btn_spec-container__title-window {
        padding: 9px 14px 9px 20px;
    }

    .article_img {
        width: 100%;
    }

    .diploms__info {
        margin-top: 70px !important;
    }

    .article_img {
        width: 100%;
    }

    .price_container {
        background-image: var(--img) !important;
        background-position: bottom !important;
        background-size: cover !important;
    }

    .price_container h2 {
        font-size: 20px !important;
    }

    .price_container > div {
        justify-content: start !important;
    }

    .request {
        margin-top: 40px !important;
    }

    .title {
        font-size: 26px !important;
    }

    .article-slide {
        width: 100% !important;
    }

    .free__consultation {
        padding: 10px 14px !important;
    }

    .free__consultation h3 {
        font-size: 17px !important;
    }

    .free__consultation > div:nth-child(2) {
        display: none !important;
    }

    .free__consultation-button {
        width: 100% !important;
        justify-content: center;
        align-content: center;
        display: flex !important;
    }

    .subtitle {
        font-size: 20px !important;
    }

    .usluga_block {
        flex-direction: column;
        align-items: flex-start;
    }

    .usluga_block > div {
        margin-top: 15px;
        width: 100%;
    }

    .specialist__banner {
        flex-direction: column-reverse !important;
        height: 900px !important;
    }

    .specialist__banner h1 {
        font-size: 26px !important;
    }

    .specialist__banner > div:nth-child(1) {
        max-width: 100% !important;
        padding: 12px !important;
    }

    .specialist__banner > div:nth-child(2) {
        max-width: 100% !important;
        height: 300px !important;
    }

    .specialist_image {
        height: 100% !important;
        width: auto !important;
        object-fit: cover !important;
        bottom: 0 !important;
        left: auto !important;
    }

    .tag {
        display: flex !important;
        align-items: center !important;
        padding: 4px 10px !important;
    }

    .tag img {
        width: 12px !important;
        height: 10px !important;
    }

    .tag p {
        font-size: 12px !important;
    }


    .specialist_btn {
        margin-top: 26px !important;
    }

    .specialist__banner > div:nth-child(2) > div:nth-child(4) {
        background-color: #FFFFFF6B !important;
        bottom: 0 !important;
        left: 10px !important;
        right: 10px !important;
        width: 94% !important;
    }

    .specialist__banner > div:nth-child(2) > div:nth-child(4) > div {
        justify-content: space-evenly !important;
    }

    .online_offline {
        right: 0px !important;
        top: 10px !important;
        align-items: end;
    }

    .online_offline2,
    .online_offline {
        padding: 4px 10px;
        font-size: 10px !important;
    }

    .online_offline2 > div,
    .online_offline > div {
        padding: 6px 10px !important;
        font-size: 10px !important;
    }

    .online_offline2 {
        left: 0 !important;
        top: 10px !important;
    }

    .btn_spec-container {
        bottom: 120px !important;
        right: 10px !important;
        aspect-ratio: 1/1;
        width: 50px;
    }

    .btn_spec-container2 {
        bottom: 60px !important;
        right: 10px !important;
    }

    .specialist_more_btn,
    .specialist_more_drugs {
        width: 50px !important;
        height: 50px !important;
    }

    .specialist_more_btn img {
        width: 12px;
    }

    .specialist_more_drugs img {
    }

    .bojepomogimne {
        position: absolute;
        margin-left: 0px !important;
        top: 0px;
        left: 0px;
        background: transparent !important;
    }

    .bojepomogimne > div {
        padding: 24px 16px !important;
    }

    .nadeuslasttaskaphp > div {
        justify-content: start !important;
        gap: 10px !important;
        max-width: 100% !important;
    }

    .education-hidden-text {
        display: none !important;
    }

    .jj {
        margin-top: 16px !important;
    }

    .dekstop_g {
        display: none !important;
        width: 100% !important;
    }

    .mobile_g {
        display: block !important;
        width: 100% !important;
    }

    .mm {
        display: flex !important;
    }

    .price_container {
        background-position: bottom !important;
        background-size: cover !important;
    }

    .nadeuslasttaskaphp {
        margin-top: 24px;
        background-image: var(--mobile-img);
        background-size: auto 140%;
        background-position: bottom right;
        padding: 26px 16px 200px 16px;
    }

    .nadeuslasttaskaphp .clouds-container {
        gap: 10px;
        max-width: 100%;
    }

    .nadeuslasttaskaphp .clouds-container a,
    .nadeuslasttaskaphp .clouds-container div {
        text-wrap: nowrap;
    }
}

@media (hover: hover) {
    .btn_spec-container:hover .btn_spec-container__title-window {
        opacity: 1;
        visibility: visible;
    }

    .btn_spec-container__title-window button {
        display: none;
    }
}