.block2 {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    box-sizing: border-box;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
}

.services-grid {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-content: center;
}

/* КВАДРАТНЫЕ КАРТОЧКИ */
.service-card {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(0, 255, 180, 0.25);
    background-color: rgba(20, 20, 30, 0.35);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 0 20px rgba(0, 255, 180, 0.15),
        inset 0 0 20px rgba(0, 255, 180, 0.05);

    transition: 0.3s ease;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Фон внутри карточки — не перекрывает рамку */
.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: var(--bg-image);
    z-index: 0;
}

/* затемнение снизу */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.1));
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

/* Контейнер для бейджей */
.tech-badges {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

/* Отдельная стеклянная капсула */
.tech-item {
    padding: 4px 10px;
    border-radius: 10px;

    background: rgba(0, 255, 180, 0.12);
    border: 1px solid rgba(0, 255, 186, 0.35);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    font-size: 11px;
    color: #00ffb4;
    font-weight: 600;

    box-shadow:
        0 0 8px rgba(0, 255, 180, 0.25),
        inset 0 0 8px rgba(0, 255, 180, 0.15);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 25px rgba(0, 255, 180, 0.35),
        inset 0 0 25px rgba(0, 255, 180, 0.15);
    border-color: #00ffb4;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: #00ffb4;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.service-card p {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}
