/* ------------------------------
   GRID
--------------------------------*/
.czcard-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin: 0;
    border-radius:25px;
    padding: 25px;
    margin-bottom:35px;
    background: #f9f9f9;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.czcard-tile {
    background: #fff;
    display: block;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    text-decoration: none;
    color: #1c2c4c;
    transition: .25s ease;
}

.czcard-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.czcard-tile-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.czcard-tile-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.czcard-tile-title {
    font-size: 14px;
    font-weight: 600;
}

/* ------------------------------
   WRAPPER
--------------------------------*/
.czcard-tiles-wrapper {
    position: relative;
    margin-bottom: 20px;
}

/* ------------------------------
   INITIAL STATE (no FOUC)
--------------------------------*/
.czcard-tiles-grid.cz-init-hide {
    max-height: 1px;
    overflow: hidden;
}

.czcard-fade-mask.cz-init-show {
    opacity: 1 !important;
}

/* ------------------------------
   FADE MASK
--------------------------------*/
.czcard-fade-mask {
    position: absolute;
    left: 0;
    right: 0;

    bottom: 45px;
    height: 85px;

    pointer-events: none;
    z-index: 10;

    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,1) 100%
    );

    transition: opacity .35s ease;
}

/* ------------------------------
   BUTTON
--------------------------------*/
.czcard-expand-btn {
    display: block;
    margin: -10px auto 0;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;

    font-size: 28px;
    color: #be195a;
    transition: transform .25s ease;
}

.czcard-expand-btn:hover {
    transform: translateY(3px);
        color: #be195a;
    background-color: transparent;
    border-color: transparent;
}

.czcard-expand-btn:focus {

        color: #be195a;
    background-color: transparent;
    border-color: transparent;
}


.czcard-fade-mask.hidden {
    opacity: 0;
}
/* Плитки гарантированно имеют высоту при старте */
.czcard-tile {
    min-height: 80px; /* можно 70–100px */
}

/* ===============================
   Подсветка активной категории
   (как в ZNTECH Category Tabs)
=================================*/
.czcard-tile-current {
    border-bottom: 4px solid #c01c54 !important;
    border-radius: 8px !important;
}