@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

.a24-service-cards,
.a24-service-cards * {
    box-sizing: border-box;
}

.a24-service-cards {
    --a24-card-red: #e4004e;
    --a24-card-red-hot: #ff1c61;
    --a24-card-bg: rgba(8, 12, 17, .92);
    --a24-card-bg-2: rgba(17, 23, 31, .96);
    --a24-card-line: rgba(255,255,255,.24);
    --a24-card-line-hot: rgba(255,28,97,.38);
    --a24-card-text: rgba(255,255,255,.94);
    --a24-card-muted: rgba(255,255,255,.66);
    position: relative;
    width: 100%;
    max-width: var(--a24-card-max-width, 1440px);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 64px) clamp(18px, 3vw, 40px);
    color: var(--a24-card-text);
    isolation: isolate;
}

.a24-service-cards:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .55;
    background:
        radial-gradient(ellipse at 48% 0%, rgba(255,28,97,.16), transparent 42%),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
    background-position: center, center, center;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    pointer-events: none;
}

.a24-service-cards__header {
    text-align: center;
    margin: 0 0 clamp(22px, 2.4vw, 38px);
}

.a24-service-cards__heading {
    margin: 0;
    font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-size: clamp(30px, 3.8vw, var(--a24-service-heading-size, 46px));
    font-weight: 400;
    line-height: .95;
    letter-spacing: .065em;
    text-transform: uppercase;
    color: #fff;
    text-shadow:
        0 0 9px rgba(255,255,255,.16),
        0 0 22px rgba(255,28,97,.12);
}

.a24-service-cards__grid {
    display: grid;
    grid-template-columns: repeat(var(--a24-service-columns, 4), minmax(0, 1fr));
    gap: var(--a24-card-gap, 24px);
    align-items: stretch;
}

.a24-service-cards--cols-2 { --a24-service-columns: 2; }
.a24-service-cards--cols-3 { --a24-service-columns: 3; }
.a24-service-cards--cols-4 { --a24-service-columns: 4; }
.a24-service-cards--cols-5 { --a24-service-columns: 5; }
.a24-service-cards--cols-6 { --a24-service-columns: 6; }

.a24-service-card {
    appearance: none;
    border: 0;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    min-height: var(--a24-card-min-height, 245px);
    padding: clamp(22px, 2.2vw, 34px);
    color: inherit !important;
    text-decoration: none !important;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,28,97,.08), transparent 32%),
        linear-gradient(145deg, var(--a24-card-bg-2), var(--a24-card-bg));
    clip-path: polygon(8% 0, 100% 0, 100% 84%, 92% 100%, 0 100%, 0 16%);
    filter: drop-shadow(0 18px 35px rgba(0,0,0,.38));
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    animation: a24ServiceCardIn .72s cubic-bezier(.18,.74,.22,1) forwards;
    animation-delay: calc(.08s * var(--a24-card-index, 0));
}

.a24-service-card:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    clip-path: inherit;
    background:
        linear-gradient(135deg, rgba(255,255,255,.46), rgba(255,255,255,.08) 28%, rgba(255,28,97,.20) 58%, rgba(255,255,255,.26));
}

.a24-service-card:after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    clip-path: inherit;
    background:
        linear-gradient(145deg, rgba(18,24,32,.96), rgba(5,8,13,.98));
}

.a24-service-card__glow {
    position: absolute;
    inset: -1px;
    pointer-events: none;
    opacity: .35;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,28,97,.35), transparent 20%),
        linear-gradient(90deg, transparent 0%, rgba(255,28,97,.16) 50%, transparent 100%);
    mix-blend-mode: screen;
}

.a24-service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--a24-service-icon-size, 72px);
    height: var(--a24-service-icon-size, 72px);
    margin: 0 0 clamp(18px, 2vw, 26px);
    filter:
        drop-shadow(0 0 9px rgba(255,28,97,.42))
        drop-shadow(0 0 18px rgba(255,28,97,.16));
}

.a24-service-card__icon img,
.a24-service-card__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.a24-service-card__title {
    display: block;
    margin: 0 0 clamp(10px, 1.2vw, 16px);
    max-width: 96%;
    font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-size: clamp(22px, 2.1vw, var(--a24-service-title-size, 28px));
    font-weight: 400;
    line-height: .96;
    letter-spacing: .055em;
    text-transform: uppercase;
    color: #fff;
    text-shadow:
        0 0 8px rgba(255,255,255,.18),
        0 0 18px rgba(255,28,97,.10);
}

.a24-service-card__text {
    display: block;
    margin: 0;
    max-width: 98%;
    font-family: Manrope, Inter, Arial, sans-serif;
    font-size: clamp(13px, 1.05vw, var(--a24-service-text-size, 16px));
    font-weight: 450;
    line-height: 1.55;
    color: var(--a24-card-muted);
}

