.services-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.services-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px;
    overflow: hidden;
}

.services-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(180, 0, 0, 0.18), transparent 65%);
    pointer-events: none;
}

.section-kicker {
    margin-bottom: 10px;
    color: rgba(255, 70, 70, 0.82);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.services-hero h1 {
    margin: 0 0 12px;
    color: #f2e8df;
    font-size: 34px;
    line-height: 1.1;
}

.services-hero p {
    max-width: 680px;
    margin: 0;
    color: #a99f96;
    font-size: 15px;
    line-height: 1.7;
}

.services-hero-icon {
    position: relative;
    z-index: 1;
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
    background: url("/static/img/icons/services.png") center / contain no-repeat;
    opacity: 0.85;
    filter:
        drop-shadow(0 0 14px rgba(255, 0, 0, 0.45))
        brightness(1.15);
}

/* Сетка */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* Карточка */
.service-card {
    --service-bg-icon: none;

    position: relative;
    display: block;
    min-height: 155px;
    padding: 24px;
    overflow: hidden;

    text-decoration: none;
    border-radius: inherit;
    isolation: isolate;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

/* Фон карточки */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        radial-gradient(circle at top right, rgba(180, 0, 0, 0.16), transparent 42%),
        linear-gradient(145deg, rgba(20, 20, 20, 0.92), rgba(3, 3, 3, 0.96));
}

/* Большая фоновая иконка */
.service-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -48px;
    z-index: -1;

    width: 190px;
    height: 190px;

    background: var(--service-bg-icon) center / contain no-repeat;


    filter:
        drop-shadow(0 0 24px rgba(255, 0, 0, 0.35))
        brightness(1.25)
        contrast(1.1);

    pointer-events: none;

    transition:
        transform 0.22s ease,
        opacity 0.22s ease,
        filter 0.22s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 0, 0, 0.62);
    box-shadow:
        0 0 24px rgba(160, 0, 0, 0.24),
        inset 0 0 22px rgba(255, 0, 0, 0.035);
}

.service-card:hover::after {
    transform: scale(1.12);

    filter:
        drop-shadow(0 0 38px rgba(255, 0, 0, 0.55))
        brightness(1.45)
        contrast(1.15);
}

/* Контент */
.service-content {
    position: relative;
    z-index: 1;
    max-width: 72%;
}

.service-content h2 {
    margin: 0 0 8px;
    color: #eadfd6;
    font-size: 19px;
}

.service-content p {
    margin: 0 0 14px;
    color: #9d938c;
    font-size: 14px;
    line-height: 1.55;
}

.service-content span {
    color: rgba(255, 75, 75, 0.85);
    font-size: 13px;
}

/* Старый блок иконки больше не нужен */
.service-icon {
    display: none;
}

/* Иконки сервисов */
.service-card-gitlab {
    --service-bg-icon: url("/static/img/icons/gitlab.png");
}

.service-card-help {
    --service-bg-icon: url("/static/img/icons/help.png");
}

.service-card-matrix {
    --service-bg-icon: url("/static/img/icons/matrix.png");
}

.service-card-jitsi {
    --service-bg-icon: url("/static/img/icons/jitsi.png");
}

.service-card-mail {
    --service-bg-icon: url("/static/img/icons/mail.png");
}

.service-card-updown {
    --service-bg-icon: url("/static/img/icons/updown.png");
}

/* Статусы */
.status {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-online {
    color: #4cff9a;
    text-shadow: 0 0 6px rgba(0, 255, 140, 0.35);
}

.status-warning {
    color: #ffb347;
    text-shadow: 0 0 6px rgba(255, 150, 0, 0.35);
}

.status-offline {
    color: #ff4d4d;
    text-shadow: 0 0 6px rgba(255, 0, 0, 0.45);
}

/* Адаптив */
@media (max-width: 900px) {
    .services-hero {
        align-items: flex-start;
    }

    .services-hero-icon {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-content {
        max-width: 78%;
    }

    .service-card::after {
        right: -58px;
        bottom: -58px;
        width: 175px;
        height: 175px;
    }
}