.card-custom {
    --card-mask: url("./service-bg-mask%20%281%29.svg");
    --card-green: #43aa5c;
    --card-dark: #245945;
    --card-accent: #f1c232;
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.card-custom-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 153 / 205;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.14));
}

.card-custom-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--card-green);
    -webkit-mask-image: var(--card-mask);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: var(--card-mask);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.card-custom-shape {
    position: absolute;
    inset: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(250, 250, 250, 0.4) 0%, rgba(250, 250, 250, 0.4) 44%, #f5f5f5 44%, #f5f5f5 100%);
    -webkit-mask-image: var(--card-mask);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: var(--card-mask);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.card-custom-image-panel {
    position: relative;
    flex: 0 0 55%;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
    background: linear-gradient(180deg, #dce8dc 0%, #b9d8bd 100%);
}

.card-custom-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-custom-body {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 78px 26px 56px;
    margin-top: -8px;
    text-align: center;
}

.card-custom-body::before {
    content: "";
    position: absolute;
    inset: 0 0 0;
    background: #f8f8f8;
    clip-path: polygon(0 15%, 50% 0, 100% 15%, 100% 100%, 0 100%);
}

.card-custom-badge {
    position: absolute;
    top: 0;
    left: 50%;
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-accent);
    z-index: 2;
    transform: translate(-50%, -22%);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.16));
}

.card-custom-badge-icon {
    width: 100%;
    height: 100%;
}

.card-custom-content {
    position: relative;
    z-index: 1;
}

.card-custom-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--card-dark);
}

.card-custom-button-wrapper {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 2;
    transform: translateX(-50%);
}

.card-custom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 34px;
    border-radius: 999px;
    background: var(--card-accent);
    color: var(--card-dark);
    text-decoration: none;
    border: 0;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-custom-button:hover,
.card-custom-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.card-custom-button-icon {
    width: 22px;
    height: 22px;
}

.card-custom-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    text-align: center;
    background: rgba(36, 89, 69, 0.94);
    color: #fff;
}

.card-custom-overlay[hidden] {
    display: none;
}

.card-custom-overlay-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-custom-overlay-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.card-custom-overlay-text {
    font-size: 14px;
    line-height: 1.6;
}

.card-custom-overlay-text p {
    margin: 0;
}

.card-custom-overlay-text p + p {
    margin-top: 10px;
}

.card-custom-overlay-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 38px;
    margin-top: 18px;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--card-accent);
    color: var(--card-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
