/* seo-up */
.seo-up__h1 {
    font: 600 80px/110% var(--title-font);
    color: var(--text-color);
    max-width: 1124px;
}

.seo-up__container {
    height: 800px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 0.95fr 1fr;
    gap: 30px;
    padding-top: 60px;
    padding-bottom: 120px;
}

.seo-up__item {
    display: flex;
    flex-direction: column;
    grid-row: 1;
    grid-column: 1;
    border-radius: 6px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.seo-up__item_white {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 34px 20px 34px 39px;
}

.seo-up__item-title-block {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.seo-up__item-sub-title {
    font: 500 16px/130% var(--text-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--background);
    margin-bottom: 28px;
}

.seo-up__item-title {
    font: 600 30px/130% var(--title-font);
    color: var(--background);
}

.seo-up__item-small-title {
    font: 600 18px/130% var(--title-font);
    color: var(--text-color);
    padding-left: 30px;
    padding-top: 1px;
}

.seo-up__item-desc {
    width: 95%;
    font: 400 16px/150% var(--text-font);
    color: var(--dark-grey-color);
}

.seo-up__item .link {
    display: block;
    width: fit-content;
    font: 400 16px/150% var(--text-font);
    color: var(--title-color);
    position: relative;
    margin-top: auto;
    margin-bottom: 0;
}

.seo-up__item .link::after {
    content: "";
    position: absolute;
    height: 1px;
    width: 100%;
    background: var(--title-color);
    left: 0;
    bottom: 3px;
}

.seo-up__item .link:hover::after {
    background: none;
    transition: .3s ease;
}

.seo-up__item .btn-link {
    display: block;
    box-sizing: border-box;
    padding: 10px 29px 9px;
    background: var(--main-color);
    border-radius: 4px;
    border: 1px solid var(--main-color);
    color: var(--background);
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font: 500 12px var(--text-font);
    margin-left: auto;
    width: fit-content;
    transition: .3s ease;
}

.seo-up__item .btn-link:hover {
    border: 1px solid var(--background);
    color: var(--main-color);
    background: var(--background);
}

.seo-up__item .btn-link.btn-link_white {
    background: var(--background);
    border: 1px solid var(--background);
    color: var(--title-color);
}

.seo-up__item .btn-link.btn-link_white:hover {
    color: var(--background);
    border: 1px solid var(--background);
    background: transparent;
}

.seo-up__item-block {
    height: 100%;
    position: absolute;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.seo-up__item-background {
    width: 100%;
    font-size: 0;
}

.seo-up__item-background img {
    width: 100%;
}

.seo-up__item:nth-child(1) {
    position: relative;
    background-size: cover;
    grid-column: 1/3;
    grid-row: 1/3;
}

.seo-up__item:nth-child(1) .seo-up__item-block {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 50px;
}

.seo-up__item:nth-child(1) .icon-arrow {
    margin-bottom: 3px;
}



.seo-up__item:nth-child(2) {
    grid-column: 3;
}

.seo-up__item:nth-child(3) {
    grid-row: 2/4;
    grid-column: 3;
}

.seo-up__item:nth-child(3) .seo-up__item-sub-title {
    margin-bottom: 21px;
}

.seo-up__item:nth-child(3) .btn-link {
    margin-top: 30px;
    margin-left: 0;
}

.seo-up__item:nth-child(3) .seo-up__item-block {
    justify-content: flex-end;
    padding: 40px;
}

.seo-up__item:nth-child(4) {
    grid-row: 3;
}

.seo-up__item:nth-child(5) {
    grid-row: 3;
    grid-column: 2;
}


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

    .seo-up__item-desc {
        width: 100%;
    }
    
    .seo-up__item-desc br {
        display: none;
    }
}

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

    .seo-up__item:nth-child(1) .seo-up__item-background,
    .seo-up__item:nth-child(3) .seo-up__item-background {
        height: 519px;
    }

    .seo-up__item-background img {
        height: 100%;
        width: auto;
        object-fit: cover;
    }

    .seo-up__item:nth-child(1) .seo-up__item-block>div:first-child {
        width: 50%;
        margin-bottom: 1px;
    }

    .seo-up__item:nth-child(1) .seo-up__item-block>div:last-child {
        width: calc(50% - 45px);
    }

    .seo-up__item:nth-child(4) .seo-up__item-desc {
        max-width: 340px;
    }

    .seo-up__item:nth-child(5) .seo-up__item-desc {
        max-width: 305px;
    }
}

@media screen and (max-width: 1200px) {
    .seo-up__container {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 20px;
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .seo-up__h1 {
        font: 600 30px/130% var(--title-font);
        color: var(--text-color);
    }

    .seo-up__item:nth-child(1) .seo-up__item-block,
    .seo-up__item:nth-child(3) .seo-up__item-block {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        padding: 30px 32px;
    }

    .seo-up__item:nth-child(1) .btn-link {
        margin-top: 27px;
        margin-left: 0;
        padding: 10px 15px 9px;
    }

    .seo-up__item:nth-child(1) .icon-arrow {
        display: none;
    }

    .seo-up__item:nth-child(2),
    .seo-up__item:nth-child(4),
    .seo-up__item:nth-child(5) {
        min-height: 178px;
    }

    .seo-up__item-sub-title {
        font: 500 12px/130% var(--text-font);
        margin-bottom: 12px;
    }

    .seo-up__item-title {
        font: 600 21px/130% var(--title-font);
    }

    .seo-up__item_white {
        padding: 29px 29px;
    }

    .seo-up__item-small-title {
        padding-left: 20px;
        padding-top: 3px;
    }

    .seo-up__item-title-block {
        margin-bottom: 20px;
    }

    .seo-up__item:nth-child(3) .seo-up__item-sub-title {
        margin-bottom: 13px;
    }

    .seo-up__item:nth-child(3) .btn-link {
        padding: 10px 43px 9px;
    }

    .seo-up__item:nth-child(1) .seo-up__item-block,
    .seo-up__item:nth-child(3) .seo-up__item-block {
        padding: 30px 30px;
    }

    .seo-up__item.seo-up__item_white .link {
        margin-top: 20px;
    }
}

@media screen and (max-width: 640px) {
    .seo-up__container {
        padding-bottom: 60px;
    }

    .seo-up__item-block>div {
        width: 100%;
    }

    .seo-up__item-block .seo-up__item-title {
        width: 95%;
    }

    .seo-up__item:nth-child(1) .btn-link,
    .seo-up__item:nth-child(3) .btn-link {
        margin-top: 21px;
        width: 100%;
        padding: 10px 7px 9px;
    }

    .seo-up__item-sub-title {
        margin-bottom: 13px;
    }

    .seo-up__item .link {
        margin-top: 20px;
    }

    .seo-up__item:nth-child(4) .seo-up__item-desc {
        width: 100%;
        /* max-width: 255px; */
    }

    .seo-up__item:nth-child(5) .seo-up__item-desc {
        width: 100%;
        /* max-width: 205px; */
    }
}

@media screen and (max-width: 374px) {
    .seo-up__item.seo-up__item_white .link {
        font-size: 13px;
    }
}
