@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


body {
    background: #010F2C;
    color: #fff;
    font-family: "Inter", serif;
    font-optical-sizing: auto;
    font-style: normal;
    overflow: auto;
    /* Разрешаем прокрутку контента */
}

h2 {
    font-weight: 600
}

.navbar_top a {
    text-decoration: none;
    color: #fff;
}

.nav-link {
    font-weight: 400;
    text-transform: uppercase;
    color: #0A165E;
}

.nav-link:hover {
    color: #44C45A;
}


.news:hover h4 {
    color: #44C45A;
}

.navbar {
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
}

.dropdown:hover .dropdown-menu {
    display: block;
    border-radius: 16px;
    padding: 20px;
    margin-top: -10px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
    position: relative;
    line-height: 2rem;
    font-weight: 400;
    color: #0A165E;
}

.dropdown-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #E5E5E5;
    /* Цвет полоски */
}

.last::after {
    height: 0px;
}

.elipses {
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    height: 900px;
    overflow: hidden;
    z-index: -10000;
}



.bg_elips_left {
    position: absolute;
    width: 200px;
    height: 600px;
    background: #2B4DFF;
    filter: blur(10.5rem);
    left: 0px;
    top: 0%;
    transform: translateY(-50%);
    transform: translateX(-50%);
    overflow: hidden;
    z-index: -1000;
}

.bg_elips_right {
    position: absolute;
    width: 200px;
    height: 600px;
    background: #2B4DFF;
    filter: blur(8.5rem);
    right: 50%;
    top: 0%;
    margin-right: -500px;
    overflow: hidden;
    z-index: -1000;
}

.fade-in {
    opacity: 0;
    transform: scale(0.5); /* Начальное состояние: уменьшенный размер */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: scale(1); /* Конечное состояние: нормальный размер */
}


.about_img {
    animation-duration: 8s;
    animation-iteration-count: infinite;
    transform-origin: bottom;
}

.bounce-2 {
        animation-name: bounce-2;
        animation-timing-function: ease;
    }
@keyframes bounce-2 {
        0%   { transform: translateY(0); }
        50%  { transform: translateY(-50px); }
        100% { transform: translateY(0); }
    }

.elipses_bottom {
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 900px;
    overflow: hidden;
}

.bg_elips_left_bot {
    position: absolute;
    width: 200px;
    height: 600px;
    background: #2B4DFF;
    filter: blur(20.5rem);
    left: 0px;
    bottom: 0%;
    transform: translateY(-50%);
    transform: translateX(-50%);
    overflow: hidden;
    z-index: -1000;
}

.bg_elips_right_bot {
    position: absolute;
    width: 200px;
    height: 600px;
    background: #2B4DFF;
    filter: blur(15.5rem);
    right: 50%;
    bottom: 0%;
    margin-right: -500px;
    overflow: hidden;
    z-index: -1000;
}

.rotating {
    animation: rotation 8s infinite linear;
    overflow: hidden;
    transform-origin: center;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}

.video-background {
    position: relative;
    margin-top: -20px;
    width: 100%;
    height: 100vh;
    /* или любой другой размер для блока */
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Обеспечивает сохранение пропорций видео, но оно заполняет весь блок */
    z-index: -1;
    /* Видео находится за контентом */
}

.content {
    position: relative;
    z-index: 1;
    /* Контент поверх видео */
    color: white;
    padding: 20px;
    text-align: center;
}


.title_hero {
    font-weight: 700;
    font-size: 3.4rem;
    line-height: 2.8rem
}

.title_hero span {
    font-weight: 400;
    font-size: 2.4rem
}


h1 {
    position: relative;
    display: inline-block;
    /* Позволяет заголовку принимать ширину контента */
    padding-bottom: 10px;
    /* Отступ снизу для создания пространства для полоски */
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    /* Помещаем полоску прямо под заголовком */
    left: 0;
    width: 100%;
    /* Ширина полоски = ширина текста */
    height: 2px;
    /* Высота полоски */
    background-color: white;
    /* Белый цвет полоски */
}


.zoom {
    transition: transform 3.2s;
    /* Animation */
}

.zoom:hover {
    transform: scale(1.1);
    /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}

.optech-portfolio-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 18px;

}

.optech-portfolio-wrap {
    margin-bottom: 24px;
    text-align: center;
}

.optech-portfolio-data {
    bottom: 0;
    z-index: 2;
    padding: 38px 15px;
    width: 100%;
    position: absolute;
    transition: all 0.4s;
}

.optech-portfolio-data a {
    color: #fff;
    text-decoration: none;
}

.optech-portfolio-thumb img {
    max-width: 100%;
}

.optech_image {
    opacity: 0.5;
    transition: 1.3s;
}

.optech-portfolio-thumb:hover img {
    transform: scale(1.3);
}

.dialnist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0C1968;
    opacity: 0.5;
    transition: opacity 1.3s;
}


.dialnist-overlay:hover {
    opacity: 0.8;
}

.optech-portfolio-wrap:hover h4{
    color: #44c45a;
}

.optech-portfolio-wrap:hover .dialnist_icon {
    background: #44c45a;
}



.dialnist_icon {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 16px;
    opacity: 1;
    transition: 1.3s;
}

.advantages_card {
    width: 20%;
    padding-left: 10px;
    padding-right: 10px;
}

.advantages_card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    min-height: 2rem
}

.advantages_card p {
    font-size: 16px;
    font-weight: 400
}

