.home #content {
    padding-bottom: 0;
}

.homepage-slider-wrapper {
    height: 630px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.home-page-slider .slick-track {
    display: flex;
    flex-wrap: nowrap;
    position: relative;
}

.home-page-slider .slick-track::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(133, 42, 136, 0.05);
    z-index: 1100;
    pointer-events: none;
}

.home-page-slider .slide {
    position: relative;
}

.home-page-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-slider-wrapper .home-page-slider,
.homepage-slider-wrapper .slick-list,
.homepage-slider-wrapper .slick-track {
    height: 100%;
}

.home-page-slider .slide .caption-wrapper {
    position: absolute;
    top: 0;
    height: 500px;
    left: 50%;
    transform: translateX(-50%);
    width: 1170px;
    z-index: 1200;
    display: flex;
    align-items: center;
}

.home-page-slider .slide-right .caption-wrapper {
    justify-content: flex-end;
}

.home-page-slider .slide .caption {
    width: 650px;
    padding-left: 25px;
}

.home-page-slider .slide .caption-title {
    color: var(--main);
    opacity: 0.75;
    font-family: "Great Vibes", cursive;
    font-style: normal;
    text-transform: capitalize;
    font-size: 80px;
    line-height: 1;
    letter-spacing: 3px;
    position: relative;
}

.home-page-slider .slide .caption-title .small-caption {
    display: flex;
    text-transform: lowercase;
}

.home-page-slider .slide .caption-title::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--main);
    opacity: 0.85;
    bottom: -40px;
}

body #content .home-page-slider .slide .lillepidu-button {
    margin-top: 100px;
}

@media only screen and (min-width: 1240px) {
    body #content .home-page-slider .slide .lillepidu-button > a:hover i {
        margin-left: 10px;
    }
}

body #content .home-page-slider .slide .lillepidu-button > a {
    padding-right: 20px;
    color: #fff !important;
    background-color: rgba(133, 42, 136, 0.65) !important;
}

.homepage-slider-wrapper .slick-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    bottom: 150px;
}

.homepage-slider-wrapper .slick-dots {
    padding: 0;
    margin: 0;
}

.homepage-slider-wrapper .slick-dots li {
    width: 14px;
    height: 14px;
    background: none;
    border: 1px solid var(--main);
    opacity: 0.5;
    vertical-align: middle;
    transition: 0.25s;
    list-style: none;
    border-radius: 50%;
    margin: 0 9px;
    cursor: pointer;
}

.homepage-slider-wrapper .slick-dots li.slick-active {
    background-color: var(--main);
    opacity: 1;
}

.home .custom-heading {
    color: var(--black);
}

.homepage-features-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
}

.homepage-features-wrapper {
    position: absolute;
    background-color: #fff;
    margin-top: -110px;
    width: 1176px;
    box-shadow: 0 0.07143rem 2.14286rem rgba(0, 0, 0, 0.05);
}

.homepage-features-wrapper .vc_column-inner {
    padding: 0 !important;
}

.homepage-features-wrapper .feature-item {
    padding: 20px 15px 20px 20px;
    position: relative;
    height: 100%;
}

.feature-item .feature-heading {
    color: var(--black);
    font-size: 14px;
    text-transform: UPPERCASE;
    font-weight: 700;
    letter-spacing: 2px;
}

.feature-item .feature-caption {
    color: var(--gray);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 0;
    line-height: 1.6;
}

.homepage-contacts-block {
    display: none;
    position: relative;
    left: 5px;
}

.contacts-block .left-column {
    background-color: var(--black);
    color: #fff;
    width: 25%;
    margin-bottom: 20px;
    margin-right: 10px;
    padding: 45px 25px 10px;
}

.contacts-block .right-column {
    color: #fff;
    width: 75%;
}

.contacts-image-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.contacts-image-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.contacts-image-wrapper .contacts-image-item {
    width: 33.33%;
    padding: 0 10px;
    margin-bottom: 20px !important;
    cursor: pointer;
}


.contacts-image-wrapper .empty-item {
    cursor: default;
}

