* {
    box-sizing: border-box;
}

span.modern-linq {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 10px 0;

    animation: modern-linq-aggressive 6s infinite;
    transform-origin: center;
}

@keyframes modern-linq-aggressive {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        filter: none;
    }

    /* різкий ривок */
    8% {
        transform: scale(1.08) rotate(-2deg);
    }

    14% {
        transform: scale(.97) rotate(2deg);
    }

    /* сильний імпульс */
    22% {
        transform: scale(1.12) rotate(-1deg);
        filter:
            drop-shadow(0 0 4px var(--standart-neon-color)) drop-shadow(0 0 14px var(--standart-neon-color));
    }

    30% {
        transform: scale(1) rotate(0deg);
        filter: none;
    }

    /* ще один удар */
    48% {
        transform: scale(1.06);
    }

    53% {
        transform: scale(.96);
    }

    58% {
        transform: scale(1.1);
        filter:
            drop-shadow(0 0 6px var(--standart-neon-color)) drop-shadow(0 0 18px var(--standart-neon-color));
    }

    66% {
        transform: scale(1);
        filter: none;
    }

    /* фінальний сильний пульс */
    82% {
        transform: scale(1.04);
    }

    88% {
        transform: scale(1.12) rotate(1deg);
        filter:
            drop-shadow(0 0 5px var(--standart-neon-color)) drop-shadow(0 0 20px var(--standart-neon-color));
    }

    94% {
        transform: scale(.98);
    }
}

span.modern-linq a {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: black;
    font-weight: bold;
    text-decoration: none;

    border: 5px solid var(--standart-neon-color);
    padding: 2px 8px 2px 12px;
    border-radius: 12px;

    background: var(--standart-neon-color);

    overflow: hidden;

    box-shadow:
        0 0 8px var(--standart-neon-color);

    transition:
        box-shadow .2s ease,
        transform .2s ease;
}

span.modern-linq a:hover {
    box-shadow:
        0 0 12px var(--standart-neon-color),
        0 0 25px var(--standart-neon-color);
}

/* Текст */
span.modern-linq-text {
    position: relative;
    z-index: 2;
    color: black;
    font-size: large;
}

/* Віконце для картинки */
span.modern-linq-icon {
    position: relative;

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    overflow: hidden;

    display: block;

    border-radius: 6px;

    background: rgba(0, 0, 0, .12);

    box-shadow:
        inset 0 0 6px rgba(0, 0, 0, .25);

    isolation: isolate;
}

/* Самі картинки */
span.modern-linq-icon img {
    position: absolute;

    left: 50%;
    top: -100%;

    width: 32px;
    height: 32px;

    object-fit: contain;

    transform:
        translateX(-50%) scale(.75);

    opacity: 0;

    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}

/* Поточна картинка */
span.modern-linq-icon img.active {
    top: 50%;

    transform:
        translate(-50%, -50%) scale(1);

    opacity: 1;
}

img.service_img {
    filter: drop-shadow(0 0 2px var(--standart-neon-color));
}

.category_serv_count::before {
    content: "(";
}

.category_serv_count::after {
    content: ")";
}

.banner_list {
    width: 100%;
    position: relative;
}

.banner_slider {
    position: relative;
    overflow: hidden;
}

.banner_slider img {
    max-height: 360px;
    width: auto;
    height: auto;
    display: block;
}

.banner_slide {
    display: none;
}

.banner_slide.active {
    display: flex;
    justify-content: center;
}

.banner_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    background: rgba(0, 0, 0, .4);
    color: white;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
}

.banner_arrow.prev {
    left: 10px;
}

.banner_arrow.next {
    right: 10px;
}

.banner_dots {
    text-align: center;
    padding: 10px 0;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    display: inline-block;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #333;
}

.category_cart:not(:first-child) {
    margin-top: 15px;
}

/* ===== CATEGORY CARD ===== */
.category_cart {
    background: var(--standart-bg-color);
    border-radius: 18px;
    margin-bottom: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: 0.25s ease;
}

/* ===== SUMMARY (header акордеону) ===== */
.category_cart>summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 700;
    color: var(--standart-text-1-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--standart-bg-color);
}

/* прибрати стандартну стрілку */
.category_cart>summary::-webkit-details-marker {
    display: none;
}

/* лічильник */
.category_serv_count {
    font-style: normal;
    background: linear-gradient(135deg, #6b7d3a, #a3b86c);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
}

.shop_top::before {
    content: "ТОП ПРОДАЖІВ";
    display: block;
    width: 96%;
    text-align: center;
    font-size: larger;
    font-weight: bold;
    color: black;
    padding: 10px 0;
    border-radius: 15px 15px 0 0;
    margin: 20px 2% 20px 2%;

    background-color: var(--standart-neon-color);
}

.shop_regular::before {
    content: "МАГАЗИН";
    display: block;
    width: 96%;
    text-align: center;
    font-size: larger;
    font-weight: bold;
    color: black;
    padding: 10px 0;
    border-radius: 15px 15px 0 0;
    margin: 20px 2% 20px 2%;

    background-color: var(--standart-neon-color);
}

/* ===== CONTENT GRID ===== */
.category_services {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    background: none;
}

.category_services.top {
    position: relative;
    padding: 14px;
    display: flex;
    gap: 14px;

    overflow-x: auto;
    overflow-y: hidden;

    white-space: nowrap;
}

.category_services.top>* {
    flex: 0 0 180px;
    min-width: 180px;
    flex-shrink: 0;
}

.category_services.top h3 {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ===== PRODUCT LINK ===== */
.category_services a {
    text-decoration: none;
}

/* ===== PRODUCT CARD ===== */
.service_cart {
    background: var(--standart-bg-color);
    border-radius: 16px;
    border: solid 2px var(--standart-border-color);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: 0.25s ease;
    height: 100%;
}

/* hover */
.service_cart:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(107, 125, 58, 0.18);
}

/* image */
.service_img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: none;
    padding: 10px;
}

/* name */
.service_cart_name {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 12px 4px;
    color: var(--standart-text-1-color);
    line-height: 1.3;
}

/* price */
.service_cart_price {
    margin-top: auto;
    padding: 10px 12px 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--standart-text-2-color);
}

/* smooth open animation */
.category_cart[open] .category_services {
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@media screen and (max-width: 768px) {
    .banner_slider img {
        max-height: auto;
        height: auto;
        width: 100%;
    }
}