/********** Template CSS **********/
:root {
    --primary: #2a68af;
    --secondary: #555555;
    --light: #F1F3FA;
    --dark: #1C2035;
    --bs-gutter-x: 1.5rem;
}

body {
    font-size: 1.1rem !important;
    /*background-color: #e7f9ff;*/
}

.bg-dark {
    background-color: var(--dark) !important;
    color: var(--light) !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    color: white !important;
}

.back-to-top i {
    font-size: 1.25rem;
    color: white;
}

.back-to-top:hover {
    color: white !important;
}

.fw-medium {
    font-weight: 500;
}

#block-spbniifk-grow-menyudlyapodvala .nav-link {
    color: lightskyblue;
}
#block-spbniifk-grow-account-menu .nav-link {
    color: lightyellow;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.bg-primary,
.btn-primary {
    background-color: var(--primary) !important;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}


.bg-secondary,
.btn-secondary {
    background-color: var(--secondary) !important;
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--dark);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 3.5rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header-light {
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url(../img/background/title_white_2.jpg) center center no-repeat;
    background-size: cover;
}

.page-header-dark {
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .2)), url(../img/background/title_dark_1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Features ***/
.feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .04);
}

.feature-item {
    border-color: rgba(0, 0, 0, .02) !important;
}


/*** About ***/
.about {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/about.jpg) left center no-repeat;
    background-size: cover;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 36px;
    height: 46px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: 3px;
    border-left: 30px solid #FFFFFF;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Service ***/
.service-item .service-text {
    position: relative;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-align: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
    transition: .5s;
    z-index: 2;
}

.service-item:hover .service-text {
    top: -1.5rem;
}

.service-item .service-text h5 {
    transition: .5s;
}

.service-item:hover .service-text h5 {
    color: var(--primary);
}

.service-item .service-btn {
    position: absolute;
    width: 80%;
    height: 3rem;
    left: 10%;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    transition: .5s;
    z-index: 1;
}

.service-item:hover .service-btn {
    bottom: -1.5rem;
}


/*** Project ***/
.project-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.project-item .project-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    padding-top: 60px;
    transition: .5s;
}

.project-item:hover .project-overlay {
    opacity: 1;
    padding-top: 0;
}

.project-carousel-container {
    position:relative;
}

