#import_excel .mfp-close {
    color: #0a53be;
    top: -8px;
    right: -8px;
}
.custom_menu_wrap {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 250px;
    background: #303030;
    height: 100%;
    color: #ecf0f1;
    transition: width 0.3s;
    overflow: hidden;
    display: none;
}
.custom_menu_wrap ul {
    padding: 0;
    margin: 0;
}
.custom_menu_wrap li {
    list-style: none;
}
.custom_menu_wrap a {
    font-size: 16px;
    color: white !important;
    display: block;
    padding: 15px;
    transition: 0.2s ease-in-out;
}
.custom_menu_wrap a:hover {
    background: #1e1e1e;
}

#need-help .mfp-close {
    color: #888;
    background-color: #f8f8f8;
    border-radius: 0 4px 0 0;
    top: 0;
    right: 0;
    width: 62px;
    height: 61px;
}
.external_links {
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
.box-wrapper-description {
    position: absolute;
    left: -20px;
    z-index: 1;
    color: white;
    padding: 50px;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition: 0.3s ease-in-out;
    -ms-transition: 0.3s ease-in-out;
    -o-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}
.box-wrapper-button {
    position: absolute;
    z-index: 1;
    bottom: 15px;
    left: 15px;
}
.box-wrap:hover .box-wrapper-description {
    visibility: visible;
    opacity: 1;
    left: 0;
}
.box-wrap img {
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition: 0.3s ease-in-out;
    -ms-transition: 0.3s ease-in-out;
    -o-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}
.box-wrap:hover img {
    transform: scale(1.1);
    filter: brightness(40%);
    border-radius: 15px;
}
/*.custom-heading {*/
/*    font-size: 2.5em;*/
/*}*/
.custom-heading {
    font-size: clamp(18px, 6vw, 48px);
}

/*.custom-heading::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    bottom: -15px; !* расстояние ниже текста *!*/
/*    left: 50%;*/
/*    transform: translateX(-50%); !* выравнивание по центру *!*/
/*    width: 60px; !* длина линии *!*/
/*    height: 4px; !* толщина линии *!*/
/*    background-color: #0a53be;*/
/*    border-radius: 2px;*/
/*}*/


#header-slider {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0;
}

.slide img {
    height: 100vh;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* затемнение изображения */
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.stars-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.star {
    position: absolute;
    top: 0;
    right: -100px;
    background: white;
    border-radius: 50%;
    opacity: 1;
    animation-name: flyStar;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    transform: rotate(180deg); /* "хвост" направлен вправо, движение влево */
    box-shadow: -10px 0 20px rgba(255, 255, 255, 0.4); /* световой хвост */
}


/*
************ Вертикальный аккордеон
*/
.accordion-case-section {
    display: flex;
    gap: 16px;
    overflow: hidden;
    height: 400px;
    margin: 40px auto;
}

.accordion-item_custom {
    flex: 1;
    background-size: cover;
    background-position: center;
    transition: flex 0.5s ease-in-out;
    position: relative;
    cursor: pointer;
    border-radius: 25px;
    overflow: hidden;
}

.accordion-item_custom:hover {
    flex: 3;
}

.accordion-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: left;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.accordion_link_btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.accordion-item_custom:hover .accordion-content {
    opacity: 1;
}

.accordion-content h5 {
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.accordion-content p {
    /*font-size: 14px;*/
    margin: 0;
}

@media (max-width: 768px) {
    .accordion-case-section {
        flex-direction: column;
        height: auto;
    }

    .accordion-item_custom {
        flex: unset;
        height: 300px;
    }

    .accordion-item_custom:hover {
        flex: unset;
    }
}

/*
************ КОНЕЦ Вертикальный аккордеон
*/

/*.video-mask {*/
/*    position: absolute;*/
/*    inset: 0; !* сокращённо top/right/bottom/left = 0 *!*/
/*    background: rgba(10,83,190,0.69);*/
/*    z-index: 2;*/
/*    !* Маска: чёрное = вырез, белое = остаётся *!*/
/*    -webkit-mask-image: url('/public/images/athlete-silhouette.png');*/
/*    mask-image: url('/public/images/athlete-silhouette.png');*/
/*    -webkit-mask-repeat: no-repeat;*/
/*    mask-repeat: no-repeat;*/
/*    -webkit-mask-position: center center;*/
/*    mask-position: center center;*/
/*    -webkit-mask-size: contain;*/
/*    mask-size: contain;*/
/*}*/


.come_in_ffar_unique {
    object-fit: cover;
    height: 227px;
    width: 100%;
    border-radius: 25px;
    position: absolute;
    bottom: -46px;
    left: -282px;
    border: 5px solid #f9f9f9;
}


/*
**------------------------ Направления
*/

.card {
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
    background: #176eec;
    border-radius: 25px;
    border: 1px solid #176eec;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid #fff;
    border-radius: 25px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
}

.card-front {
    background-color: #176eec;
    display: block;
}

.card-front .number {
    padding: 25px;
    font-size: clamp(125px, 10vh, 64px);
}

.card-back {
    background-color: #2a41e8;
    transform: rotateY(180deg);
    position: relative;
    overflow: hidden;
}
.card-icon {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 50px;
    color: white;
}

.card-back h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card-back p {
    font-size: 14px;
    color: #d6e4ff;
}
.little-btn-without-bg {
    font-size: 12px;
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #2a41e8;
    transition: 0.2s ease-in-out;
}
.little-btn-without-bg:hover {
    font-size: 12px;
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #2a41e8;
    background: #2a41e8;
    color: #fff;
}


.big-btn-without-bg {
    background: transparent !important;
    transition: 0.2s ease-in-out;
    color: #2a41e8 !important;
    border: 1px solid #2a41e8 !important;
}
.big-btn-without-bg:hover {
    background: #2a41e8;
    color: #fff;
}

.registries {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    color: #fff;
}
.registry {
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.registry .number {
    background: white;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    color: #2a41e8;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    transition: 0.3s ease-in-out;
}
.registry h4 {
    color: #fff;
    margin-bottom: 20px;
    transition: 0.3s ease-in-out;
}
.registry .registry_short_description {
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease-in-out;
}
.registry:hover {
    margin-top: -50px;
}
.registry:hover .registry_short_description {
    opacity: 1;
    visibility: visible;
}




/*
**------------------------- Конец Направления
*/

@keyframes flyStar {
    0% {
        transform: translateX(0) scale(1) rotate(180deg);
        opacity: 0.9;
    }
    100% {
        transform: translateX(-120vw) scale(0.6) rotate(180deg);
        opacity: 0;
    }
}


@media screen and (max-width: 1440px) {
    #navigation ul li a, #navigation ul ul li a {
        font-size: 12px;
    }
    .log-in-button {
        font-size: 12px;
    }
}

@media screen and (max-width: 1240px) {
    .come_in_ffar_unique {
        left: -70px;
    }
}

@media screen and (max-width: 992px) {
    .custom-flex {
        flex-direction: column-reverse;
    }
    .come_in_ffar_unique {
        height: 400px;
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 25px;
        border: transparent;
    }
}