#homepage-contacts .contacts-item {
    font-weight: 700;
    text-transform: UPPERCASE;
    display: flex;
    flex-direction: column;
    padding-bottom: 30px;
    margin-bottom: 20px;
    position: relative;
}

#homepage-contacts .contacts-item::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 1px;
    background-color: #fff;
    opacity: 0.50;
    bottom: 0;
}

#homepage-contacts .contacts-item:last-child::after {
    display: none;
}

#homepage-contacts .contacts-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    text-transform: lowercase;
    opacity: 0.75;
    font-size: 18px;
    padding: 15px 0 10px;
    transition: 0.25s;
    letter-spacing: 1.4px;
}


#homepage-contacts .contacts-item .socials-wrapper {
    margin-top: 15px;
}

#homepage-contacts .contacts-item .socials-wrapper a:nth-child(1) {
    margin-right: 10px;
}


@media only screen and (min-width: 1240px) {
    #homepage-contacts .contacts-item a:hover {
        opacity: 1;
        text-decoration: underline;
    }

    #homepage-contacts .contacts-item .socials-wrapper a:hover {
        text-decoration: none;
    }
}

.contacts-image-wrapper .contacts-image-item:nth-child(1),
.contacts-image-wrapper .contacts-image-item.empty-item {
    order: -1;
}

.contacts-image-wrapper .contacts-image-item .insta-wrapper {
    background-color: var(--black);
    height: 100%;
    padding: 60px 40px;
}


.insta-wrapper a,
.insta-wrapper h3 {
    font-weight: 700;
    text-transform: UPPERCASE;
    font-size: 14px;
    color: #fff;
    letter-spacing: 2px;

}

.insta-wrapper a {
    text-decoration: none !important;
    font-weight: 400;
    opacity: 0.75;
    padding: 10px 0;

}

.insta-wrapper a i {
    margin-left: 5px;
    transition: 0.25s;
}

@media only screen and (min-width: 1240px) {
    .insta-wrapper a:hover {
        opacity: 1;
    }

    .insta-wrapper a:hover i {
        margin-left: 10px;
    }
}

.insta-wrapper h4 {
    font-size: 14px;
    color: #fff;
    letter-spacing: 1.1px;
    line-height: 1.6;
}

#homepage-contacts .working-hours-wrapper {
    margin-top: 15px;
}

#homepage-contacts .working-hours-wrapper span {
    opacity: 0.85;
    font-weight: 400;
    font-size: 16px;
    text-transform: capitalize;
}

#homepage-contacts .working-hours-wrapper > span:nth-child(2) {
    display: flex;
    margin-top: 5px;
}

.home .lillepidu-button {
    margin-bottom: 12px;
    margin-top: 103px;
}

.home .lillepidu-button > a {
    background-color: #fff !important;
}

.home h2.custom-heading {
    font-size: 68px;
}

.reviews-header-wrapper .wpb_wrapper {
    text-align: center;
}

.reviews-header-wrapper h4 {
    font-size: 34px;
    color: var(--black);
    font-weight: 700;
    margin-bottom: 0 !important;
    display: inline-block;
    margin-right: 10px;
}

.reviews-header-wrapper h4.custom {
    color: var(--main);
}

.reviews-header-wrapper h4.custom a {
    text-decoration: none;
}

.reviews-header-wrapper .lillepidu-button {
    margin-top: 75px!important;
}


@media only screen and (min-width: 1240px) {
    .reviews-header-wrapper h4.custom:hover a {
        text-decoration: underline;
        opacity: 1;
    }
}

.review-item .review-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    width: max-content;
    margin: 0 auto;
}

.review-author img {
    width: 98px;
    border-radius: 50%;
}

.review-author .reviewer-name {
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--black);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.review-item .review-text {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}


@media only screen and (min-width: 1240px) {
    .review-item .review-author:hover {
        color: var(--main);
    }

    .review-item .review-author:hover .reviewer-name {
        color: var(--main);
        text-decoration: underline;
    }

}


.reviews-slider {
    height: 175px;
    overflow: hidden;
    max-width: 680px;
    margin: 65px auto 0;
}

.reviews-slider .slick-track {
    display: flex;
    flex-wrap: nowrap;
    position: relative;
}

.reviews-slider .slide {
    position: relative;
}

