.hero-block {
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}


.hero-block {
    position: relative;
    width: 100%;
    height: auto;
    color: #fff;
    background-repeat: no-repeat;
    background-size:cover;
    background-position: center top;
    aspect-ratio: 21/6;
    @media (width <= 768px) {
        height: auto;
        min-height: 265px;
        _height: 265px;
        padding: 6px 0;
        margin-bottom: 10px;
        background-position: left top;
    }
}

.hero-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 80px 0 30px 0;
    @media (width <= 768px) {
        height: 100%;
        padding-bottom: 10px;
        & .container {
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }
    }
}

.hero-item__text {
    width: 660px;
    h1 {
        font-size: 36px;
        text-transform: uppercase;
        color: #fff;
        line-height: 1.1;
        & span {
            color: var(--secondary-color)
        }
    }
    & p {
        width: 80%;
        color: #fff;
        font-size: 18px;
        line-height: 1.3;
        margin: 15px 0 25px;
    }
    & .after-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: #fff;
        margin-top: 15px;
        & svg {
            width: 11px;
            height: 11px;
            fill: #fff;
        }
    }
    @media (width <= 768px) {
        width: 100%;
        color: var(--primary-text-color);
        & h1 {
            color: inherit;
            font-size: 25px;
            line-height: 30px;
            & span {
                color: inherit;
            }
        }
        & p {
            color: inherit;
            width: 100%;
            font-size: 14px;
            line-height: 1.4;
        }
        & .btn {
            width:100%;
            font-size: 14px;
            padding: 13px 10px;
            text-align: center;
        }
        & .after-btn {
            display: none;
        }
    }
}

.hero-item__benefits {
    margin-top: 50px;
    @media (width <= 768px) {
        width: 70%;
    }
}

.big-case {
    background: var(--bg-block);
    padding: 60px 0;
    & .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        @media (width <= 768px) {
            grid-template-columns: 100%;
        }
    }
}

.big-case__logo img {
    width: 120px;
}

.big-case__title {
    font-size: 36px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    margin: 20px 0;
    @media (width <= 768px) {
        font-size: 20px;
    }
}

.big-case__badges {
    display: flex;
    gap: 6px;
    & .badge {
        display: flex;
        gap: 6px;
        align-items: center;
        padding: 0 6px;
        font-size: 12px;
        line-height: 28px;
        font-weight: 600;
        background: #fff;
        border-radius: 6px;
        & img {
            width: 18px;
            height: 18px;
        }
    }
}

.big-case__text {
    margin: 25px 0;
    width: 90%;
}

.big-case__info {
    padding: 20px 15px;
    margin-top: 20px;
    background: #fff;
    border-radius: 10px;
    & .h4 {
        position: relative;
        margin-bottom: 15px;
        padding-bottom: 10px;
        &::after {
            content: "";
            width: 200px;
            position: absolute;
            bottom: 0;
            left: 0;
            height: 3px;
            background: var(--secondary-color);
        }
    }
    & .characteristics-list {
        margin: 0;
        padding: 0;
        list-style: none;
        & li {
            display: flex;
            justify-content: space-between;
            padding-bottom: 2px;
            border-bottom: 1px solid #e9e9e9;
            line-height: 27px;
            &:last-child {
                border-bottom: none;
            }
            & .label {
                color: #999;
            }
        }
    }
    & .works-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 0;
        padding: 0;
        list-style: none;
        & li {
            display: flex;
            align-items: center;
            gap: 10px;
            & .check-icon {
                width: 24px;
                height:24px;
                background: url('/zaboroff/images/cases/check-cirlle.webp') no-repeat;
            }
        }
    }
}

.big-case__right {
    display: flex;
    flex-direction: column;
    & .big-case__image {
        margin-bottom: 25px;
    }
    .big-case__gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        & .image-caption {
            font-size: 16px;
            line-height: 20px;
            font-weight: 700;
            margin-top: 10px;
        }
        @media (width <= 768px) {
            grid-template-columns: 100%;
        }
    }
    & img {
        display: block;
        border-radius: 10px;
    }
    & .image-caption {
        font-size: 16px;
        line-height: 20px;
        font-weight: 700;
        margin-top: 10px;
    }
}

