/* Основной стиль */
body,
h1, h2, h3, h4, h5, h6,
.navbar,
.btn,
.form-control,
.card-title {
    font-family: 'Cera Pro', sans-serif;
}

a:hover {
    text-decoration: none;
}

.nav-link {
    line-height: 60px;
    padding-left: 22px !important;
    padding-right: 22px !important;
    color:  #FFFFFF !important;
    font-size: 14px !important;
    box-shadow: none !important;
}
.nav-link:hover {
    background-color: #0b2237 !important;
}
.btn-login:hover {
    background-color: #0b2237 !important;
}
a.nav-link.me-3:hover {
    background-color: transparent !important;
}
.logo {
    font-size: 32px !important;
}
a.nav-link.me-3 {
    cursor: pointer;
}
.btn-footer-chat i {
    margin-bottom: -1px;
}
a.social i {
    font-size: 20px;
}

.footer-nav .nav-link {
    padding: 0.5rem 0;
    font-size: 12px !important;
    padding: 0 !important;
    margin-right: 15px;
    font-weight: 400;
    color: rgb(99, 111, 125) !important;
    line-height: 24px;
    background: transparent !important;
}
.footer-nav .nav-link:hover {
    color: rgb(153,161,171) !important;
    background: transparent !important;
}





ul.footer li a {
    color: #000 !important;
}
ul.footer li a:hover {
    color: #000 !important;
    background-color: transparent;
    padding: 5px 10px;

}
.btn-footer-chat {
    text-decoration: none;
    font-size: 10px;
    background-color: rgb(18, 57, 91);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
}

.footer-text-phone {
    font-weight: 400;
    font-size: 12px;
    margin-bottom: 0px;
    line-height: 14px;
    margin-top: 15px;
}

.card-blog-text {
    font-size: 12px;
    line-height: 16px;
    color: rgb(153,161,171);
}

.card-btn-link {
    display: inline-flex;
    align-items: center;
    color: #333;
    background: transparent;
    text-decoration: none;
    font-weight: 400;
    outline: none;
    font-size: 12px;
    padding-bottom: 2px; /* Немного отступа, чтобы бордер не прилипал к тексту */
}

.card-blog {
    overflow: hidden; /* Важно для обрезки масштабируемой картинки */
    transition: box-shadow 0.3s ease;
}

.card-blog-image {
    transition: transform 0.4s ease;
    backface-visibility: hidden; /* Убираем мерцание при трансформации */
}

.card-blog:hover .card-blog-image {
    transform: scale(1.05); /* Увеличиваем изображение на 5% */
}

/* Необязательно: тень при ховере */
.card-blog:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.nav-blog-a {
    background: transparent !important;
    font-size: 14px;
    font-weight: 400; !important;
    transition: all 0.3s ease;
}
.nav-blog-a:hover {
    background: #fff !important;
    transition: all 0.3s ease;
    color: rgb(6,133,195) !important;
}
.nav-blog-a .me-3 {
    margin-bottom: -3px !important;
}
.nav-blog-a .icon-container  {
    background: #fff !important;
    border-radius: 6px !important;

}

div.card.card-blog {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 10px !important;
    box-shadow: 0px 10px 40px -35px rgba(0, 0, 0, 0.45) !important;
}
.card-btn-link span {
    border-bottom: 0.5px solid currentColor; /* Бордер только под текстом */
    position: relative;
    transition: border-color 0.3s ease;
}



