header{
    background-color: #000000;
}

main .stars, main .twinkling, main .clouds{
    position: fixed;
}

.main{
    padding-bottom: 0px;
}

@media (max-width: 991px){
    .main{
        gap: 60px;
    }
}

/* // video modal */
.modal{
    .modal-dialog{
        height: 100%!important;
    }
    .modal-body{
        display: flex;
        align-items: center;
        justify-content: center;
        @media (min-width: 992px){
            iframe{
                width: 75%!important;
                height: 75vh!important;
            }
        }
        @media (max-width: 991px){
            iframe{
                width: 100%!important;
                height: 50vh!important;
            }
        }
    }
}

.main .satellite .container{
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.main .satellite .satellite__image{
    max-width: 400px;
}

.geoscan-cubesat-block{
    background-color: #222222;
}

@media (min-width: 992px) {
    .geoscan-cubesat-block {
        padding-top: 94px;
        padding-bottom: 94px;
    }
}

.sputnik-modules{
    padding-bottom: 120px;
}

@media (max-width: 991px){
    .sputnik-modules{
        padding-bottom: 60px;
    }
}

.sputnik-modules__img{
    width: 670px;
    margin-left: 50%;
    margin-top: -370px;
}
.sputnik-modules__img::before{
    opacity: 0.25;
    left: -50px;
}

@media (min-width: 768px) and (max-width: 991px){
    .sputnik-modules__img{
        width: 340px;
        margin-left: 52%;
        margin-top: -330px;
    }
}

@media (max-width: 767px){

    .sputnik-modules .text-block{
        margin-bottom: 0px;
    }

    .sputnik-modules__img{
        width: 100%;
        margin-left: 0;
        margin-top: 48px;
        margin-bottom: 0;
    }

    .sputnik-modules__img::before{
        opacity: 0.25;
        left: -115px;
        top: -400px;
        width: 500px;
    }
}

.first-screen {
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
}

/* Затемняющий градиент */
.first-screen::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    background: linear-gradient(105.01deg,
        rgba(0, 0, 0, 0.7) 30.14%,
        rgba(0, 0, 0, 0.6) 54.27%,
        rgba(0, 0, 0, 0.3) 81.55%);
    pointer-events: none;
}

/* Картинка: медленное приближение при загрузке */
.first-screen__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenburns 20s ease-out both;
    will-change: transform;
}

@keyframes kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.15); }
}

/* Тёмный слой */
.first-screen__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}

/* Контент поверх */
.first-screen .first-screen__present-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding-top: 85px;
    height: 100vh;
}

@media (min-width: 992px){
    .first-screen .first-screen__present-block #main_text{
        max-width: 852px;
    }
}

@media (min-width: 768px) and (max-width: 991px){
    .first-screen .first-screen__present-block{
        padding-top: 140px;
        padding-bottom: 60px;
        height: auto;
    }
}
@media (max-width: 992px){
    .first-screen .first-screen__present-block{
        padding-top: 96px;
        padding-bottom: 60px;
        height: auto;
    }
}

/* Доступность */
@media (prefers-reduced-motion: reduce) {
    .first-screen__image {
        animation: none;
    }
}


.geoscan-cubesat-block::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: 55%;
    height: 115%;
    left: 15%;
    top: -7%;
    background: radial-gradient(50% 50% at 50% 50%, #115EFB 0%, rgba(17, 94, 251, 0) 100%);
    opacity: 0.3;
    -webkit-transform: matrix(-0.78, -0.63, -0.63, 0.78, 0, 0);
    transform: matrix(-1, -0.63, -0.9, 0.7, 0, 0);
}

@media (min-width: 768px) and (max-width: 991px){
    .geoscan-cubesat-block::before {
        width: 100%;
        height: 100%;
        left: 2%;
        top: -7%;
        background: radial-gradient(50% 50% at 50% 50%, #115EFB 0%, rgba(17, 94, 251, 0) 100%);
        -webkit-transform: matrix(-0.78, -0.63, -0.63, 0.78, 0, 0);
        transform: matrix(-1, -0.63, -0.9, 0.7, 0, 0);
    }
}

@media (max-width: 767px){
    .geoscan-cubesat-block::before {
        width: 73%;
        height: 80%;
        left: 15%;
        top: -15%;
        background: radial-gradient(50% 50% at 50% 50%, #115EFB 0%, rgba(17, 94, 251, 0) 100%);
        -webkit-transform: matrix(-0.78, -0.63, -0.63, 0.78, 0, 0);
        transform: matrix(-6, -0.1, -2, -1, 0, 0);
    }
}

/* Collapse cards */

.collapse-cards .header-text{
    margin-top: 100px;
}

.collapse-cards  .bottom-text-block{
    background-color: #111111;
    padding: 100px 0;
    margin-top: 100px;
}

@media (max-width: 991px){

    .collapse-cards .header-text{
        margin-top: 60px;
    }

    .collapse-cards  .bottom-text-block{
        padding: 60px 0;
    }
}

.collapse-cards  .bottom-text-block .header-text{
    margin-top: 0;
}

.collapse-cards  .description{
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0%;

}

.collapse-cards .item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 356px;
    border-radius: 30px;
    background-color: #000000;
}

@media (max-width: 767px){
    .collapse-cards .item {
        height: auto;
        min-height: 400px;
    }

    .collapse-cards .item.is-open .item__text{
        max-height: 500px!important;
    }
}

.collapse-cards .item.is-open{
    cursor: auto;
}

.collapse-cards .item__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all .4s;
}
.collapse-cards .item:not(.item.is-open):hover .item__image{
    opacity: .4;
}

.collapse-cards .item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.9) 100%);
    transition: all .4s;
}

.collapse-cards .item.is-open .item__overlay {
    background: #00000099;
}

.collapse-cards .item__content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    color: #fff;
}

.collapse-cards .item__title {
    font-family: "Benzin";
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
}

.collapse-cards .item__text {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.collapse-cards .item__text .href{
    border-bottom: 0;
    color: #115EFB;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    transition: all .2s;
}

.collapse-cards .item__text .href:hover{
    opacity: .4;
}

.collapse-cards .item__text p{
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0%;
    margin-bottom: 10px;
}

.collapse-cards .item__text p.big{
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
}

.collapse-cards .item__text p:last-child{
    margin-bottom: 0px;
}

.collapse-cards .item.is-open .item__text {
    max-height: 300px;
    opacity: 1;
}

.slider-gallery__attention{
    margin-top: 40px;
    font-size: 12px;
    line-height: 16px;
    color: #626262;
}

@media (max-width: 991px){
    .slider-gallery__attention{
        margin-top: 30px;
    }
}