.home-section {
    margin-top: 40px;
}

.home-section:last-child {
    margin-bottom: 40px;
}

.home-section.bg {
    background: var(--primary-color);
    padding: 60px 0;
}

.home-section__title {
    font-size: 30px;
    margin: 0;
    margin-bottom: 40px;
    line-height: 130%;
}

.home-section__desc {
    line-height: 150%;
}

.home-section__desc ul {
    padding-left: 20px;
}

.home-section__desc li {
    list-style: none;
    margin-bottom: 4px;
}

.home-section__desc li:last-child {
    margin: 0;
}

.home-section__desc li::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg fill='%23ffffff' xmlns='http://www.w3.org/2000/svg' width='64px' height='64px' viewBox='0 0 52 52' enable-background='new 0 0 52 52' xml:space='preserve' stroke='%23ffffff'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath d='M26,2C12.7,2,2,12.7,2,26s10.7,24,24,24s24-10.7,24-24S39.3,2,26,2z M39.4,20L24.1,35.5 c-0.6,0.6-1.6,0.6-2.2,0L13.5,27c-0.6-0.6-0.6-1.6,0-2.2l2.2-2.2c0.6-0.6,1.6-0.6,2.2,0l4.4,4.5c0.4,0.4,1.1,0.4,1.5,0L35,15.5 c0.6-0.6,1.6-0.6,2.2,0l2.2,2.2C40.1,18.3,40.1,19.3,39.4,20z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: -1px;
}

.home-section__more {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

@media (max-width: 991px) {
    .home-section {
        margin-top: 20px;
    }

    .home-section:last-child {
        margin-bottom: 20px;
    }

    .home-section.bg {
        padding: 40px 0;
    }

    .home-section__title {
        margin-bottom: 20px;
    }

    .home-section__more {
        justify-content: flex-start;
    }
}

/* Hero */
.home-hero {
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

}

.home-hero__bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero::before {
    content: "";
    background: #313131f0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    position: absolute;
    box-shadow: #0000004a 0px 0px 50px 0px;
}

.home-hero__inner {
    position: relative;
    z-index: 3;
}

.home-hero__title {
    font-size: 40px;
    font-weight: 500;
    perspective: 1000px;
    margin: 0;
}

.home-hero__title-line {
    --line-scale: 0;

    display: block;
    overflow: hidden;
    height: 60px;
    line-height: 40px;
    padding: 10px 0;
    width: fit-content;
    position: relative;
}

strong.home-hero__title-line {
    font-weight: 800;
    margin-top: -1px;
}

.home-hero__title-line::before,
.home-hero__title-line::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: white;
    transform-origin: left;
    will-change: transform;
    transform: scaleX(var(--line-scale));
}

.home-hero__title-line::before {
    top: 0;
}

.home-hero__title-line::after {
    bottom: 0;
}

.home-hero__title-line .char {
    display: inline-block;
    will-change: transform, opacity;
}

.home-hero__desc {
    max-width: 550px;
    line-height: 150%;
    opacity: .5;
    padding: 20px 0;
    border-top: 1px solid #ffffff9e;
    margin-top: 20px;
    font-size: 18px;
}

@media (max-width: 768px) {
    .home-hero {
        min-height: auto;
        padding: 40px 0;
    }

    .home-hero__title-line {
        overflow: auto;
        height: auto;
        line-height: 130%;
        padding: 0;
        font-size: 30px;
    }

    .home-hero__title-line::before,
    .home-hero__title-line::after {
        display: none;
    }

    .home-hero__desc {
        font-size: 16px;
    }
}

/* Stats */

.home-stats {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
}

.home-stat {
    display: flex;
    gap: 24px;
    align-items: center;
}

.home-stat__right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-stat__title {
    font-size: 20px;
    font-weight: 500;
    opacity: .5;
}

.home-stat__desc {
    font-size: 30px;
    font-weight: 400;
}

@media (max-width: 991px) {
    .home-stats {
        flex-direction: column;
    }

    .home-stat img {
        width: 40px;
        height: 40px;
    }

    .home-stat__title {
        font-size: 18px;
    }

    .home-stat__desc {
        font-size: 30px;
    }
}

/* About */

.home-about {
    display: flex;
    align-items: center;
    gap: 100px;
}

.home-about__left {
    position: relative;
}

.home-about__photo {
    width: 400px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    outline: 1px solid white;
    border-radius: 10px;
    box-shadow: #00000020 0px 0px 20px 0px;
}

.home-about__photo.two {
    margin-top: -50%;
    margin-left: 100px;
}

.home-about .home-section__title {
    margin-bottom: 24px;
}

.home-about__footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.home-about__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

@media (max-width: 991px) {
    .home-about__left {
        display: none;
    }

    .home-about__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Directions */

.home-directions {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.home-direction {
    width: calc(50% - 16px);
    display: flex;
    flex-direction: column;
}

.home-direction img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 20px;
}

.home-direction__right {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-direction__title {
    font-size: 24px;
    margin: 24px 0;
    font-weight: 600;
}

.home-direction__desc {
    font-size: 18px;
    line-height: 150%;
    margin-bottom: 24px;
}

.home-direction__right .btn {
    margin-top: auto;
}

@media (max-width: 991px) {
    .home-directions {
        flex-direction: column;
    }

    .home-direction {
        width: 100%;
    }
}

/* Products */

.home .product {
    width: calc(25% - 18px);
}

@media (max-width: 991px) {
    .home .product {
        width: 100%;
    }
}

/* Portfolio */

.home-portfolio {
    display: flex;
    align-items: center;
    gap: 100px;
}

.home-portfolio__left {
    flex-shrink: 0;
    width: 400px;
}

.home-portfolio__left .home-section__title {
    margin-bottom: 24px;
}

.home-portfolio__left .home-section__desc {
    margin-bottom: 32px;
}

.home-portfolio__items {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.home-portfolio__item {
    width: calc(25% - 12px);
    aspect-ratio: 3 / 4;
}

.home-portfolio__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 991px){
    .home-portfolio {
        flex-direction: column-reverse;
        gap: 24px;
    }

    .home-portfolio__left {
        width: 100%;
    }

    .home-portfolio__items {
        gap: 4px;
    }

    .home-portfolio__item {
        width: calc(25% - 3px);
    }
}