.card-btn-link .card-btn-icon {
    margin-left: 6px;
    margin-bottom: -3px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.card-btn-link:hover .card-btn-icon {
    transform: translateX(4px); /* Сдвигаем стрелку вправо при ховере */
}

.card-blog-title {
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    margin-bottom: 5px !important;
}

div.card.card-blog {
    overflow: auto;
    height: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    text-align: left !important;
}
div.card.card-blog div.card-body {
    align-items: start !important;
    background: #fff !important;
    z-index: 99999;
}


.card2 {
    background: rgb(245, 245, 245);
    border-radius: 10px;
}
.link-download-app {
    height: 36px;
    border-radius: 6px;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
div.card.bg-header.text-white {
    border-radius: 8px;
}
.text-right {
    text-align: right;
}
div.card.bg-header.text-white h5 {
    font-size: 16px !important;
    font-weight: 500;
}
.btn-login {
    color: #fff !important;
    background-color: transparent !important;
    border: none;
    padding-left: 15px;
    padding-top: 10px;
    font-weight: 500;
    border-radius: 8px;
    padding-bottom: 10px;
    padding-right: 15px;
    outline: none !important;
    box-shadow: none !important;
}
.glav_enter {
background-color: #0b2237 !important;
}

/* Мега-меню на всю ширину */
.dropdown-menu.mega-menu {
    position: fixed !important;
    top: 74px; /* высота navbar */
    left: 0;
    width: 100%;
    border: none;
    border-radius: 0;
    background-color: #fff;
    padding: 1rem 0;
    z-index: 1050;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}
nav.navbar {
    /*max-height: 82px;*/
}

.dropdown-item {
    padding-top: 10px;
    font-size: 14px;
    padding-bottom: 10px;
}
.dropdown-item:hover {
    background-color: #fff;
    border-radius: 4px;
}

a.nav-link.dropdown-toggle.show {
    color: #000000 !important;
    background-color: #fff !important;
    color: #000000 !important;
    outline: none !important;
}

/* Убираем стандартные отступы у .dropdown-menu */
.dropdown-menu.mega-menu .container-fluid {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}
/* Кнопки */
.btn-primary {
    background-color: rgb(18, 57, 91);
    border-color: rgb(18, 57, 91);
}

.btn-primary:hover {
    background-color: rgb(23, 74, 119) !important;
    border-color: rgb(23, 74, 119) !important;
}
.bg-header {
    background-color: rgb(18, 57, 91);
    border-color: #0033A0;
}

.btn-primary:hover {
    background-color: #00227B;
    border-color: #00227B;
}

/* Карточки */
.card .card-title {
    font-weight: 500;
}
.card {
    height: 150px;
    overflow: hidden !important;
}

/* Формы */
.form-label {
    font-weight: 500;
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.card-title {
    margin-top: 10px;
}

/* Стили для контейнера иконки */
.icon-container {
    position: relative; /* Относительное позиционирование */
    top: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Стили для иконки */
.fa-duotone {
    font-size: 42px;
    transition: transform 0.3s ease; /* Плавный переход при наведении */
}

/* Анимация движения иконки слева направо при наведении */
.card:hover .icon-container {
    /*animation: carMovement 2s linear infinite; !* Анимация движения *!*/
}

/* Анимация при наведении на карточку */
.card:hover .fa-duotone {
    /*transform: translateY(-10px) scale(1.1); !* Поднимается и увеличивается *!*/
}
.card {
    transition: .3s;
}
/* Анимация тряски */
@keyframes shake {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    10% { transform: translate(-2px, -2px) rotate(-1deg); }
    20% { transform: translate(2px, -1px) rotate(1deg); }
    30% { transform: translate(-2px, 1px) rotate(0deg); }
    40% { transform: translate(2px, 2px) rotate(1deg); }
    50% { transform: translate(-2px, -1px) rotate(-1deg); }
    60% { transform: translate(2px, 0px) rotate(0deg); }
    70% { transform: translate(-2px, 1px) rotate(1deg); }
    80% { transform: translate(2px, -2px) rotate(-1deg); }
    90% { transform: translate(0px, 0px) rotate(0deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

/* Применяем анимацию при наведении на карточку */
.card:hover .icon-container-bank {
    /*animation: shake 1s ease-in-out;*/
    /*animation-iteration-count: infinite; !* Можно убрать, если нужно только один раз *!*/
}

@keyframes pulse {
    0% { transform: scale(1); }
    10% { transform: scale(1); }
    20% { transform: scale(1); }
    30% { transform: scale(1); }
    40% { transform: scale(1); }
    50% { transform: scale(1); }
    60% { transform: scale(1); }
    70% { transform: scale(1); }
    80% { transform: scale(1); }
    90% { transform: scale(1); }
    100% { transform: scale(1); }
}

.dropdown-item.active {
    background: transparent !important;
    color: #000 !important;
    font-weight: 500 !important;
}

.dropdown-item:hover {
    background: transparent !important;
    color: #000 !important;
    font-weight: 400 !important;
}

.dropdown-item:hover span.me-3{
    background: transparent !important;
    color: rgb(0,175,255) !important;
    font-weight: 400 !important;
}


/* Применяем анимацию при наведении на карточку */
.card:hover .icon-container-bank {
    /*animation: shake 1s ease-in-out;*/
    /*animation-iteration-count: infinite; !* Можно убрать, если нужно только один раз *!*/
}
.card:hover .icon-container {
    --fa-primary-color: #79889b !important;
    --fa-secondary-opacity: 1;
    --fa-secondary-color: #fff !important;
    transition: color 0.3s ease;
}

.container-xxxl {
    position: relative;
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
}
.osago_p_text {
    max-width: 80%;
    margin: 0 auto;
    color: rgb(99, 111, 125);
    font-size: 16px;
    line-height: 20px;
    font-weight: 300;
}
.osago_title_text {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 50px;
    line-height: 52px;
}

.card:hover {
    box-shadow: 0 10px 40px 0 rgba(10,37,64,.251),0 3px 8px 0 rgba(10,37,64,.271) !important;
    transition: .3s;
}
/* Стили для контейнера иконки */
.icon-container {
    position: relative; /* Относительное позиционирование */
    top: 0px;
    left: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}




/* Стили для контейнера иконки */


/* Стили для иконки */
.fa-duotone {
    font-size: 42px;
    transition: transform 0.3s ease; /* Плавный переход при наведении */
}

/* Анимация движения иконки слева направо */
@keyframes carMovement {
    0% {
        transform: translateX(-120px); /* Начинает с левого края */
    }
    100% {
        transform: translateX(calc(100% + 100px)); /* Выезжает за правый край */
    }
}

/* Дополнительная анимация при наведении на карточку */
.card:hover .fa-duotone {
    /*transform: translateY(-10px) scale(1.1); !* Поднимается и увеличивается *!*/
}


@media (max-width: 768px) {
    /*.row {*/
    /*    display: flex;*/
    /*    overflow-x: auto; !* Добавляем горизонтальный скролл *!*/
    /*    scroll-snap-type: x mandatory; !* Включаем snap points *!*/
    /*    -webkit-overflow-scrolling: touch; !* Плавный скролл на iOS *!*/
    /*    white-space: nowrap; !* Убираем перенос строк *!*/
    /*}*/

    .card-container {
        display: inline-block; /* Заставляем колонки оставаться в одной строке */
        flex-shrink: 0; /* Запрещаем уменьшение размера колонок */

    }

    .card {
        margin-left: 10px; /* Добавляем отступ между карточками */

        column-gap: 110px;
        flex-wrap: wrap;
        row-gap: 0;
        /*min-width: 250px; !* Минимальная ширина карточки на мобильном *!*/
    }
}