/* Общие */

.karkas,
.section-video-list,
.photo-section {
    margin-top: 30px;
}

.section-video-list,
.photo-section {
    margin-bottom: 60px;
}

.karkas__title,
.video__title,
.photo__title,
.tech__title {
    font: 600 26px/130% var(--title-font);
    color: var(--text-color);
    margin-bottom: 40px;
}

.tech__title {
    letter-spacing: 0;
}

.tech__subtitle {
    max-width: 940px;
    margin-top: 39px;
    color: var(--text-color);
}

.tech__subtitle p {
    max-width: 940px;
}

.tech__subtitle p + p {
    margin-top: 20px;
}

@media screen and (min-width: 640px) {

    .karkas,
    .section-video-list,
    .photo-section {
        margin-top: 40px;
    }

    .section-video-list,
    .photo-section {
        margin-bottom: 80px;
    }

    .tech__title {
        font-size: 36px;
        line-height: 130%;
        margin-bottom: 40px;
        max-width: 570px;
    }
}

@media screen and (min-width: 1000px) {

    .karkas,
    .section-video-list,
    .photo-section {
        margin-top: 70px;
    }

    .section-video-list,
    .photo-section {
        margin-bottom: 120px;
    }

    .karkas__title,
    .video__title,
    .photo__title {
        font-size: 70px;
        line-height: 110%;
        letter-spacing: 0.04em;
        margin-bottom: 80px;
    }

    .video__title,
    .photo__title {
        max-width: 1000px;
    }

    .tech__title {
        font-size: 70px;
        line-height: 110%;
        letter-spacing: 0.04em;
        max-width: 1190px;
    }
}

/* Строительство по каркасной технологии */

.journal {
    margin-bottom: 60px;
}

.karkas>.wrapper {
    width: 100%;
}

.karkas__video-img {
    position: relative;
    overflow: hidden;
}

.karkas__video-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
}

.karkas__video-img img {
    width: 100%;
}

.karkas__video-title {
    width: 100%;
    max-width: 200px;
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translate(-50%, 0);
    font: 700 10px/130% var(--title-font);
    color: var(--background);
    text-transform: uppercase;
    text-align: center;
    z-index: 1;
}

.karkas__video-button svg {
    position: absolute;
    width: 50px;
    height: 50px;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    transition: all .3s cubic-bezier(.25, .5, .5, .9) 0s;
    z-index: 1;
}

.karkas__video-button svg:hover {
    transform: scale(.95);
}

.journal .btn {
    display: block;
    width: fit-content;
    font: 500 12px/16px var(--text-font);
    color: var(--title-color);
    background: 0 0;
    border: 1px solid #c1c1c1;
    border-radius: 4px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 10px 29px 8px;
    transition: .3s ease;
}

.journal .btn:hover {
    color: var(--main-color);
    border: 1px solid var(--main-color);
}

@media screen and (min-width: 640px) {

    .journal {
        margin-bottom: 80px;
    }

    .karkas__video-button svg {
        width: 60px;
        height: 60px;
    }

    .karkas__video-title {
        font-size: 14px;
        bottom: 30px;
        max-width: unset;
    }
}

@media screen and (min-width: 1000px) {

    .journal {
        margin-bottom: 120px;
    }

    .karkas__video-button svg {
        width: 80px;
        height: 80px;
    }

    .karkas__video-title {
        font-size: 20px;
        bottom: 40px;
    }
}

@media screen and (min-width: 1364px) {
    .karkas__title.wrapper {
        width: 100%;
    }
}

/* end Строительство по каркасной технологии */

/* Видео строительства объектов */

.video__container {
    display: flex;
    flex-wrap: wrap;
    row-gap: 40px;
}

.video-item {
    width: 100%;
}

.video-item__img {
    position: relative;
}

.video-item__img img {
    width: 100%;
    min-height: 235px;
}

.video-item__img svg {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 16px;
    right: 16px;
    transition: all .3s cubic-bezier(.25, .5, .5, .9) 0s;
    z-index: 1;
}

.video-item__img svg:hover {
    transform: scale(1.1);
}

.video-item__descr {
    font: 600 14px/130% var(--title-font);
    color: var(--title-color);
    margin-top: 10px;
    max-height: 36px;
}

.section-video-list .btn_red {
    display: flex;
    height: 36px;
    width: 162px;
    align-items: center;
    justify-content: center;
    font: 500 12px var(--text-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--background);
    background-color: var(--main-color);
    border: 1px solid var(--main-color);
    border-radius: 4px;
    margin: 60px auto 0;
    transition: .3s ease;
}

.section-video-list .btn_red:hover {
    color: var(--main-color);
    background-color: var(--background);
}

@media screen and (min-width: 640px) {
    .video__container {
        column-gap: 30px;
    }

    .video-item {
        width: calc(50% - 15px);
    }

    .video-item__descr {
        max-width: 96%;
        max-height: unset;
    }

    .video-item__img img {
        min-height: unset;
    }

    .video-item__img svg {
        right: 12px;
    }
}

@media screen and (min-width: 1000px) {

    .video-item {
        width: calc(33.33% - 20px);
    }

    .video-item__img svg {
        width: 30px;
        height: 30px;
        right: 16px;
    }

    .video-item__descr {
        font-size: 16px;
    }
}

/* end Видео строительства объектов */

/* Фотографии материалов и строительства */

.photo-block:last-child {
    margin-top: 60px;
}

.photo-block__title {
    font: 600 18px/130% var(--title-font);
    color: var(--text-color);
    margin-bottom: 30px;
}

