/* Keep oversized decorative elements within their own sections. */
#slider,
#mission,
#sections-main,
#kids,
#catalog-sections,
#contacts {
    overflow-x: clip;
}

#slider .main-img-box .main-img {
    max-width: 100%;
    height: auto;
}

#contacts .contacts-grid .circle-card {
    width: min(100%, 500px);
    height: auto;
    aspect-ratio: 1;
    margin-inline: auto;
}

#contacts .contacts-grid .circle-card-header {
    top: 10%;
}

#contacts .contacts-grid .circle-card-header p {
    min-width: 0;
    width: 80%;
}

#contacts .contacts-grid .circle-card-body {
    top: 24%;
    left: 18%;
    width: 70%;
}

#contacts .contacts-grid .circle-card-footer {
    right: 21%;
    bottom: 11%;
}

#contacts .contacts-grid .circle-card-footer img {
    height: clamp(44px, 5vw, 80px);
}

#contacts .contacts-grid .circle-card-footer .contact-geo-icon {
    height: clamp(60px, 8vw, 120px);
    right: 0;
}

h1.product-category .product-name__header {
    display: inline-block;
    position: relative;
    top: -8px;
    color: #5d638b;
    font-size: 38px;
}

@media (min-width: 768px) and (max-width: 1199px) {
    header.menu .menu-box {
        padding-inline: 14px;
    }

    header.menu .label-logo {
        padding-left: 8px;
    }

    header.menu .menu-item {
        padding-left: 4px;
        margin-right: 10px;
        font-size: 13px;
    }

    header.menu .menu-item::after {
        content: none;
    }

    header.menu .menu__right-side ul {
        gap: 10px;
        padding-left: 4px;
    }

    #slider .slider-box {
        height: auto;
        min-height: 480px;
        align-items: center;
        gap: 24px;
        padding: 42px 24px 18px;
    }

    #slider .slider__left-side,
    #slider .slider__right-side {
        flex: 1 1 0;
        width: auto !important;
        min-width: 0;
        height: auto;
        padding: 0;
        margin: 0;
        background: transparent;
    }

    #slider .slider-title {
        width: auto;
        font-size: clamp(28px, 4vw, 48px);
        line-height: 1.16;
    }

    #slider .slider-text {
        width: auto;
    }

    #slider .slider-partners-box {
        margin: 22px 0;
    }

    #slider .slider-partners-box .row {
        align-items: center;
    }

    #slider .slider-partners-box .row > div:first-child {
        width: 48%;
    }

    #slider .slider-partners-box .row > div:last-child {
        width: 52%;
    }

    #slider .partners-slider-main .owl-nav {
        margin-right: 0;
        padding: 5px;
    }

    #slider .main-img-box {
        right: auto;
        overflow: hidden;
    }

    #slider .halloween-parts-box {
        inset: auto -16% -16% auto;
        width: 60%;
    }

    #slider .halloween-parts-box img {
        width: 100%;
    }

    #filter-box-desc > .row {
        row-gap: 12px;
    }

    #filter-box-desc > .row > div:not(:has(> *)) {
        display: none;
    }

    #filter-box-desc > .row > div:has(> :is(.product-filter-tab, .collection-filter-tab, .main-filter-tab, .products-sort)) {
        width: auto;
        min-width: 0;
        position: relative;
    }

    #filter-box-desc .product-filter-tab,
    #filter-box-desc .collection-filter-tab,
    #filter-box-desc .main-filter-tab,
    #filter-box-desc .products-sort {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-inline: 0;
        white-space: nowrap;
    }

    #filter-box-desc .product-filter-tab img,
    #filter-box-desc .collection-filter-tab img,
    #filter-box-desc .main-filter-tab img,
    #filter-box-desc .products-sort img {
        padding-left: 0;
    }

    #filter-box-desc .product-sort-box {
        left: auto;
        right: 0;
    }

    #contacts .contacts-grid > .col-md-4 {
        width: 50%;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    h1.product-category .product-name__header {
        top: auto;
        color: #000;
        font-size: 16px;
        line-height: 16px;
    }

    #contacts .contacts-grid .circle-card {
        min-width: 0;
    }

    #sync1.owl-theme .owl-nav:not(.disabled) {
        display: flex;
        gap: 8px;
        left: 12px;
        right: auto;
        bottom: 350px;
        z-index: 1;
    }

    #sync1.owl-theme .owl-nav button.owl-prev,
    #sync1.owl-theme .owl-nav button.owl-next {
        position: static;
        margin: 0 !important;
        width: 40px;
        height: 44px;
        display: grid;
        place-items: center;
    }
}

#catalog-sections .section-card-img img {
    max-width: 100%;
    height: auto;
}

#slider .main-img-parts-box {
    max-width: 68%;
}

#slider .main-img-parts-box img {
    max-width: 100%;
}

.text-bg-box__catalog {
    inset-inline: 0;
    width: auto;
    overflow-x: clip;
}

@media (min-width: 768px) and (max-width: 1199px) {
    #sections-main .main-section-box {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}