.reviews-slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 52px;
    width: 52px;
    transition: 0.25s;
    background-color: transparent;
    border: 1px solid var(--border);
    box-shadow: none;
    padding: 0;
}

.reviews-slider .slick-prev {
    left: 0;
}

.reviews-slider .slick-next {
    right: 0;
}

.reviews-slider .slick-arrow i {
    position: relative;
    font-size: 22px;
    color: var(--main);
}

.reviews-slider .slick-prev i {
    left: 0;
}

.reviews-slider .slick-next i {
    right: 0;
}

.reviews-slider .slick-arrow:hover i {
    opacity: 1;
}

.reviews-header-wrapper .lillepidu-button a {
    background-color: #f8f8f8 !important;
}


.top-categories-wrapper > .vc_column-inner {
    padding-left: 0 !important;
}

.funeral-block .top-categories-wrapper > .vc_column-inner {
    padding-left: 15px !important;
    padding-right: 0 !important;
}

.home .funeral-block .lillepidu-button {
    margin-top: 78px;
}

.top-categories-wrapper h2 {
    color: var(--black);
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif !important;
    padding-bottom: 20px !important;
    padding-top: 15px !important;
    bottom: 0 !important;
    width: calc(100% + 10px);
    left: 0 !important;
}

.top-categories-wrapper h2 .count {
    display: none !important;
}

.main-information-wrapper {
    padding: 75px 25px !important;
    border-top: 20px solid #fff;
    border-bottom: 20px solid #fff;
    border-left: 15px solid #fff;
    border-right: 15px solid #fff;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    min-height: 836px !important;
}

html[lang="ru-RU"] .main-information-wrapper {
    padding-bottom: 70px !important;
}

.main-information-wrapper .wpb_text_column.wpb_content_element {
    margin-bottom: 50px;
}

#content .top-categories-wrapper li.product {
    border: none;
}

.funeral-block h3,
.main-information-wrapper h1 {
    display: inline-block;
    font-size: 50px;
    font-family: "Great Vibes", cursive !important;
    font-style: normal;
    color: var(--main);
    letter-spacing: 2px;
    line-height: 1.2;
    margin: 0 0 75px;
}

html[lang="ru-RU"] .main-information-wrapper h1 {
    margin-bottom: 55px;
}

.main-information-wrapper p {
    color: var(--black);
    font-size: 14px;
    letter-spacing: 1.4px;
    line-height: 2;
    margin-bottom: 25px;
}

.top-categories-wrapper li.product-category:nth-child(3) {
    margin-top: 2px;
}

.top-categories-wrapper ul.products {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

body .top-categories-wrapper ul.products li.product {
    width: 275px;
}

.woocommerce-js ul.products li.product.product-category a img {
    height: 400px !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.homepage-features-wrapper .top-categories-wrapper ul.products li.product:nth-child(4) {
    order: 1;
}

.homepage-features-wrapper .top-categories-wrapper ul.products li.product:nth-child(2) {
    order: 2;
}

.homepage-features-wrapper .top-categories-wrapper ul.products li.product:nth-child(1) {
    order: 3;
}

.homepage-features-wrapper .top-categories-wrapper ul.products li.product:nth-child(3) {
    order: 4;
}

.homepage-features-wrapper .home .woocommerce-product-gallery__wrapper {
    overflow: hidden;
}

.funeral-block .top-categories-wrapper ul.products li.product:nth-child(4) {
    order: -1;
}


.reviews-header-wrapper h4.custom-header {
    position: relative;
    top: -50px;
}

.home #primary {
    margin: 0 !important;
}

.reviews-block,
.social-block {
    display: flex !important;
    justify-content: center !important;
}

.reviews-block .vc_column_container {
    background-color: #fff;
    max-width: 1200px !important;
}

.social-block .vc_column_container {
    background-color: #fff;
    max-width: 1210px !important;
}

@media only screen and (max-width: 1280px) {
    body.home #content {
        padding-top: 0 !important;
    }

    .homepage-slider-wrapper {
        height: 732px;
        margin-top: -102px;
        padding-top: 204px;
    }

    .homepage-slider-wrapper.scrolled {
        margin-top: -150px;
    }

    .homepage-features-wrapper {
        max-width: calc(100vw - 30px);
        left: 50%;
        margin-left: -15px;
    }

    .home-page-slider .slick-arrow {
        display: none !important;
    }

    .home-page-slider .slide .caption {
        width: 100%;
    }

    .home-page-slider .slide .caption-wrapper {
        width: 55%;
        left: 32%;
    }

    .home-page-slider .slide-right .caption-wrapper {
        left: 73%;
    }
}

