.crypto {
    margin: 30px 0;
}
.crypto__wrapper h2 {
    text-align: center;
    margin-bottom: 1.8rem;
    font-weight: 600;
    font-size: 1.8rem;
    color: #1e293b;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.crypto__wrapper h2 span {
    background: #3b82f6;
    font-size: 0.9rem;
    background: #1e293b;
    color: white;
    padding: 4px 12px;
    border-radius: 40px;
    font-weight: 400;
}

/* ----- СЕТКА (десктоп: >=768px) ----- */
.crypto__wrapper .grid-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.crypto__wrapper .item-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 0 17.4px 0 rgba(156, 156, 156, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s;
    cursor: default;
    backdrop-filter: blur(0px);
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 15px 20px;
}
.crypto__wrapper .item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.15);
}

.crypto__wrapper .card-img {
    height: 60px;
    width: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 50%;
    overflow: hidden;
}

.crypto__wrapper .card-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #0f172a;
}
.crypto__wrapper .card-content p {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0;
    margin: 0;
}

.crypto__wrapper .slider-container {
    position: relative;
    width: 100%;
    user-select: none;
    touch-action: pan-y pinch-zoom; /* горизонтальный свайп */
}

.crypto__wrapper .slider-viewport {
    overflow: hidden;
    width: 100%;
    padding-top: 20px;
    cursor: grab;
    touch-action: pan-y pinch-zoom;
}
.crypto__wrapper .slider-viewport:active {
    cursor: grabbing;
}

.crypto__wrapper .slider-track {
    display: flex;
    gap: 8px;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    will-change: transform;
}

/* Каждый слайд — занимает 100% ширины вьюпорта */
.crypto__wrapper .slider-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 24px;
}

/* Внутренность слайда: max-width 360px, центрирование */
.crypto__wrapper .slider-slide .item-card {
    width: 100%;
    max-width: calc(100% - 15px);
    margin: 10px auto 0;
    transition: all 0.3s;
    box-shadow: 0 0 17.4px 0 rgba(156, 156, 156, 0.25);
}

/* Кнопки навигации слайдера */
.crypto__wrapper .slider-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 0;
    align-items: center;
}
.crypto__wrapper .slider-btn {
    background: rgba(195, 194, 211, 0.25);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1006.686px 281.314px 0 rgba(0, 0, 0, 0.00), 0 644px 258.065px 0 rgba(0, 0, 0, 0.01), 0 362.686px 218.542px 0 rgba(0, 0, 0, 0.05), 0 160.419px 160.419px 0 rgba(0, 0, 0, 0.09), 0 39.523px 88.347px 0 rgba(0, 0, 0, 0.10);
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    backdrop-filter: blur(20px);
    border: none;
}

.crypto__wrapper .slider-btn:active {
    transform: scale(0.94);
    background: white;
}
.crypto__wrapper .slider-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}
.crypto__wrapper .slider-btn svg {
    width: 8px;
    height: 18px;
}
.crypto__wrapper .slider-btn:first-child {
    padding-right: 2px;
}
.crypto__wrapper .slider-btn:last-child {
    padding-left: 2px;
}

/* Адаптивные правила */
@media (max-width: 767px) {

    .crypto.page-section {
        margin: 20px 0 40px;
    }
    .crypto__wrapper .slider-slide {
        flex: 0 0 82%;
        transition: opacity 0.3s ease;
    }

    .crypto__wrapper .slider-slide.active-slide {
        opacity: 1;
    }

    .crypto__wrapper .slider-slide .item-card {
        max-width: 320px;
        width: 100%;
        margin: 0 auto;
        transition: box-shadow 0.3s, transform 0.3s;
    }

    .crypto__wrapper .slider-slide.active-slide .item-card {
        box-shadow: 0 0 25px rgba(0,0,0,0.15);
    }
}

/* скрываем / показываем в зависимости от режима */
.crypto__wrapper .mode-grid {
    display: block;
}
.crypto__wrapper .mode-slider {
    display: block;
}
.crypto__wrapper .hidden-layout {
    display: none !important;
}