﻿.section-hero{
    position: relative;
}
.section-hero::before{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30,29,35,0) 40%,
        rgba(30,29,35,0.9) 100%
    );
    z-index: 0;
}
.hero-img{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    z-index: -1;
}
.hero{
    position: relative;
    min-height: 400px;
    height: calc(100dvh - 123px);
    max-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 120px;
}
.hero__max{
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 4px;
}
.hero__title{
    color: var(--white);
    max-width: 870px;
}
.hero__desc{
    font-family: var(--second-family);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 16px;
}
.hero__btns{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    flex: auto;
}
.hero__notice{
    font-family: var(--second-family);
    font-size: 14px;
    line-height: 143%;
    color: rgba(255, 255, 255, 0.8);
}
.hero__bottom{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
    justify-content: space-between;
    padding-top: 32px;
}
.hero__phone{
    max-width: 322px;
    width: 100%;
}
.hero--inner{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 313px;
    gap: 20px;
    align-items: flex-end;
    height: auto;
}
.hero__order{
    padding-right: 12px;
}

@media (max-height: 700px), (max-width: 1200px) {
    .section-hero::before {
        background: rgb(30 29 35 / 60%);
    }
}

@media all and (max-width: 1200px){
    .hero{
        height: auto;
    }
    .hero__bottom{
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .hero__btns{
        width: 100%;
        max-width: 665px;
    }
    .hero__phone{
        width: auto;
        flex: auto;
    }
    .hero--inner{
        min-height: 300px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 80px;
    }
    .hero__order{
        max-width: 352px;
        width: 100%;
    }
    .hero--service{
        min-height: 500px;
    }
}

@media all and (max-width: 768px){
    .hero{
        padding-top: 32px;
        height: auto;
        max-height: unset;
    }
    .hero__btns{
        display: grid;
        grid-template-columns: minmax(0, 1fr) 60px;
        gap: 8px 12px;
    }
    .hero__phone{
        order: 1;
        max-width: 100%;
    }
    .hero__max{
        order: 2;
    }
    .hero__consult{
        order: 3;
        grid-column: 1/-1;
    }
    .hero__bottom{
        gap: 12px;
    }
    .hero__order{
        max-width: 100%;
    }
}