@media only screen and (max-width: 1239px) {
    .top-categories-wrapper,
    .main-information-wrapper {
        width: 100% !important;
    }

    .top-block-wrapper .vc_row.wpb_row.vc_inner.vc_row-fluid {
        display: flex;
        flex-direction: column-reverse;
    }

    .main-information-wrapper {
        min-height: auto !important;
        padding: 35px 25px !important;
    }

    .main-information-wrapper h1 {
        margin-bottom: 25px !important;
    }

    .main-information-wrapper .wpb_text_column.wpb_content_element {
        margin-bottom: 0 !important;
    }

    .top-categories-wrapper {
        margin-top: 25px;
    }

    .top-categories-wrapper ul.products {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .top-categories-wrapper > .vc_column-inner {
        padding-right: 0 !important;
    }

    .homepage-products-wrapper ul.products {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .homepage-products-wrapper ul.products li.product {
        width: 278px !important;
    }

    .funeral-block h3 {
        margin-bottom: 25px !important;
    }

    .contacts-image-wrapper .contacts-image-item {
        width: 50% !important;
    }

}


@media only screen and (max-width: 1080px) {
    .home-page-slider .slide .caption-title {
        font-size: 66px;
    }
}

@media only screen and (max-width: 980px) {
    .home-page-slider .slide .caption-title {
        font-size: 48px;
    }

    body #content .home-page-slider .slide .lillepidu-button > a {
        font-size: 11px;
        font-weight: 700;
    }
}

@media only screen and (max-width: 921px) {
    .feature-caption,
    .feature-heading {
        text-align: center !important;
    }

    .homepage-features-wrapper {
        display: none !important;
    }

    body .homepage-about-wrapper {
        padding-top: 15px !important;
    }

    .funeral-block h3,
    .main-information-wrapper h1 {
        font-size: 32px !important;
    }

    .main-information-wrapper p {
        font-size: 12px !important;
        line-height: 1.6 !important;
        letter-spacing: 1.4px !important;
    }

    .homepage-products-wrapper h2.custom-heading {
        font-size: 52px !important;
    }

    body .reviews-block {
        padding-top: 0 !important;
    }

    .reviews-block .vc_column_container {
        max-width: 100% !important;
        width: 100% !important;
    }

    .reviews-slider {
        max-width: 100% !important;
        width: calc(100% - 100px) !important;
        margin: 0 auto !important;
        height: auto !important;
    }

    .homepage-contacts-block {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .homepage-contacts-block > .left-column {
        width: 100% !important;
        margin-right: 0 !important;
    }

    .homepage-contacts-block > .right-column {
        width: calc(100% + 20px) !important;
        margin-left: -10px !important;
    }

    .homepage-contacts-block {
        left: 0 !important;
    }

    .homepage-slider-wrapper {
        padding-top: 77px !important;
        margin-top: 0!important;
        height: auto!important;
    }

    .homepage-slider-wrapper.scrolled {
        margin-top: -50px!important;
        transition: 0.25s;
    }

    .homepage-slider-wrapper .slick-dots {
        bottom: 50px;
        background-color: rgba(255, 255, 255, 0.85);
        padding: 15px;
        border-radius: 12px;
    }

    .home-page-slider .slide img {
        object-fit: cover;
        height: auto;
        width: auto;
    }
}

@media only screen and (max-width: 639px) {
    #content .homepage-products-wrapper ul.products li.product,
    #content .top-categories-wrapper li.product {
        width: calc(50% - 10px) !important;
    }

    #content li.product h3 {
        font-size: 11px !important;
        padding: 5px 10px !important;
        padding-bottom: 15px !important;
    }

    li.product .product-bottom {
        padding-left: 10px !important;
        height: 40px !important;
    }

    li.product .product-price {
        font-size: 11px !important;
        padding-right: 10px !important;
        padding-top: 5px!important;
        padding-bottom: 0 !important;
    }

    .product-price .product-price-text {
        font-size: 10px !important;
        margin-bottom: -12px!important;
        display: flex!important;
        margin-top: -4px!important;
    }

    li.product .product-bottom > span:not(.product-price) {
        width: 40px!important;
        height: 40px !important;
    }


    li.product .product-like .yith-wcwl-add-to-wishlist-button,
    li.product .add-to-cart-icon {
        transform: scale(0.75) !important;
    }


    .top-categories-wrapper ul.products {
        gap: 20px;
    }

    .homepage-products-wrapper ul.products {
        align-items: stretch !important;
    }

    .woocommerce-product-gallery__image img,
    .woocommerce-js ul.products li.product img.wp-post-image,
    .woocommerce-page ul.products li.product img.wp-post-image,
    .woocommerce-js ul.products li.product.product-category a img {
        aspect-ratio: 275 / 400; /* Set the aspect ratio to 275:400 */
        width: 100% !important;
        height: auto !important;
    }

    #content #main article.page .top-categories-wrapper li.product .woocommerce-loop-category__title {
        font-size: 11px !important;
        width: 100% !important;
    }
}

