/* first */

.first {
    position: relative;
    padding-top: 42px;
    padding-bottom: 60px;
    background-color: #000;
    overflow: hidden;
}

.first-404 {
    position: relative;
    padding-top: 42px;
    padding-bottom: 280px;
    background-color: #000;
    overflow: hidden;
}

.first-cont {
    width: 576px;
    padding: 61px 0 31px;
}

.first-preTitle {
    font-size: 13px;
    line-height: 27px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.first-title {
    font-weight: bold;
    font-size: 48px;
    line-height: 58px;
    margin: 20px 0 30px;
}

.first-text {
    font-size: 16px;
    line-height: 27px;
}

.first-img {
    position: absolute;
    width: 767px;
    right: -18px;
    top: 0;
    z-index: 2;
}

.first-btn {
    margin-top: 45px;
}


/* work */

.work {
    padding: 80px 0 130px;
}

.work-left {
    width: 605px;
}

.work-text {
    font-size: 16px;
    line-height: 27px;
    margin: 30px 0 45px;
}

.work-right {
    width: 604px;
}

.work-item {
    background: linear-gradient(133.62deg, #0B0B0B 0%, #151515 102.23%);
    box-shadow: -8px -8px 15px #181818, 8px 8px 14px #000000;
    border-radius: 10px;
    box-sizing: border-box;
    width: 287px;
    height: 240px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    align-content: center;
}

.work-item:nth-last-child(-n+2) {
    margin-bottom: 0;
}

.work-item>img {
    height: 70px;
    display: block;
    margin: 0 auto;
}

.work-item__text {
    font-weight: 900;
    font-size: 16px;
    line-height: 27px;
    margin-top: 30px;
    width: 100%;
    text-align: center;
}


/* journal */

.journal .h2 {
    text-align: center;
}

.journal-box {
    margin-top: 60px;
}

.journal-col {
    width: 605px;
}

.journal-big {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 118px 27px 20px;
    background-size: cover;
    background-position: center;
    text-align: center;
}

.journal-big:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 40.09%, rgba(0, 0, 0, 0) 100%);
}

.journal-big * {
    position: relative;
    z-index: 2;
}

.big-title {
    margin-bottom: 22px;
}

.big-about {
    font-weight: bold;
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 26px;
    min-height: 41px;
}

.big-btn {
    display: inline-block;
}

.big-dis {
    position: absolute;
    bottom: 20px;
    left: 27px;
    right: 27px;
    font-size: 14px;
    line-height: 17px;
}

.journal-small {
    width: 100%;
    height: 130px;
    background: #151515;
    box-shadow: -8px -8px 10px #181818, 8px 8px 9px #000000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding-right: 30px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.journal-small:last-child {
    margin-bottom: 0;
}

.small-bg {
    width: 130px;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px 0px 0px 10px;
}

.small-info {
    width: calc(100% - 130px - 30px);
    margin-left: 30px;
}

.small-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.small-title {
    font-weight: 900;
    font-size: 21px;
    line-height: 27px;
	white-space: nowrap; /* Отменяем перенос текста */
    overflow: hidden; /* Обрезаем содержимое */
}

.small-date {
    font-size: 12px;
    line-height: 27px;
}

.small-about {
    font-size: 16px;
    line-height: 27px;
}


/* internet */

.internet {
    padding-top: 130px;
}

.internet .h2 {
    text-align: center;
    margin-bottom: 30px;
}

.internet-text {
    text-align: center;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
}

.internet-dec {
    height: 652px;
    position: relative;
    width: 100%;
    margin-top: 82px;
}

.dec-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dec {
    position: absolute;
    display: flex;
    align-items: center;
}

.dec-name {
    font-weight: 900;
    font-size: 21px;
    line-height: 27px;
    margin-right: 30px;
}

.dec-1 {
    left: 115px;
}

.dec-2 {
    top: 225px;
    left: 30px;
}

.dec-3 {
    left: 119px;
    bottom: 3px;
}

.dec-4,
.dec-5,
.dec-6 {
    flex-direction: row-reverse;
}

.dec-4 .dec-name,
.dec-5 .dec-name,
.dec-6 .dec-name {
    margin-left: 30px;
    margin-right: 0;
}

.dec-4 {
    right: 167px;
    top: 3px;
}

.dec-5 {
    top: 226px;
    right: 0;
}

.dec-6 {
    right: 48px;
    bottom: 0;
}


/* service */

.service {
    padding-top: 128px;
}

.service-col {
    width: 605px;
}

.service-text {
    font-size: 16px;
    line-height: 27px;
    margin: 40px 0 45px;
}

.service-space {
    padding: 40px 20px 66px;
    background: #151515;
    box-shadow: -8px -8px 10px #181818, 8px 8px 9px #000000;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
}

.service-space__title {
    font-weight: 600;
    font-size: 24px;
    line-height: 29px;
    margin-bottom: 40px;
    text-align: center;
}

.space-item {
    background: #151515;
    box-shadow: inset 0px 0px 44px -10px rgba(0, 0, 0, 0.75);
    border-radius: 8px;
    width: 182px;
    text-align: center;
    font-size: 16px;
    line-height: 19px;
}

.space-item>div {
    padding: 25px 0;
    box-sizing: border-box;
}

.space-top {
    border-bottom: 1px solid #414141;
}

.space-individual {
    font-weight: bold;
    font-size: 16px;
    line-height: 19px;
    margin-top: 26px;
    text-align: center;
}


