/* The warm page glow behind this hero is global — see body::before in global.css
   (exact replica of the Figma "Bg elements" layer shared by every page). */
#home-preview {
    padding-bottom: 90px;
    position: relative;
    overflow: hidden;
}
#home-preview header {
    margin-bottom: 90px;
}
#home-preview .full-container {
    display: flex;
}
#home-preview .left {
    flex-basis: 661px;
    padding: 34px 60px 34px 0;
}
#home-preview .left .title {
    color: var(--color-text);
    font-size: 56px;
    font-weight: 800;
    line-height: 64px;
    text-transform: capitalize;
    margin-top: 16px;
}
#home-preview .left .description {
    margin-top: 18px;
}
#home-preview .left .search-form {
    margin-top: 50px;
    max-width: 431px;
    width: 100%;
    position: relative;
}
#home-preview .left .search-form input {
    width: 100%;
    padding: 12px 100px 12px 15px;
    font-size: 16px;
    line-height: 24px;
    height: 48px;
    margin-top: 0;
}
#home-preview .left .search-form .btn {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
}
#home-preview .right {
    flex-basis: calc(100% - 661px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
#home-preview .right .box {
    position: relative;
    display: flex;
}
#home-preview .right .box > picture > img {
    max-height: 400px;
    height: 100%;
    border-radius: 20px;
}
#home-preview .right .box .slats {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateX(-70%) translateY(-50%);
}
#home-preview .right .box .slats .item {
    background-color: var(--color-bg-alt);
    margin-top: 15px;
    display: flex;
    align-items: center;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    padding: 20px;
}
#home-preview .right .box .slats .item:first-child {
    margin-top: 0;
}
#home-preview .right .box .slats .item .icon {
    height: 59px;
    width: 58px;
}
#home-preview .right .box .slats .item .inner {
    padding-left: 15px;
}
#home-preview .right .box .slats .item .inner .value {
    color: var(--color-text);
    font-size: 28px;
    font-weight: 800;
    line-height: 36px;
}
#home-preview .right .box .slats .item .inner .label {
    color: var(--color-text-alt);
    font-size: 12px;
    line-height: 20px;
}
#home-preview .right .box .slats .item-alt {
    flex-direction: column;
    align-items: flex-start;
}
#home-preview .right .box .slats .item-alt .value {
    color: var(--color-text);
    font-size: 28px;
    font-weight: 800;
    line-height: 34px;
}
#home-preview .right .box .slats .item-alt .label {
    color: var(--color-text-alt);
    font-size: 12px;
    line-height: 20px;
}
#home-preview .right .box .slats .item-alt .progress-bar {
    margin-top: 20px;
}
#home-preview .right .box .slats .item-alt .progress-bar__track {
    margin-top: 10px;
}

@media (max-width: 1400px) {

    #home-preview{
        padding-bottom: 50px;
    }
    #home-preview header {
        margin-bottom: 65px;
    }
    #home-preview .left {
        flex-basis: 700px;
        padding-right: 155px;
    }
    #home-preview .right {
        flex-basis: calc(100% - 700px);
    }
    #home-preview .left .title {
        font-size: 45px;
        line-height: 50px;
    }
    #home-preview .left .description {
        max-width: 475px;
    }
    #home-preview .right .box .slats {
        transform: translateX(-65%) translateY(-50%);
    }
    #home-preview .right .box .slats .item {
        padding: 10px 17px;
    }
    #home-preview .right .box .slats .item .icon {
        height: 50px;
        width: 50px;
    }
    #home-preview .right .box .slats .item .inner .value {
        font-size: 22px;
    }
}

@media (max-width: calc(1140px + 30px)) {

    #home-preview {
        padding-bottom: 35px;
    }
    #home-preview header {
        margin-bottom: 50px;
    }
    #home-preview .left {
        flex-basis: 62%;
        padding-right: 120px;
    }
    #home-preview .left .title {
        font-size: 38px;
        line-height: 42px;
    }
    #home-preview .left .search-form {
        margin-top: 35px;
    }
    #home-preview .right {
        flex-basis: 38%;
    }
    #home-preview .right .box .slats {
        transform: translateX(-45%) translateY(-50%);
    }
    #home-preview .right .box .slats .item .inner .value {
        line-height: 25px;
    }
    #home-preview .right .box .slats .item-alt .progress-bar {
        margin-top: 15px;
    }
}

