.yellow_btn {
    background-color: #eab821 !important;
}
.green_btn {
    background-color: #28b661 !important;
}
.red_btn {
    background-color: #e53038 !important;
}
.yellow_text {
    color: #eab821 !important;
}
.green_text {
    color: #28b661 !important;
}
.red_text {
    color: #e53038 !important;
}
.blue_text {
    color: #2a41e8 !important;
}
.small_btn {
    padding: 7px 12px !important;
    font-size: 12px !important;
}

/* Обёртка прелоадера */
.preloader {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Круглый спиннер */
.spinner {
    width: 80px;
    height: 80px;
    border: 8px solid #334155;
    border-top: 8px solid #2a41e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Анимация вращения */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fun-fact_custom {
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1 1 calc(25% - 30px);
    height: auto;
    cursor: pointer;
    transition: 0.3s;
}
.fun-fact_custom:hover {
    transform: translateY(-10px);
}

.fun-fact_custom span {
    font-size: 18px;
    color: #888;
    line-height: 22px;
}

.fun-fact_custom h4 {
    font-size: 38px;
    color: #333;
    line-height: 38px;
    margin-top: 5px;
}


#import_excel .mfp-close {
    color: #2a41e8;
    top: 0px;
    right: 0px;
}
.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;
}

#reject-app .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;
}

.single-page-section img {
    width: 100%;
    border-radius: 25px;
}
form .page-thumbnail-wrapper {
    height: 200px; !important;
}

@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_direction {
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
    /*background: #176eec;*/
    border-radius: 25px;
    /*border: 1px solid #176eec;*/
}

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

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

.card_direction .card-front,
.card_direction .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_direction .card-front {
    background-color: #176eec;
    display: block;
}

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

.card_direction .card-back {
    background-color: #f1f1f1;
    transform: rotateY(180deg);
    position: relative;
    overflow: hidden;
    border: 1px solid #c9c9c9;
}
.card_direction .card-icon {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 50px;
    color: #333;
}

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

.card_direction .card-back p {
    font-size: 16px;
    color: #333;
}
.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: 80px;
    color: #fff;
}
.registry_link {
    cursor: pointer;
    transition: 0.3s ease-in-out;
    padding: 20px;
    border-right: 1px solid #fff;
    display: block;
}
.registries .registry_link:last-child {
    border-right: transparent;
}
.registry_link .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_link h4 {
    color: #fff;
    margin-bottom: 20px;
    transition: 0.3s ease-in-out;
    text-transform: uppercase;
}
.registry_link .registry_short_description {
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease-in-out;
}
.registry_link:hover {
    margin-top: -50px;
}
.registry_link:hover .registry_short_description {
    opacity: 1;
    visibility: visible;
}


/*
------------------------- Страница "Документы
*/

.document-card {
    transition: all 0.3s ease;
}
.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.icon {
    width: 32px;
    height: 32px;
}
/*
------------------------- Конец Страница "Документы
*/

/*
-------------------- FOOTER
*/
.footer_block_list {
    padding: 0;
    margin: 0;
}
.footer_block_list li {
    list-style: none !important;
    color: white !important;
    margin-bottom: 20px;
}
.footer_block_list li {
    list-style: none !important;
    color: white !important;
    margin-bottom: 20px;
}


/*
-------------------- END FOOTER
*/

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


/*
FLIP BOX
*/
.flip-box {
    position: relative;
    perspective: 1000px;
    cursor: pointer;
}
.flip-box .front,
.flip-box .back {
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    /*border: 1px solid #ccc;*/
    box-sizing: border-box;
    /*padding: 20px;*/
    /*border-radius: 25px;*/
}

/*
Admin MENU
*/
#menu_wrap {
    padding: 15px;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

#menu_wrap ul a {
    text-decoration: none;
    color: #222;
    display: inline-block;

    background: white;

    margin: 5px 0;
}

/*
Карточки сотрудников
*/
.freelancer {
    width: 100% !important;
}
.freelancer .card_step_btn {
    width: 100% !important;
}


/*
Праздники
*/
#holiday-widget {
    position: fixed;
    top: 50%;               /* ставим середину окна */
    left: 0;                /* прижимаем к левому краю */
    transform: translateY(-50%); /* смещаем вверх на половину высоты, чтобы выровнять по центру */
    background: #ffcc00;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
#holiday-widget:hover {
    transform: translateY(-49%)
}

/* Окно поздравления */
#holiday-message {
    position: fixed;
    top: 100px;
    left: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    width: 300px;
    display: none;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
    text-align: center;
}
#holiday-message h2 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #e63946;
}
#holiday-message p {
    margin: 10px 0 0;
    font-size: 16px;
    color: #333;
}
#holiday-message img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Анимация */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}



@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;
    }
}