.a24-service-card__arrow {
    position: absolute;
    right: clamp(22px, 2vw, 34px);
    bottom: clamp(20px, 2vw, 30px);
    font-size: clamp(28px, 2.5vw, 42px);
    line-height: 1;
    color: rgba(255,255,255,.62);
    text-shadow: 0 0 12px rgba(255,28,97,.16);
    transform: translateX(0);
    transition: transform .28s ease, color .28s ease, text-shadow .28s ease;
}

.a24-service-card:hover .a24-service-card__arrow,
.a24-service-card:focus-visible .a24-service-card__arrow,
.a24-service-card.is-active .a24-service-card__arrow {
    transform: translateX(7px);
    color: #fff;
    text-shadow: 0 0 14px rgba(255,28,97,.55);
}

.a24-service-card:hover:before,
.a24-service-card:focus-visible:before,
.a24-service-card.is-active:before {
    background:
        linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.10) 28%, rgba(255,28,97,.42) 58%, rgba(255,255,255,.34));
}

.a24-service-card.is-active {
    filter:
        drop-shadow(0 18px 35px rgba(0,0,0,.38))
        drop-shadow(0 0 24px rgba(255,28,97,.18));
}

.a24-service-card:focus-visible {
    outline: 2px solid rgba(255,28,97,.86);
    outline-offset: 4px;
}

.a24-service-detail {
    grid-column: 1 / -1;
    width: 100%;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    animation: a24ServiceDetailIn .38s ease forwards;
}

.a24-service-detail[hidden] {
    display: none !important;
}

.a24-service-detail__inner {
    position: relative;
    padding: clamp(24px, 3vw, 44px);
    color: var(--a24-card-text);
    clip-path: polygon(3% 0, 100% 0, 100% 82%, 97% 100%, 0 100%, 0 18%);
    background:
        radial-gradient(circle at 20% 0%, rgba(255,28,97,.18), transparent 34%),
        linear-gradient(145deg, rgba(18,24,32,.98), rgba(5,8,13,.98));
    border: 1px solid rgba(255,255,255,.16);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.05),
        0 18px 46px rgba(0,0,0,.38),
        0 0 34px rgba(255,28,97,.10);
}

.a24-service-detail__inner:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .55;
    background:
        linear-gradient(90deg, rgba(255,28,97,.30), transparent 22%, transparent 78%, rgba(255,28,97,.14)),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: auto, 56px 56px, 56px 56px;
}

.a24-service-detail__close {
    appearance: none;
    border: 1px solid rgba(255,255,255,.18);
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.76);
    background: rgba(5,8,13,.72);
    font-size: 28px;
    line-height: 1;
    clip-path: polygon(25% 0, 100% 0, 100% 75%, 75% 100%, 0 100%, 0 25%);
}

.a24-service-detail__close:hover,
.a24-service-detail__close:focus-visible {
    color: #fff;
    border-color: rgba(255,28,97,.58);
}

.a24-service-detail__title {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    padding-right: 46px;
    font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-size: clamp(26px, 3vw, var(--a24-service-detail-title-size, 34px));
    font-weight: 400;
    line-height: .96;
    letter-spacing: .055em;
    text-transform: uppercase;
    color: #fff;
}

.a24-service-detail__content {
    position: relative;
    z-index: 1;
    max-width: 980px;
    font-family: Manrope, Inter, Arial, sans-serif;
    font-size: clamp(15px, 1.25vw, var(--a24-service-detail-text-size, 17px));
    line-height: 1.65;
    color: rgba(255,255,255,.72);
}

.a24-service-detail__content p {
    margin: 0 0 1em;
}

.a24-service-detail__content p:last-child {
    margin-bottom: 0;
}

.a24-service-detail__content strong {
    color: #fff;
}

.a24-service-detail__content a {
    color: #fff;
    text-decoration-color: rgba(255,28,97,.8);
    text-underline-offset: .18em;
}

.a24-service-detail__content ul {
    margin: .8em 0 0;
    padding-left: 1.2em;
}

@keyframes a24ServiceCardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes a24ServiceDetailIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .a24-service-cards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .a24-service-cards {
        padding: 34px 16px;
    }

    .a24-service-cards__grid {
        grid-template-columns: 1fr;
    }

    .a24-service-card {
        min-height: max(190px, calc(var(--a24-card-min-height, 245px) * .78));
        padding: 24px 22px 60px;
        clip-path: polygon(11% 0, 100% 0, 100% 86%, 91% 100%, 0 100%, 0 14%);
    }

    .a24-service-card__title {
        font-size: clamp(26px, 8.5vw, var(--a24-service-title-size, 28px));
    }

    .a24-service-card__text {
        font-size: clamp(14px, 4vw, var(--a24-service-text-size, 16px));
    }

    .a24-service-detail__inner {
        clip-path: polygon(7% 0, 100% 0, 100% 88%, 93% 100%, 0 100%, 0 12%);
        padding: 28px 22px;
    }
}
