/* Сетка каталога */
.fiji-catalog-2026 {
    clear: both;
    float: none;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 100%;
    margin: 24px 0 32px;
    padding: 14px 0;
    box-sizing: border-box;
    color: #10254b;
    font-family: "Segoe UI", Arial, sans-serif;
    background: radial-gradient(
        ellipse at center,
        #e8f5ff 0%,
        transparent 75%
    );
}

.fiji-catalog-2026 *,
.fiji-catalog-2026 *::before,
.fiji-catalog-2026 *::after {
    box-sizing: border-box;
}

/* Карточка */
.fiji-catalog-2026 .fiji-catalog-2026__card {
    position: relative;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    grid-template-rows:
        minmax(44px, auto)
        auto
        auto
        1fr
        auto
        auto;
    column-gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid #e2eff9;
    border-radius: 24px;
    background: linear-gradient(155deg, #fff 50%, #f7fcff);
    box-shadow: 0 8px 26px rgba(0, 134, 209, 0.06);
    outline: 2px solid transparent;
    outline-offset: -2px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        outline-color 0.25s ease;
}

/* Левая колонка плашек */
.fiji-catalog-2026 .fiji-catalog-2026__labels {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
}

/* Фон охватывает весь текст плашки */
.fiji-catalog-2026 .fiji-catalog-2026__badge {
    display: block;
    flex: none;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    min-height: 28px;
    height: auto;
    margin: 0;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: #e9f5fd;
    color: #007bbd;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: normal;
    text-align: left;
    text-transform: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

/* Скидка и акция */
.fiji-catalog-2026 .fiji-catalog-2026__badge.sale,
.fiji-catalog-2026 .fiji-catalog-2026__badge.discount,
.fiji-catalog-2026 .fiji-catalog-2026__badge.gift {
    background: #ff3a43;
    color: #fff;
}

/* Новинка */
.fiji-catalog-2026 .fiji-catalog-2026__badge.new,
.fiji-catalog-2026 .fiji-catalog-2026__badge.green {
    background: #20bb55;
    color: #fff;
}

/* Хит */
.fiji-catalog-2026 .fiji-catalog-2026__badge.hit,
.fiji-catalog-2026 .fiji-catalog-2026__badge.best,
.fiji-catalog-2026 .fiji-catalog-2026__badge.yellow {
    background: #ffdf43;
    color: #10254b;
}

/* Короткие плашки — одной строкой */
.fiji-catalog-2026 .fiji-catalog-2026__badge.new,
.fiji-catalog-2026 .fiji-catalog-2026__badge.sale,
.fiji-catalog-2026 .fiji-catalog-2026__badge.hit {
    white-space: nowrap;
}

/* Правая колонка описания */
.fiji-catalog-2026 .fiji-catalog-2026__note {
    grid-column: 2;
    grid-row: 1;
    position: static;
    align-self: start;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 5px 0 0;
    padding: 0;
    color: #788bb5;
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: 13px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
    transform: rotate(-4deg);
    transform-origin: left top;
}

/* Изображение */
.fiji-catalog-2026 .fiji-catalog-2026__image {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    min-width: 0;
    margin: 6px 0 18px;
    overflow: hidden;
    border-radius: 14px;
    color: #7c8aab;
    font-size: 13px;
    text-decoration: none;
}

.fiji-catalog-2026 .fiji-catalog-2026__image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

/* Название */
.fiji-catalog-2026 .fiji-catalog-2026__title {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0;
    margin: 0 0 10px;
    color: #10254b;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.3px;
    text-align: center;
    overflow-wrap: anywhere;
}

.fiji-catalog-2026 .fiji-catalog-2026__title a {
    color: inherit;
    text-decoration: none;
}

.fiji-catalog-2026 .fiji-catalog-2026__title a:hover {
    color: #0086d1;
}

/* Комплектации над ценой */
.fiji-catalog-2026 .fiji-catalog-2026__offers {
    grid-column: 1 / -1;
    grid-row: 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    min-height: 88px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.fiji-catalog-2026 .fiji-catalog-2026__offers li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fiji-catalog-2026 .fiji-catalog-2026__offers li::before {
    content: none;
}

.fiji-catalog-2026 .fiji-catalog-2026__offers a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 4px;
    border-radius: 8px;
    color: #24436a;
    font: 14px/1.5 "Segoe UI", Arial, sans-serif;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.fiji-catalog-2026 .fiji-catalog-2026__offers a span {
    min-width: 0;
}

.fiji-catalog-2026 .fiji-catalog-2026__offers svg {
    flex: 0 0 18px;
    color: #0099df;
}

.fiji-catalog-2026 .fiji-catalog-2026__offers a:hover {
    background: #eaf6ff;
    color: #007bbd;
}

/* Цена и кнопка */
.fiji-catalog-2026 .fiji-catalog-2026__bottom {
    grid-column: 1 / -1;
    grid-row: 6;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.fiji-catalog-2026 .fiji-catalog-2026__old {
    min-height: 24px;
    color: #8190aa;
    font-size: 13px;
    line-height: 24px;
    text-align: center;
}

.fiji-catalog-2026 .fiji-catalog-2026__price {
    margin: 2px 0 17px;
    color: #10254b;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
}

.fiji-catalog-2026 .fiji-catalog-2026__details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 48px;
    padding: 13px 16px;
    border-radius: 14px;
    background: #0086d1;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.fiji-catalog-2026 .fiji-catalog-2026__details span {
    transition: transform 0.25s ease;
}

/* Навигация клавиатурой */
.fiji-catalog-2026 a:focus-visible {
    outline: 3px solid #0086d1;
    outline-offset: 4px;
}

.fiji-catalog-2026 .fiji-catalog-2026__card:focus-within {
    outline-color: #009be9;
    box-shadow: 0 12px 30px rgba(0, 134, 209, 0.14);
}

/* Наведение мышью */
@media (hover: hover) and (pointer: fine) {
    .fiji-catalog-2026 .fiji-catalog-2026__card:hover {
        z-index: 1;
        transform: translateY(-5px);
        outline-color: #009be9;
        box-shadow: 0 16px 36px rgba(0, 134, 209, 0.15);
    }

    .fiji-catalog-2026__card:hover .fiji-catalog-2026__image img {
        transform: scale(1.035);
    }

    .fiji-catalog-2026__card:hover .fiji-catalog-2026__details {
        background: #006fb5;
        box-shadow: 0 5px 14px rgba(0, 112, 180, 0.18);
    }

    .fiji-catalog-2026__card:hover .fiji-catalog-2026__details span {
        transform: translateX(4px);
    }
}

/* Четыре карточки в ряд */
@media (max-width: 1199px) {
    .fiji-catalog-2026 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}

/* Три карточки в ряд */
@media (max-width: 991px) {
    .fiji-catalog-2026 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Телефон: одна карточка в ряд */
@media (max-width: 767px) {
    .fiji-catalog-2026 {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .fiji-catalog-2026 .fiji-catalog-2026__card {
        grid-template-columns: 100px minmax(0, 1fr);
        column-gap: 14px;
    }

    .fiji-catalog-2026 .fiji-catalog-2026__note {
        font-size: 14px;
    }

    .fiji-catalog-2026 .fiji-catalog-2026__image {
        height: 230px;
    }

    .fiji-catalog-2026 .fiji-catalog-2026__title {
        font-size: 20px;
    }

    .fiji-catalog-2026 .fiji-catalog-2026__details {
        min-height: 50px;
        font-size: 15px;
    }
}

/* Уменьшение анимации по настройке устройства */
@media (prefers-reduced-motion: reduce) {
    .fiji-catalog-2026 .fiji-catalog-2026__card,
    .fiji-catalog-2026 .fiji-catalog-2026__image img,
    .fiji-catalog-2026 .fiji-catalog-2026__details,
    .fiji-catalog-2026 .fiji-catalog-2026__details span {
        transition: none;
    }

    .fiji-catalog-2026 .fiji-catalog-2026__card:hover,
    .fiji-catalog-2026__card:hover .fiji-catalog-2026__image img,
    .fiji-catalog-2026__card:hover .fiji-catalog-2026__details span {
        transform: none;
    }
}
/* Обновляем порядок блоков карточки */
.fiji-catalog-2026 .fiji-catalog-2026__card {
    grid-template-rows:
        minmax(44px, auto)
        auto
        auto
        auto
        1fr
        auto
        auto;
}

/* Метки занимают верхнюю строку */
.fiji-catalog-2026 .fiji-catalog-2026__labels {
    grid-column: 1 / -1;
}

/* Сноска под названием */
.fiji-catalog-2026 .fiji-catalog-2026__note {
    grid-column: 1 / -1;
    grid-row: 4;
    position: static;
    width: auto;
    min-width: 0;
    margin: 4px 0 14px;
    padding: 10px 4px;
    border-top: 1px solid #dcebf5;
    border-bottom: 1px solid #dcebf5;
    color: #788bb5;
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: 13px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    transform: none;
}

/* Комплектации и цена сохраняются внизу */
.fiji-catalog-2026 .fiji-catalog-2026__offers {
    grid-row: 6;
}

.fiji-catalog-2026 .fiji-catalog-2026__bottom {
    grid-row: 7;
}

@media (max-width: 767px) {
    .fiji-catalog-2026 .fiji-catalog-2026__note {
        font-size: 14px;
    }
}
/* Объёмные тени карточек */
.center:has(> .fiji-catalog-hero) .fiji-catalog-2026__card {
    border-color: #dcecf8;
    background: linear-gradient(
        160deg,
        #fff 60%,
        #f8fcff 100%
    );
    box-shadow:
        0 3px 7px rgba(23, 65, 100, .04),
        0 14px 30px -12px rgba(18, 79, 127, .20),
        inset 0 1px 0 rgba(255, 255, 255, .95);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        outline-color .28s ease,
        border-color .28s ease;
}

/* Наведение только на устройствах с мышью */
@media (hover: hover) and (pointer: fine) {
    .center:has(> .fiji-catalog-hero)
        .fiji-catalog-2026__card:hover {
        z-index: 2;
        transform: translateY(-7px);
        border-color: #a8dcf7;
        outline-color: rgba(0, 151, 224, .38);
        box-shadow:
            0 5px 12px rgba(23, 65, 100, .05),
            0 25px 42px -14px rgba(0, 109, 177, .28),
            0 0 0 4px rgba(0, 153, 223, .035);
    }

    .center:has(> .fiji-catalog-hero)
        .fiji-catalog-2026__card:hover
        .fiji-catalog-2026__image img {
        transform: scale(1.04);
    }

    .center:has(> .fiji-catalog-hero)
        .fiji-catalog-2026__card:hover
        .fiji-catalog-2026__details {
        background: linear-gradient(
            110deg,
            #0099e5,
            #0073bc
        );
        box-shadow:
            0 7px 16px -5px rgba(0, 119, 186, .35);
    }
}

/* Учитываем настройку уменьшения движения */
@media (prefers-reduced-motion: reduce) {
    .center:has(> .fiji-catalog-hero)
        .fiji-catalog-2026__card {
        transition: none;
    }

    .center:has(> .fiji-catalog-hero)
        .fiji-catalog-2026__card:hover,
    .center:has(> .fiji-catalog-hero)
        .fiji-catalog-2026__card:hover
        .fiji-catalog-2026__image img {
        transform: none;
    }
}