.big-case__location {
    display: flex;
    gap: 8px;
    padding: 20px;
    margin-top: auto;
    background: #fff;
    border-radius: 10px;
    & svg {
        flex-shrink: 0;
        width: 19px;
        height: 25px;
        fill: var(--primary-color)
    }
}

.our-works {
    padding: 20px 0;
}

.our-works__holder {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
    @media (width <= 768px) {
        grid-template-columns: 100%;
    }
}

.our-works__column {
    padding: 25px;
    background: var(--bg-block);
    border-radius: 10px;
    & .our-works__title {
        position: relative;
        padding-bottom: 20px;
        &:after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 200px;
            height: 3px;
            background: var(--secondary-color);
        }
    }
    & .our-works__item {
        display: flex;
        gap: 20px;
        align-items: center;
        padding-top: 20px;
        & h5 {
            font-size: 16px;
            line-height: 20px;
            font-weight: 700;
        }
    }
}

.cases__holder {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    @media (width <= 768px) {
        grid-template-columns: 100%;
    }
}

.case-item {
    padding: 20px;
    border-radius: 20px;
    transition: all .25s linear;
    &:hover {
        box-shadow: 0px 4px 34px rgba(0, 0, 0, 0.25);
    }
    & img {
        display: block;
        border-radius: 10px;
    }
    & .case-item__title {
        margin: 20px 0 5px;
    }
    @media (width <= 768px) {
        box-shadow: 0px 2px 10px 0px #0000001A;
    }
}

.case-item__info {
    & .info-item {
        display: flex;
        align-items: start;
        justify-content: space-between;
        padding: 8px 0 2px 0;
        font-size: 14px;
        line-height: 15px;
        font-weight: 500;
        border-bottom: 1px solid #e9e9e9;
        &:last-child {
            flex-direction: column;
            align-items: flex-start;
            border-bottom: none;
            & span {
                text-align: left !important;
            }
        }
        & span:first-child {
            color: #999;
            flex-shrink: 0;
        }
        & span:last-child {
            text-align: right;
        }
    }
}

.case-item.promo-case {
    & .case-item__inner {
        border-radius: 10px;
        background-color: var(--primary-color);
        overflow: hidden;
    }
    & .promo-img {
        position: relative;
        & img {
            border-radius: 10px 10px 0 0;
        }
        & .case-item__title {
            position: absolute;
            top: 20px;
            left: 30px;
            font-size: 26px;
            line-height: 30px;
            margin: 0;
            padding: 0 0 4px 0;
            color: #fff;
            &::after {
                position: absolute;
                left: 0;
                bottom: 0;
                content: "";
                width: 150px;
                height: 3px;
                background-color: var(--secondary-color);
            }
        }
        @media (width <= 768px) {
            height: 160px;
            overflow: hidden;
        }
    }
    & .promo-block {
        padding: 30px;
        color: #fff;
        & .promo-title {
            font-size: 18px;
            line-height: 21px;
            margin-bottom: 10px;
        }
        & .btn {
            width: 100%;
            margin: 0 auto;
            font-size: 13px;
            line-height: 40px;
            padding: 0;
            margin-top: 20px;
            border: 1px solid transparent;
            &:hover {
                border-color: var(--secondary-color)
            }
        }
    }
}

.row-three__holder {
    & h2 {
        margin-bottom: 30px;
    }
    & .row-three {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        & .row-three__item {
            background-color: var(--bg-block);
            border-radius: 10px;
            padding: 20px 25px;
            & .title {
                font-size: 18px;
                line-height: 20px;
                font-weight: 700;
            }
            &.flex {
                display: flex;
                gap: 10px;
                & .right {
                    flex-shrink: 0;
                }
            }
        }
    }
    @media (width <= 768px) {
        background-color: var(--bg-block);
        & .row-three {
            grid-template-columns: 100%;   
        }
    }
}
