/* ===== CARD BASE ===== */
.service-card {
    perspective: 1000px;
    height: 260px;
    position: relative;
}

/* ===== INNER WRAPPER ===== */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

/* ===== BOTH SIDES ===== */
.card-front,
.card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    padding: 28px;
}

/* ===== FRONT ===== */
.card-front {
    background: #ffffff;
    border: 1px solid #E5E9F0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ===== CARD HEADER (icon + number row) ===== */
.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* ===== ICON BADGE ===== */
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-green {
    background: #e8f7f2;
}

.icon-yellow {
    background: #fef5e4;
}

.icon-blue {
    background: #e8f2fb;
}

/* ===== NUMBER ===== */
.card-number {
    font-size: 15px;
    font-weight: 600;
    color: #b0bac8;
    letter-spacing: 0.04em;
    line-height: 1;
    padding-top: 4px;
}

/* ===== TITLE ===== */
.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0d2236;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* ===== DESCRIPTION ===== */
.card-desc {
    font-size: 14px;
    color: #5a6a7e;
    line-height: 1.6;
    margin: 0;
}

/* ===== BACK ===== */
.card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-back p {
    font-size: 15px;
    line-height: 1.65;
    color: #ffffff;
    font-weight: 500;
    margin: 0;
}

.back-green {
    background: #1d9e75;
    opacity: 70%;
}

.back-yellow {
    background: #ef9f27;
    opacity: 70%;
}

.back-blue {
    background: #378add;
    opacity: 70%;
}