@media (max-width: calc(991px + 30px)) {

    #home-preview .left {
        flex-basis: 60%;
        padding: 10px 80px 10px 0;
    }
    #home-preview .left .title {
        font-size: 30px;
        line-height: 34px;
    }
    #home-preview .right {
        flex-basis: 40%;
    }
    #home-preview .right .box {
        height: 100%;
    }
    #home-preview .right .box .slats {
        transform: translateX(-20%) translateY(-50%);
    }
    #home-preview .right .box .slats .item {
        margin-top: 10px;
    }
    #home-preview .right .box .slats .item .icon {
        height: 40px;
        width: 40px;
    }
    #home-preview .right .box .slats .item .inner .value {
        font-size: 20px;
        line-height: 20px;
    }
    #home-preview .right .box .slats .item-alt .value {
        font-size: 24px;
        line-height: 26px;
    }
}

@media (max-width: 768px) {

    #home-preview .full-container {
        flex-direction: column;
        max-width: 600px;
    }
    #home-preview .left,
    #home-preview .right {
        padding: 0;
        flex-basis: 100%;
    }
    #home-preview .left .title {
        font-size: 32px;
        line-height: 40px;
    }
    #home-preview .left .description {
        margin-top: 10px;
        max-width: 100%;
    }
    #home-preview .left .search-form {
        margin-top: 30px;
        max-width: 100%;
    }
    #home-preview .right {
        margin-top: 30px;
        justify-content: center;
    }
    #home-preview .right .box > picture > img {
        max-height: 375px;
    }
    #home-preview .right .box .slats .item {
        padding: 15px;
    }
    #home-preview .right .box .slats .item .icon {
        width: 50px;
        height: 50px;
    }
    #home-preview .right .box .slats .item .inner .value {
        font-size: 22px;
        line-height: 25px;
    }
}

@media (max-width: 576px) {

    #home-preview .left .search-form input {
        height: 38px;
    }
    #home-preview .left .search-form .btn {
        padding: 8px 15px;
        font-size: 14px;
        line-height: 16px;
    }
    #home-preview .right .box {
        /*transform: translateX(10%);*/
        margin-left: 90px;
    }
    #home-preview .right .box > picture > img {
        max-height: 100%;
        height: 256px;
        max-width: 262px;
    }
    #home-preview .right .box .slats {
        transform: translateX(-50%) translateY(-50%);
    }
    #home-preview .right .box .slats .item {
        padding: 12px 15px;
        margin-top: 9px;
    }
    #home-preview .right .box .slats .item .icon {
        width: 37px;
        height: 37px;
    }
    #home-preview .right .box .slats .item .inner {
        padding-left: 9px;
    }
    #home-preview .right .box .slats .item .inner .value {
        font-size: 18px;
        line-height: 22px;
    }
    #home-preview .right .box .slats .item .inner .label {
        font-size: 10px;
        line-height: 12px;
    }
    #home-preview .right .box .slats .item-alt .value {
        font-size: 18px;
        line-height: 22px;
    }
    #home-preview .right .box .slats .item-alt .label {
        font-size: 10px;
        line-height: 12px;
    }
    #home-preview .right .box .slats .item-alt .progress-bar {
        margin-top: 12px;
    }
    #home-preview .right .box .slats .item-alt .progress-bar .progress-bar__percent,
    #home-preview .right .box .slats .item-alt .progress-bar .progress-bar__value {
        font-size: 10px;
        line-height: 12px;
    }
    #home-preview .right .box .slats .item-alt .progress-bar__track {
        height: 8px;
        margin-top: 6px;
    }
}

@media (max-width: 390px) {

    #home-preview .right .box {
        margin-left: 0;
    }
    #home-preview .right .box .slats {
        transform: translateX(-50%) translateY(-50%);
        right: 0;
        left: 50%;
        min-width: 200px;
    }
}