/* main-bg */

.main-bg {
    position: absolute;
    top: 352px;
    left: 0;
    width: 100%;
    z-index: 1;
    max-height: calc(100vh - 352px);
    object-fit: cover;
}

@media screen and (max-width: 1300px) {

    /* first */
    .first-img {
        position: relative;
        width: 80vw;
        height: 30vh;
        object-fit: cover;
        top: unset;
        right: unset;
        left: 20vw;
    }

.first-404 {
    padding-bottom: 80px;

}

    /* work */
    .work-left {
        width: 100%;
        margin-bottom: 60px;
    }

    .work-right {
        width: 100%;
    }

    .work-item {
        width: 48%;
    }

    /* journal */
    .journal-col {
        width: 100%;
    }

    .journal-col:first-of-type {
        margin-bottom: 30px;
    }

    /* internet */
    .internet-dec {
        width: 1240px;
        transform: scale(0.55);
        left: -34%;
        margin: -80px 0;
    }

    /* service */
    .service-col {
        width: 100%;
    }

    .service-col:first-child {
        margin-bottom: 60px;
    }

    /* main-bg */


    .main-bg {
        display: none;
    }
}

@media screen and (max-width: 750px) {

    /* first */
    .first {
        padding-top: 0;
    }

    .first-cont {
        padding: 60px 0;
    }

    .first-title {
        font-size: 36px;
        line-height: 43px;
        margin: 20px 0;
    }

    .first-text {
        font-size: 16px;
        line-height: 27px;
    }

    .first-btn {
        width: 80vw;
        display: block;
        margin: 30px auto 0;
        padding: 20px 0;
    }

    .first-img {
        width: 100vw;
        height: 37.4vh;
        left: unset;
        right: unset;
    }

    /* work */
    .work {
        padding: 60px 0;
    }

    .work-text {
        margin: 20px 0 0;
    }

    .work-left {
        margin: 0;
    }

    .work-left .btn {
        display: none;
    }

    .work-right {
        display: none;
    }

    /* journal */
    .journal .h2 br {
        display: none;
    }

    .journal-box {
        margin-top: 30px;
    }

    .journal-big {
        height: 443px;
        padding-top: 120px;
        padding: 120px 20px 30px;
    }

    .big-title {
        font-size: 21px;
        line-height: 25px;
        margin-bottom: 20px;
    }

    .big-about {
        font-size: 16px;
        line-height: 19px;
        height: auto;
        margin-bottom: 30px;
    }

    .big-btn {
        width: calc(100% - 14px);
        margin: 0 7px;
    }

    .big-dis {
        bottom: 30px;
        left: 20px;
        right: 20px;
    }

    .journal-small {
        padding-right: 20px;
    }

    .small-bg {
        width: 112px;
    }

    .small-info {
        margin-left: 20px;
        width: calc(100% - 112px - 20px);
    }

    .small-top {
        align-items: flex-start;
    }

    .small-title {
        font-weight: 900;
        font-size: 18px;
        line-height: 27px;
		white-space: nowrap; /* Отменяем перенос текста */
		overflow: hidden; /* Обрезаем содержимое */
    }

    .small-date {
        line-height: 14px;
    }

    .small-about {
        font-size: 14px;
        line-height: 18px;
    }

    /* .internet */
    .internet {
        padding-top: 60px;
    }

    .internet .h2 {
        text-align: left;
        margin-bottom: 20px;
    }

    .internet-text {
        text-align: left;
    }

    .internet-dec {
        margin: 30px 0 0 0;
        transform: none;
        width: 100%;
    }

    .dec-main {
        display: none;
    }

    .internet-dec {
        position: static;
        left: unset;
        height: auto;
    }

    .dec {
        position: static;
        justify-content: flex-end;
        margin-bottom: 21px;
        display: none;
    }

    .dec:nth-of-type(-n+3) {
        display: flex;
    }

    .dec:last-of-type {
        margin-bottoM: 0;
    }

    .dec>img {
        width: 112px;
    }

    .dec-1,
    .dec-2,
    .dec-3 {
        flex-direction: row-reverse;
    }

    .dec-1 .dec-name,
    .dec-2 .dec-name,
    .dec-3 .dec-name,
    .dec-4 .dec-name,
    .dec-5 .dec-name,
    .dec-6 .dec-name {
        margin-left: 20px;
        margin-right: 0;
    }

    .dec-name {
        font-size: 18px;
        line-height: 27px;
    }

    /* service */
    .service {
        padding-top: 60px;
    }

    .service-text {
        margin: 20px 0 0;
    }

    .service .btn {
        display: none;
    }

    .service-col:first-child {
        margin-bottom: 30px;
    }

    .service-space {
        padding: 40px 61px 30px;
    }

    .service-space__title {
        display: none;
    }

    .space-item {
        width: 100%;
        margin-bottom: 30px;
    }

    .space-item:last-of-type {
        margin-bottom: 0;
    }

    .space-individual {
        margin-top: 30px;
    }
}

@media screen and (max-width: 340px) {

    /* journal */
    .small-info {
        width: calc(100% - 80px - 10px);
        margin-left: 10px;
    }

    .journal-small {
        padding-right: 10px;
    }

    .small-bg {
        width: 80px;
    }

    .small-top {
        margin-bottom: 7px;
    }

    .small-title {
        font-size: 16px;
        line-height: 18px;
        ;
    }

    .small-about {
        font-size: 12px;
    }
}