/* Loaded only by the homepage. */
#why .about-intro {
    width: min(92%, 960px);
    aspect-ratio: 1.85;
    min-height: 0;
    scale: none;
    margin-inline: auto;
}
#why .about-intro .floating-object {
    inset: auto;
    left: var(--x);
    top: var(--y);
    width: var(--w);
    height: auto;
    aspect-ratio: auto;
    transform: none;
}
#why .about-intro .floating-object img { display: block; width: 100%; height: auto; }
#why .mixer { --x: 50%; --y: 50%; --w: 34%; }
#why .mic-about { --x: 3%; --y: 49%; --w: 22%; }
#why .speaker-front { --x: 16%; --y: 11%; --w: 22%; }
#why .speaker-back { --x: 26%; --y: 6%; --w: 22%; }
#why .paging { --x: 62%; --y: 7%; --w: 29%; }
#why .container-xl > .position-absolute { pointer-events: none; }
#categories .categories-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
#categories .item { width: 100%; gap: 16px; }
#categories .item .name { min-width: 0; overflow-wrap: anywhere; }
.categories-menu .swiper-slide { height: auto; text-align: center; padding-inline: 4px; }
.categories-menu .slider-categories { min-width: 0; }
#best-seller .product-cover { max-width: 92%; }
#best-seller .product-cover img { max-width: 100%; object-fit: contain; }
#best-seller .swiper-slide { height: auto; }
#best-seller .item-footer { margin-top: auto; }
#articles > .container-xl { align-items: center; }
#faq .accordion-button-toggle, #service-links > a > svg { flex-shrink: 0; }

@media (max-width: 1199.98px) {
    #best-seller { padding-block: clamp(40px, 6vw, 72px) !important; }
    #services, #faq { padding-bottom: clamp(40px, 6vw, 72px); }
    #services .row { padding-top: clamp(40px, 6vw, 72px); }
    #categories .item { padding: clamp(18px, 3vw, 30px); }
    #categories .name { font-size: clamp(18px, 2.8vw, 25px); }
    #categories .item svg { width: 24px; height: 24px; }
    #articles .articles-items { padding-block: 28px; }
    :is(#articles, #faq) > .container-xl { padding-inline: clamp(16px, 4vw, 36px); }
    :is(#best-seller, #articles) .slider-navigation > div {
        display: grid; place-items: center; width: 44px; height: 44px; margin: 0 !important;
    }
    :is(#best-seller, #articles) .slider-navigation svg { width: 16px; height: 28px; }
    .categories-menu :is(.cat-button-next, .cat-button-prev) { flex: 0 0 44px; padding: 0; }
    .categories-menu :is(.cat-button-next, .cat-button-prev) svg { width: 15px; height: 27px; }
}
@media (max-width: 767.98px) {
    .home-header + .categories-menu { position: relative; inset: auto; transform: none; }
    #why { padding-top: 24px; }
    #why .about-intro { aspect-ratio: 1.38; }
    #why .speaker-front { --x: 10%; --y: 13%; --w: 29%; }
    #why .speaker-back { --x: 25%; --y: 7%; --w: 26%; }
    #why .mic-about { --x: 2%; --y: 56%; --w: 26%; }
    #why .paging { --x: 61%; --y: 8%; --w: 35%; }
    #why .mixer { --x: 47%; --y: 54%; --w: 45%; }
    /* Replace the original fixed offsets for these two layers at this breakpoint. */
    #why .about-intro :is(.mic-about,.paging) { transform: none !important; }
    #why .marquee-wrapper { padding-block: 16px; margin-top: 20px; }
    #why .marquee-item { font-size: 1.35rem; }
    #best-seller .row > .col-md-3 {
        flex-direction: row !important; flex-wrap: wrap; gap: 8px; padding-inline: var(--phone-content-inset);
    }
    #best-seller h2, #articles h2, #services h2, #faq h2 { font-size: clamp(24px, 6vw, 34px); line-height: 1.25; margin: 0; }
    #best-seller .best-seller { padding-inline: var(--phone-content-inset) !important; }
    #best-seller .best-seller .swiper-slide .content { padding: 20px 12px 12px; }
    #best-seller .product-cover { margin-block: 12px; }
    #best-seller .product-cover img { height: clamp(132px, 39vw, 180px) !important; }
    #best-seller .content > .mt-5 { margin-top: 10px !important; }
    #categories .categories-items { grid-template-columns: minmax(0, 1fr); }
    #categories .item { padding-inline: var(--phone-content-inset); }
    #services .row { margin-inline: 0; }
    #services .row > div { padding-inline: 0 !important; text-align: start !important; align-items: flex-start !important; }
    #services .row > div:first-child { gap: 12px; }
    #services .left { border: 0; }
    #faq > .container-xl > .d-flex, #articles > .container-xl { flex-wrap: wrap; gap: 8px 12px; }
    #faq > .container-xl > .d-flex { padding: 16px 0 !important; }
    #faq .accordion-button { gap: 12px; padding-inline: 0; }
    #articles .articles-items { margin-inline: var(--phone-content-inset); }
}
@media (max-width: 374.98px) {
    .navbar-custom { padding-inline: 6px; }
    .navbar-custom .navbar-brand { width: 84px; margin-inline: 0; padding-inline: 0; }
    .navbar-custom .navbar-brand :is(svg,img) { display: block; max-width: 100%; height: auto; }
    .navbar-custom .navbar-left { margin-inline: 0 !important; }
    #app .home-header { --hero-top: 68px; }
}
@media (prefers-reduced-motion: reduce) {
    #why .about-intro .floating-object { transform: none !important; opacity: 1 !important; }
}
@media (max-width: 1199.98px) {
    .navbar-custom .navbar-logo { margin-inline: auto 0; }
    #megaMenu { height: 100dvh; min-height: 0; }
    #megaMenu .inner .main { min-width: 0; }
    #megaMenu .categories { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    #megaMenu .menu-section { min-width: 0; }
    body .site-popup-backdrop { z-index: 10000 !important; }
    body .site-popup .site-popup-close { width: 44px; height: 44px; }
}
@media (max-width: 767.98px) {
    #megaMenu .inner .aside { padding: 12px 6px; }
    #megaMenu .close-menu { display: grid; place-items: center; width: 44px; height: 44px; }
    #megaMenu .menu-section { padding: 8px 12px; justify-content: flex-start; }
    #megaMenu .categories { padding: 12px 0 !important; }
    #megaMenu .categories .cover { width: 56px; height: 56px; flex: none; }
    #megaMenu .categories .cover img { max-width: 100%; max-height: 100%; }
    #megaMenu .categories .item-category > div { min-width: 0; overflow-wrap: anywhere; }
}
@media (min-width: 768px) and (max-height: 580px) {
    #app .home-header { --hero-top: 64px; --hero-image-min: 115px; }
    .home-header .view-aparat img { height: 40px !important; }
}
