@keyframes fadeInBefore {
    from {
        opacity: 0;
    }
    to {
        opacity: .3;
    }
}

@keyframes fadeInAfter {
    from {
        opacity: 0;
    }
    to {
        opacity: .5;
    }
}
@keyframes fadeInAfter {
    from {
        opacity: 0;
    }
    to {
        opacity: .5;
    }
}
@keyframes visib {
    from {
        visibility: hidden;
    }
    to {
        visibility: visible;
    }
}

html {
    scroll-behavior: smooth!important;
}

/*iframe {*/
/*    pointer-events: none;*/
/*}*/

.video-background {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: calc(100vh - 160px);
    border-radius: 6px;
    /*z-index: -1;*/
}
.ytp-chrome-top.ytp-show-cards-title {
    display: none!important;
}

.video-background:before {
    content: '';
    display: block;
    position: absolute;
    max-width: 1120px;
    max-height: 1120px;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 1120px;
    border-radius: 50%;
    background-color: #162340;
    opacity: .3;
    z-index: 2;
    animation: fadeInBefore 2s forwards;
}
.video-background:after {
    content: '';
    display: block;
    position: absolute;
    max-width: 820px;
    max-height: 820px;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 1120px;
    border-radius: 50%;
    background-color: #162340;
    opacity: .5;
    z-index: 2;
    animation: fadeInAfter 2s forwards;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}
.video-banner {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.content {
    position: absolute;
    z-index: 20;
    color: white;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.content p {
    width: 80%;
}
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loader {
    border: 8px solid #f3f3f3; /* Светлый фон */
    border-top: 8px solid #3498db; /* Синий цвет */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}
.content h1 {
    line-height: 1;
    letter-spacing: -1px;
    font-weight: 700;
    font-size: clamp(38px, 5vw, 70px);
    white-space: normal;
    text-shadow: rgb(11, 18, 54) 3px 3px 15px;
}
.frame-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 25px;
    width: 300%;
    left: -100%;
}
.frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-background {
    overflow: hidden;
    max-width: 100%;
}
.news {
    padding-top: 170px;
    padding-bottom: 40px;
}
.card-img-box {
    overflow: hidden;
}
.card img {
    transition: transform 0.4s ease-in-out;
}
.card img:hover{
    transform: scale(1.15);
}
.card-body{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.clickable-card {
    cursor: pointer;
}
.page-link {
    color: #3c2fc0;
}
.page-item.active .page-link {
    background-color: #bcbbfd;
    border-color: #bcbbfd;
}
.main-news-content {
    background-color: rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      padding: 1rem;
      border-radius: 0.5rem;
}
.news-single, .search-list {
    padding-top: 170px;
    padding-bottom: 40px;
}
.news-single .news-main-img{
    max-height: 450px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}
.news-single h1,.news-single h2, .news-single h3, .news-single h4, .news-single h5, .news-single h6 {
    color: #242e45;
    font-weight: 700;
}
.news-single .main-gallery .swiper-slide img {
    max-height: 300px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
.news-single  .thumbs-gallery .swiper-slide img {
    height: 60px;
    width: auto;
    object-fit: cover;
  }
.news-single .border-left{
    padding-left: 10px;
    border-left: 5px solid #3827ad!important;
}
.search input{
    padding-right: 50px;
}
.search button{
    position: absolute!important;
    right: 0!important;
    top: 50%!important;
    transform: translateY(-50%)!important;
    z-index: 2;
}
.form-control:focus, input:focus, select:focus, textarea:focus {
  border: 1px solid #3827ad;

}
.search .btn:hover, .search-block .btn:hover{
    border-color: transparent;
    box-shadow: none;
}
.search .btn:focus-visible{
    outline: none;
    border-color: transparent;
    background-color: transparent;
    box-shadow: none;
}
.search .btn:active, .search-block .btn.show{
    outline: none!important;
    border-color: transparent!important;
    background-color: transparent!important;
    box-shadow: none!important;
}
.btn-outline-secondary:not(:disabled):not(.disabled):active {
    background-color: transparent;
    border-color: transparent;
}
.search-block .dropdown-toggle::after {
    display: none;
}

.search .btn:hover svg{
    fill: #3827ad;
}
.breadcrumb-item {
    line-height: 20px;
}
.search .btn:focus-visible svg{
    fill: #3827ad;
}

@media screen and (max-width: 1120px) {
    .video-background:before {
        max-width: 820px;
        max-height: 820px;
        width: 820px;
        height: 820px;
    }
    .video-background:after {
        max-width: 620px;
        max-height: 620px;
        width: 620px;
        height: 620px;
    }
    .content p {
        width: 100%;
    }
}

@media screen and (max-width: 991px) {
    .video-background {
        height: calc(100vh - 134px);
        border-radius: 0;
    }

    .video-background:before {
        max-width: 620px;
        max-height: 620px;
        width: 620px;
        height: 620px;
    }
    .video-background:after {
        max-width: 420px;
        max-height: 420px;
        width: 420px;
        height: 420px;
    }
    .asside {
        margin-top: 1rem;
    }
    .asside hr{
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 767px) {
    .content {
        width: 90%;
    }
    .frame-container {
        padding-bottom: 0;
        padding-top: 0;
        width: 100%;
    }
    .frame-container iframe {
        display: none;
        height: 100%;
    }
    .video-background {
        padding-bottom: 0!important;
        height: calc(100vh - 164px)!important;
    }
    .news-single, .news {
        padding-top: 115px;
    }
    .breadcrumb-item {
        font-size: 9px;
    }
}

@media screen and (max-width: 567px) {
    .logo-granti {
        width: 64px;
        height: 64px;
    }
}