.photo-block__container {
    display: flex;
    flex-wrap: wrap;
    row-gap: 40px;
}

.photo-block__item {
    width: 100%;
}

.photo-block__item img {
    min-height: 256px;
}

.photo-block__item-descr {
    font: 400 16px/150% var(--text-font);
    color: var(--text-color);
    margin-top: 16px;
}

@media screen and (min-width: 640px) {
    .photo-block:last-child {
        margin-top: 82px;
    }

    .photo-block__container {
        column-gap: 30px;
    }

    .photo-block__item {
        width: calc(50% - 15px);
    }

    .photo-block__item img {
        min-height: unset;
    }
}

@media screen and (min-width: 1000px) {
    .photo-block:last-child {
        margin-top: 120px;
    }

    .photo-block__title {
        font-size: 30px;
        margin-bottom: 40px;
    }
}

@media screen and (min-width: 1100px) {

    .photo-block__item {
        width: calc(25% - 22.5px);
    }

    .photo-block__item:nth-child(5),
    .photo-block__item:nth-child(6),
    .photo-block__item:nth-child(7),
    .photo-block__item:nth-child(12),
    .photo-block__item:nth-child(13),
    .photo-block__item:nth-child(14) {
        width: calc(33.33% - 20px);
    }

    .photo-block__item img {
        min-height: unset;
    }
}

/* end Фотографии материалов и строительства */

/* Как строятся дома: от фундамента до новоселья */

.section-tech {
    padding-bottom: 0;
}

.first-block {
    margin-top: 60px!important;
}

.tech__block {
    margin: 60px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tech__block.bg {
    gap: 30px;
}

.tech__block div, .tech__block p {
    color: var(--text-color);
}

.tech__blocks-group {
    margin: 60px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.first-block {
    gap: 60px;
}

.tech__blocks-group .tech__block{
    margin: 0;
}

.tech__block p.bold {
    font-weight: 600;
}

.tech__block p.block__title {
    font: 600 21px/130% var(--title-font);
    margin-bottom: 28px;
}

.tech__block.bg p.block__title {
    font: 600 18px/130% var(--title-font);
    margin-bottom: 0;
}

.tech__block p {
    margin-bottom: 0;
}

.tech__block p + p {
    margin-top: 20px;
}

.tech__block .video-item {
    width: 100vw;
    max-height: 256px;
    margin-left: calc(-16px);
    margin-right: calc(-16px);
}

.tech__block .video-item img {
    aspect-ratio: 640 / 436;
}

.tech__block .video-item svg {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
}

.tech__block.videos-block {
    margin-top: 12px;
    display: flex;
    gap: 30px;
}

.no-flex-gap {
    gap: 0;
}

@media screen and (min-width: 640px) {
    .tech__block {
        margin: 80px 0;
        display: flex;
        flex-direction: column;
    }

    .tech__blocks-group {
        margin: 80px 0;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .tech__block.bg {
        padding: 30px;
        background-color: var(--block-background);
        border-radius: 16px;
    }

    .tech__block p.block__title {
        font: 600 28px / 130% var(--title-font);
        letter-spacing: -1.2px;
        margin-bottom: 28px;
    }

    .tech__block.bg p.block__title {
        margin-bottom: 0;
        letter-spacing: 0;
    }

    .tech__block .video-item {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        max-height: 482px;
    }

    .tech__block.bg .video-item {
        max-height: 442px;
    }

    .tech__block .video-item img {
        width: 100%;
        margin: auto;
        border-radius: 16px;
    }

    .tech__block .video-item svg {
        width: 60px;
        height: 60px;
    }
}

@media screen and (min-width: 1000px) {
    .tech__block {
        margin: 120px 0;
        display: flex;
        justify-content: space-between;
        flex-direction: row;
    }

    .no-flex-gap {
        gap: 30px;
    }
    .tech__block:not(.bg):nth-last-child(2) {
        margin-bottom: 72px;
    }

    .tech__block:not(.bg):last-child {
        margin-top: 72px;
    }

    .tech__blocks-group {
        margin: 120px 0 0 0;
        display: flex;
        flex-direction: column;
    }

    .tech__blocks-group .tech__block {
        margin: 0 !important;
    }

    .tech__block .block-col {
        max-width: 645px;
        max-height: 436px;
        width: 100%;
    }

    .tech__block .block-col.right .custom-pt {
        padding-top: 12px;
    }

    .tech__block .left p {
        max-width: 530px;
    }

    .tech__block p.block__title,
    .tech__block.bg p.block__title {
        font: 600 30px/130% var(--title-font);
        margin-bottom: 30px;
        letter-spacing: 0;
    }

    .tech__block .left p.block__title {
        max-width: 530px;
    }

    .tech__block .video-item {
        max-width: 640px;
        max-height: none;
        width: 100%;
    }

    .tech__block.bg .block-col {
        max-width: 560px;
        max-height: 382px;
    }
    .tech__block.bg .right {
        max-width: 580px;
    }

    .tech__block.bg .right .block__title {
        max-width: 460px;
    }

    .tech__block.bg .video-item {
        max-width: 560px;
    }

    .tech__block.bg .right {
        max-width: 580px;
        margin: auto 0;
        margin-right: 30px;
    }

    .tech__block.videos-block {
        margin-top: 25px !important;
        display: flex;
        gap: 40px;
    }
}

.my-auto {
    margin-top: auto;
    margin-bottom: auto;
}
/* end Как строятся дома: от фундамента до новоселья */