/* Actions */
#burger.active span:nth-child(1){
    transform: rotate(-45deg) translateY(11px);
}
#burger.active span:nth-child(2){
    opacity: 0;
}
#burger.active span:nth-child(3){
    transform: rotate(45deg) translateY(-11px);
}

#header-menu {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s linear, transform 0.4s linear;
    transform: translate(-50%,50px);
}
#header-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%,0);
}
@media (min-width: 1024px) {
    #header-menu {
        opacity: 1;
        pointer-events: auto;
        transition: none;
        transform: none;
    }
}

.dynamic-content {
    opacity: 0;
    pointer-events: none;
    display: none;
    visibility: hidden;
    transform: translateY(-100px);
}
.dynamic-content.active {
    pointer-events: auto;
    display: block;
    visibility: visible;
    animation: FadeInAnimation 0.5s forwards ease-in-out 0.3s;
}

@keyframes FadeInAnimation {
    0%{
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Hero slider */
.hero-slide {
    opacity: 0;
    transition: opacity 0.5s linear;
}
.hero-slide.active {
    opacity: 1;
}
.hero-slider-cards {
    transition: all 0.3s linear ;
    transform: scale(0.9);
}
.hero-slider-cards.scaled {
    transform: scale(1.1);

}
.hero-slider-cards.outscaled {
    transform: scale(0.8);
}
/*   Switch buttons   */


.common-content-switcher-btn svg path,
.main-content-switcher-btn svg path{
    transition: all .3s linear;
}
.main-content-switcher-btn {
    background: white;
}
.main-content-switcher-btn.active {
    background: var(--color-grey-layout);
}
.common-content-switcher-btn.active svg path,
.main-content-switcher-btn.active svg path {
    fill: var(--color-blue-base);
}
.common-content-switcher-btn.active span{
    border-color: #D9ECFF;
}
.swicther-decor-common {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.swicther-decor-common.active {
    opacity: 1;
}
.main-content-switcher-btn.active span{
    border-color: var(--color-blue-base);
}
.main-content-switcher-btn .active-decor {
    opacity: 0;
}
.main-content-switcher-btn.active .active-decor {
    opacity: 1;
}
.main-content-switcher-btn.active .default-decor {
    opacity: 0;
}
.main-content-switcher-btn .switcher-label {
    transition: opacity 0.3s linear;
}
.main-content-switcher-btn.active .switcher-label {
    opacity: 0;
    transition: none;
}
.switcher-btn-arrow {
    transition: all 0.5s linear;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: rotateY(180deg) translate(0,100%);
}
.switcher-btn-arrow.translate-change {
    left: 100%;
    transform: translate(-100%, 100%);
}
/*  Accordion   */
.accordion-btn .plus-btn span:nth-child(2) {
    transform: rotate(90deg);
}
.accordion-btn.active .plus-btn span:nth-child(2) {
    transform: rotate(0);
}
/*   Cards   */
.card {
    width: 100%;
    position: relative;
    cursor: pointer;
}
.card-front {
    background: #FFFFFF;
    border-radius: 40px;
    width: 100%;
    height: 100%;
}
.card-back {
    width: 100%;
    height: 100%;
    padding: 20px 40px;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    align-items: center;
    background: #D9ECFF;
}
.review-full-block {
    display: none;
}
.review-preview-block {
    display: block;
}
@media (hover: hover) and (pointer: fine) {
    /*Review*/
    .review:hover .review-full-block {
        display: block;
    }
    .review-text-wrapper {
        max-height: 90px;
    }
    .review:hover .review-text-wrapper{
        max-height: 400px;
    }
    .review-preview-block {
        display: -webkit-box;
        -webkit-line-clamp: 4;      /* количество строк */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .review:hover .review-preview-block {
        display: none;
    }
    /* Card */
    .card {
        min-height: 100px;
    }
    .card-back {
        display: flex;
        transform: perspective(600px) rotateY(180deg);
    }
    .card-front {
        padding: 60px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: perspective(600px) rotateY(0);
    }
    .card-front h4 {
        width: min-content;
    }
    .card-title-group {
        justify-content: center;
    }
    .card-front .card-text{
        display: none;
    }
    .card-front .card-title-group {
        width: 100%;
        gap: 12px;
    }
    .card-front .card-title-group img {
        width: 75px;
        height: 75px;
    }
    .card-front,
    .card-back {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        transition: transform 1s ease;
        overflow: hidden;
        border-radius: 40px;
        backface-visibility: hidden;
    }
    .card:hover .card-front {
        transform: perspective(600px) rotateY(-180deg);
    }

    .card:hover .card-back {
        transform: perspective(600px) rotateY(0deg);
    }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1200px) {
    .card-front {
        padding: 60px 30px;
    }
    .card-front .card-title-group {
        gap: 16px;
        justify-content: center;
    }
    .card-front h4 {
        font-size: 20px;
        line-height: 22px;
        width: min-content;
    }
    .card-title-group {
        justify-content: stretch;
    }
    /* Arrow link */
    .arrow-link .arrow span {
        width: 7px;

    }
    .arrow-link:hover .arrow span {
        width: 100px;
    }
    .arrow-link-small .arrow span {
        width: 7px;

    }
    .arrow-link-small:hover .arrow span {
        width: 20px;
    }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1300px) {
    .card-front .card-title-group {
        gap: 20px;
    }
    .card-front h4 {
        font-size: 22px;
        line-height: 24px;
    }
}
@media (pointer: coarse), (any-hover: none), (max-width: 1100px) {
    .review {
        height: auto;
    }
    .card-front {
        padding: 16px 22px 24px;
    }
    .card-back {
        display: none;
    }

}
.menu-item a.active {
    color: var(--color-blue-base) !important;
}
.content-switcher-btn {
    cursor: pointer;
}
.content-switcher-btn svg {
    pointer-events: none;
}
.content-switcher-btn.active {
    pointer-events: none;
}

/* Animation steps */
.animated-step-item {
    opacity: 0;
    will-change: opacity;
    pointer-events: none;
}
/* Odd items animation start */
.animated-steps-group:nth-child(2n + 1) .animated-step-item:first-child {
    animation: FadeInStepAnimation 12s forwards ease-in-out infinite;
}
.animated-steps-group:nth-child(2n + 1) .animated-step-item:nth-child(2) {
    animation: FadeInStepAnimation 12s forwards ease-in-out infinite 5s;
}
.animated-steps-group:nth-child(2n + 1) .animated-step-item:nth-child(3) {
    animation: FadeInStepAnimation 12s forwards ease-in-out infinite 2.5s;
}
.animated-steps-group:nth-child(2n + 1) .animated-step-item:nth-child(4) {
    animation: FadeInStepAnimation 12s forwards ease-in-out infinite 7.5s;
}

/* Odd items animation start */
.animated-steps-group:nth-child(2n) .animated-step-item:first-child {
    animation: FadeInStepAnimation 12s forwards ease-in-out infinite 2.5s;
}
.animated-steps-group:nth-child(2n) .animated-step-item:nth-child(2) {
    animation: FadeInStepAnimation 12s forwards ease-in-out infinite 7.5s;
}
.animated-steps-group:nth-child(2n) .animated-step-item:nth-child(3) {
    animation: FadeInStepAnimation 12s forwards ease-in-out infinite 5s;
}
.animated-steps-group:nth-child(2n) .animated-step-item:nth-child(4) {
    animation: FadeInStepAnimation 12s forwards ease-in-out infinite 10s;
}

/* Small group of steps */
@media (min-width: 1200px) {
    .steps-animation-small-group .animated-step-item:nth-child(4){
        animation: FadeInStepAnimation 12s forwards ease-in-out infinite;
    }
    .steps-animation-small-group .animated-step-item:nth-child(3){
        animation: FadeInStepAnimation 12s forwards ease-in-out infinite 2.5s;
    }
    .steps-animation-small-group .animated-step-item:nth-child(2){
        animation: FadeInStepAnimation 12s forwards ease-in-out infinite 5s;
    }
    .steps-animation-small-group .animated-step-item:nth-child(1){
        animation: FadeInStepAnimation 12s forwards ease-in-out infinite 7.5s;
    }
}

@keyframes FadeInStepAnimation {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    40% {
        opacity: 1;
    }
    60% {
        opacity: 0.3;
    }
    80% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}