.fapads-slot {
    --fapads-columns: 1;
    --fapads-ratio: 6.6667;
    --fapads-mobile-ratio: 2.4;
    box-sizing: border-box;
    display: block;
    clear: both;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 24px 0;
}
.fapads-slot[hidden] { display: none !important; }
.fapads-slot *, .fapads-slot *::before, .fapads-slot *::after { box-sizing: border-box; }
.fapads-slot__label {
    margin: 0 0 5px;
    color: #777c8c;
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: .03em;
}
.fapads-slot__items {
    display: grid;
    grid-template-columns: repeat(var(--fapads-columns), minmax(0, 1fr));
    align-items: start;
    gap: 16px;
    width: 100%;
    min-width: 0;
}
.fapads-slot__items:empty::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: var(--fapads-ratio);
}
.fapads-slot:has(noscript img) .fapads-slot__items { display: none; }
.fapads-slot noscript img { display: block; width: 100%; max-width: 100%; height: auto; }
.fapads-creative {
    display: block;
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    color: inherit;
    text-decoration: none;
}
.fapads-creative--image {
    overflow: hidden;
    aspect-ratio: var(--fapads-ratio);
    border: 1px solid #dce0ef;
    border-radius: 8px;
    background: #fff;
}
a.fapads-creative--image { transition: border-color .15s ease, box-shadow .15s ease; }
a.fapads-creative--image:hover, a.fapads-creative--image:focus-visible {
    border-color: #3b39a6;
    box-shadow: 0 2px 8px rgb(59 57 166 / 10%);
    outline: none;
}
.fapads-creative--image picture, .fapads-creative--image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
}
.fapads-creative--image img { object-fit: contain; border: 0; }
.fapads-creative--google {
    min-height: 120px;
    height: auto;
    overflow: visible;
    aspect-ratio: auto;
}
.fapads-creative--google .adsbygoogle { display: block; width: 100%; }
.fapads-slot--home_middle { --fapads-ratio: 2; --fapads-mobile-ratio: 2; }
.fapads-slot--catalog_sidebar { --fapads-ratio: .5; --fapads-mobile-ratio: .5; margin: 20px 0; }
.fapads-page-slot {
    grid-column: 1 / -1;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    list-style: none;
}
@media (max-width: 767px) {
    .fapads-slot { margin: 18px 0; }
    .fapads-slot--catalog_sidebar { display: none !important; }
    .fapads-slot__items { gap: 12px; }
    .fapads-creative--image, .fapads-slot__items:empty::before { aspect-ratio: var(--fapads-mobile-ratio); }
    .fapads-slot--multiple .fapads-slot__items {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: #c5c9e5 transparent;
        overscroll-behavior-x: contain;
        padding-bottom: 5px;
    }
    .fapads-slot--multiple .fapads-creative, .fapads-slot--multiple .fapads-slot__items:empty::before {
        flex: 0 0 100%;
        scroll-snap-align: start;
    }
}
@media (prefers-reduced-motion: reduce) {
    a.fapads-creative--image { transition: none; }
}
@media print { .fapads-slot { display: none !important; } }