@media only screen and (max-width: 580px) {
    .homepage-slider-wrapper .slick-dots {
        bottom: 50px;
        padding: 8px;
    }

    .homepage-slider-wrapper .slick-dots li {
        width: 8px !important;
        height: 8px !important;
    }
}

@media only screen and (max-width: 480px) {
    .main-information-wrapper {
        border: none !important;
        padding: 20px 10px !important;
    }

    .funeral-block > .wpb_column > .vc_column-inner,
    .funeral-block .top-categories-wrapper > .vc_column-inner,
    .homepage-products-wrapper > .wpb_column > .vc_column-inner,
    .top-block-wrapper > .vc_column-inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .funeral-block h3, .main-information-wrapper h1 {
        font-size: 28px !important;
    }

    .main-information-wrapper p {
        font-size: 11px !important;
    }

    .main-information-wrapper p br {
        display: none !important;
    }

    #content #main .homepage-products-wrapper h2.custom-heading {
        font-size: 48px !important;
        width: 100vw;
        margin-left: -25px;
        margin-top: -25px;
        margin-bottom: 75px;
    }

    .woocommerce-js ul.products li.product.product-category a img {
        height: auto !important;
    }

    .homepage-products-wrapper ul.products li.product .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: auto !important;
    }

    body .top-categories-wrapper ul.products li.product,
    .homepage-products-wrapper ul.products li.product,
    .homepage-products-wrapper .woocommerce-product-gallery__wrapper {
        width: 100% !important;
    }

    .homepage-products-wrapper .lillepidu-button {
        margin-bottom: 25px !important;
        margin-top: 25px !important;
    }

    .reviews-header-wrapper h4 {
        font-size: 22px !important;
        text-align: center !important;
        width: 100% !important;
        margin-right: 0 !important;
    }

    .review-author {
        position: relative;
        top: 20px;
    }

    .review-author .reviewer-name {
        font-size: 14px !important;
    }

    .review-author .review-rating i {
        font-size: 12px !important;
    }

    .review-item .review-text {
        font-size: 14px !important;
    }

    .reviews-slider .slick-arrow {
        width: 42px !important;
        height: 42px !important;
    }

    .reviews-slider .slick-arrow i {
        font-size: 18px !important;
    }

    .contacts-image-wrapper .contacts-image-item.empty-item {
        order: unset !important;
    }

    body .contacts-image-wrapper .contacts-image-item.empty-item {
        width: 100% !important;
        order: -1 !important;
    }

    body .contacts-image-wrapper .contacts-image-item:nth-child(1),
    body .contacts-image-wrapper .contacts-image-item:nth-child(2) {
        order: -1 !important;
    }

    body .contacts-image-wrapper .contacts-image-item:nth-child(5) {
        display: none !important;
    }

    .home #primary {
        padding-bottom: 0 !important;
    }
}