.project-carousel-container .swiper-button-prev,
.project-carousel-container .swiper-button-next {
    position: absolute;
    top: 30px;
    width: 55px;
    height: 55px;
    background-color: transparent;
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    color: var(--secondary);
    transition: .5s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.project-carousel-container .swiper-button-prev svg,
.project-carousel-container .swiper-button-next svg {
    height: auto !important;
    width: auto !important;
}

.project-carousel-container .swiper-button-prev {
    right: 70px;
    left: auto;
}

.project-carousel-container .swiper-button-next {
    right: 0;
    left: auto;
}

.project-carousel-container .swiper-button-prev:hover,
.project-carousel-container .swiper-button-next:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.project-carousel-container .swiper-pagination {
    position: absolute;
    bottom: 0;
}

.project-carousel-container .swiper-pagination-bullet {
    background: var(--secondary);
}

.project-carousel-container .swiper-pagination-bullet-active {
    background: var(--primary);
}

@media (max-width: 768px) {
    .project-carousel-container .swiper-button-prev,
    .project-carousel-container .swiper-button-next {
        top: 70px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .project-carousel-container .swiper-button-prev {
        right: 55%;
    }

    .project-carousel-container .swiper-button-next {
        right: 30%;
    }
}


/*** Team ***/
.team-item {
    position: relative;
    text-align: center;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .team-social {
    position: absolute;
    padding: 0;
    top: 15px;
    left: 0;
    overflow: hidden;
}

.team-item .team-social li {
    list-style-type: none;
    margin-bottom: 10px;
    margin-left: -50px;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social li {
    margin-left: 15px;
    opacity: 1;
}

.team-item .team-social li .btn {
    background: #FFFFFF;
    color: var(--primary);
    border-radius: 40px;
    transition: .5s;
}

.team-item .team-social li .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item .team-social li:nth-child(1) {
    transition-delay: .1s;
}

.team-item .team-social li:nth-child(2) {
    transition-delay: .2s;
}

.team-item .team-social li:nth-child(3) {
    transition-delay: .3s;
}

.team-item .team-social li:nth-child(4) {
    transition-delay: .4s;
}

.team-item .team-social li:nth-child(5) {
    transition-delay: .5s;
}


/*** Testimonial ***/
.testimonial-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    transition: .5s;
}

.swiper-slide .testimonial-item,
.testimonial-item * {
    transition: .5s;
}

.swiper-slide-active .testimonial-item,
.testimonial-item:hover {
    background: var(--primary);
}

.swiper-slide-active .testimonial-item *,
.testimonial-item:hover * {
    color: #FFFFFF !important;
}

.testimonial-item img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 100px;
}

.testimonial-carousel .swiper-button-prev,
.testimonial-carousel .swiper-button-next {
    position: absolute;
    top: -65px;
    width: 55px;
    height: 55px;
    background-color: transparent;
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    color: var(--secondary);
    transition: .5s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.testimonial-carousel .swiper-button-prev {
    right: 70px;
    left: auto;
}

.testimonial-carousel .swiper-button-next {
    right: 0;
    left: auto;
}

.testimonial-carousel .swiper-button-prev:hover,
.testimonial-carousel .swiper-button-next:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.testimonial-carousel .swiper-pagination {
    position: absolute;
    bottom: -50px;
}

.testimonial-carousel .swiper-pagination-bullet {
    background: var(--secondary);
}

.testimonial-carousel .swiper-pagination-bullet-active {
    background: var(--primary);
}

@media (max-width: 768px) {
    .testimonial-carousel .swiper-button-prev,
    .testimonial-carousel .swiper-button-next {
        top: -50px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .testimonial-carousel .swiper-button-prev {
        right: 60px;
    }

    .testimonial-carousel .swiper-button-next {
        right: 0;
    }
}


/*** Footer ***/
.footer {
    color: #B0B9AE;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: #B0B9AE;
}

.copyright {
    background: #111111;
}

.copyright a:hover {
    color: var(--primary) !important;
}


/*** WOW.js Animation Fix ***/
.wow {
    opacity: 1;
    visibility: visible;
}


/* Bootstrap v3.3.2 styles */
.well {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}
.well blockquote {
  border-color: #ddd;
  border-color: rgba(0,0,0,.15);
}
.well-lg {
  padding: 24px;
  border-radius: 6px;
}
.well-sm {
  padding: 9px;
  border-radius: 3px;
}

@media screen and (min-width: 768px) {
    .container .jumbotron, .container-fluid .jumbotron {
        padding-right: 60px;
        padding-left: 60px;
    }
}
.container .jumbotron, .container-fluid .jumbotron {
    border-radius: 6px;
}
@media screen and (min-width: 768px) {
    .jumbotron {
        padding: 48px 0;
    }
}
.jumbotron {
    padding: 30px 15px;
    margin-bottom: 30px;
    color: inherit;
    background-color: #eee;
}


.jumbotron h1 { color: inherit; }
.jumbotron p {
  margin-bottom: 15px;
  font-size: 21px;
  font-weight: 200;
}
.jumbotron > hr { border-top-color: #d5d5d5; }

/* Inside a .container (non-fluid) */
.jumbotron { border-radius: 6px; }
.jumbotron .container { max-width: 100%; }


#block-spbniifk-grow-views-block-frontpage-block-news .swiper-slide {
    height: auto;
}

/* Делает .views-row "невидимым" для сетки, сохраняя .col прямым потомком .row */
.views-element-container .row > .views-row {
  display: contents;
}

/* Опционально: выравнивает высоту карточек в строке */
.team-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff; /* или ваш фон */
  box-shadow: 0 0 30px rgba(0,0,0,.07); /* если нужно как в оригинале */
}

.unpublished {
    background-color: #fccad1;
}

.node__person_page .field--name-field-image img {
    max-width: 100%;
    height: auto;
}