.bg-works {
    background: #1F37BC;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.card {
    background: none;
    color: #fff;
    border: none;
    clip-path: polygon(26.2% 0%, 100.3% 0%, 100% 14%, 100% 86%, 100.3% 100%, 15% 100%, 0% 100.3%, 0.3% 20.8%);

}

.card-img {
    border-radius: 16px;
}

.card-img-overlay {
    position: absolute;
    top: auto;
    bottom: 10px;

}

.card-title {
    font-weight: 800;
}

.card-grad {
    display: block;
    position: absolute;
    border-radius: 16px;
    width: 100%;
    height: 100%;
    background: rgb(10, 28, 88);
    background: linear-gradient(0deg, rgba(10, 28, 88, 1) 0%, rgba(10, 28, 88, 0) 51%, rgba(10, 28, 88, 0) 100%);
    transition: background 1.2s ease-in-out;
    /* Плавный переход для свойства background */
}

.card-grad:hover {
    background: rgb(10, 28, 88);
    background: linear-gradient(0deg, rgba(10, 28, 88, 1) 0%, rgba(10, 28, 88, 0.6) 72%, rgba(10, 28, 88, 0) 100%);
}




.news {
    transition: opacity 1.9s;
}

.news a {
    color: #fff;
    text-decoration: none;
}

.news a:hover {
    opacity: 0.8;
}

.logo_partner {
    background: #fff;
    width: 100%;
    min-height: 120px;
    padding: 16px;
    display: flex;
    align-items: center;
    border-radius: 12px;
}

.cta_block {
    background: #fff;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 13px 23px
}

.cta_block h3 {
    color: #2B4DFF;
    font-weight: 800;
    margin: 0;
}

.cta_block_text {
    color: #0D1A69;
}

.btn_cta {
    border: 2px #2B4DFF solid;
    padding: 16px 30px;
    text-transform: uppercase;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.6s;
}

.btn_cta:hover {
    background: #2B4DFF;
    color: #fff
}

.footer {
    background-image: url(../img/footer_bg.svg);
    padding-bottom: 5rem;
    padding-top: 5rem;
}

.footer_list {
    display: flex;
    align-content: flex-start;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: nowrap;
    align-items: center;
    gap: 13px;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    opacity: 0.6
}




/* Стили для кастомного меню */
.custom-dropdown {
    position: absolute;
    top: 70px;
    left: 5%;
    background-color: white;
    width: 90%;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1050;
}

.custom-dropdown.show {
    display: flex;
    /* Показываем меню */
    flex-wrap: wrap;
    justify-content: space-between;
}

.custom-dropdown .dropdown-column {
    flex: 0 0 23%;
    /* 4 колонки, равномерное распределение */
    text-align: center;
}

.custom-dropdown img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
}

.custom-dropdown a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.custom-dropdown a:hover {
    color: #007BFF;
}

.advantages_container { display: flex;}




@media only screen and (max-width: 600px) {
    .advantages_container {
        display: grid;
        justify-items: center;
        grid-template-columns: 1fr;
    }

    .navbar_top {grid-template-columns: 1fr 1fr}
    .navbar_top a {font-size: 14px}

    .advantages_card {
        display: flex;
        text-align: left;
        width: auto;
        padding-left: 8px;
        padding-right: 8px;
        padding-bottom: 24px;
        align-items: flex-start;
        justify-content: space-evenly;
        flex-direction: row;
        flex-wrap: nowrap;}

    .news img {width: 100%;}
    .advantages_card h4 {margin-top: 0; margin-bottom: 0px;}
    .advantages_title {margin-left: 16px}

    .news {padding-bottom: 2rem}
    .top_partners img {margin-bottom: 30px}
    .logo_partner {min-height: 158px}

    .cta_block {padding: 27px 40px 50px 31px; flex-direction: column; text-align: center; gap: 40px}
    .footer_about {padding-left: 40px}
    .navbar-nav {text-align: center;}
    .dropdown-menu {text-align: center;}
    .video-background {max-height: 219px;}
    .video_bg {background-image: url(../img/video_bg.jpg); max-height: 219px; z-index: -100; background-size: cover;
        background-position: center;}
        .content {min-height: 219px;}
    .title_hero {font-size: 1.4rem; line-height: 1.8rem;}
    .title_hero span {font-size: 1.2rem; line-height: 1.8rem;}
    .dialnist_icon {
    background: #fff;
    padding: 10px;
    width: 63px;
    margin-bottom: 10px;
    border-radius: 16px;
    opacity: 1;
    transition: 1.3s;}
    .optech-portfolio-data h4{font-size: 16px}
    .optech-portfolio-data {padding: 44px 7px}
    .about img {padding: 0px 8px 80px 8px}
    .btn-about {width: 100%}
}

.navbar-nav {
justify-content: space-between;}

.nav-link {font-size: 14px;}

@media only screen and (max-width: 1424px) {
    .nav-link {font-size: 0.7rem;
     padding-left: 8px !important;
     padding-right: 8px !important;
    }

.navbar-brand img{
   width: 100%;
    }
}

/* Language switcher (Polylang) */
.navbar_top .lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.navbar_top .lang-switcher .lang-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    text-transform: uppercase;
    font-weight: 400;
    opacity: .7;
    transition: opacity .2s ease;
}

.navbar_top .lang-switcher .lang-link:hover {
    opacity: 1;
    color: #44C45A;
}

.navbar_top .lang-switcher .lang-link.current-lang {
    opacity: 1;
    font-weight: 700;
}

.navbar_top .lang-switcher .lang-link img {
    width: 20px;
    height: auto;
    display: inline-block;
}
