.ids {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 18px 0 28px;
    padding: 78px 22px 84px;
    /* background:
        radial-gradient(680px 360px at 100% 0%, rgba(255, 110, 40, 0.55) 0%, rgba(255, 45, 130, 0.28) 42%, transparent 70%),
        radial-gradient(520px 340px at 0% 108%, rgba(59, 110, 255, 0.55) 0%, rgba(124, 58, 237, 0.22) 48%, transparent 72%),
        #07091a; */
    font-family: "Montserrat", sans-serif;
}

.ids-glow {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.ids-glow--tr {
    top: -90px;
    right: -70px;
    width: 460px;
    height: 280px;
    border-radius: 58% 42% 62% 38% / 46% 58% 42% 54%;
    background: linear-gradient(128deg, #ff8a1e 0%, #ff3d78 48%, #8b5cf6 100%);
    filter: blur(2px);
    opacity: 0.95;
}

.ids-glow--bl {
    left: -160px;
    bottom: -150px;
    width: 460px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(90deg, #2563eb 0%, #6366f1 55%, #7c3aed 100%);
    filter: blur(2px);
    opacity: 0.9;
}

.ids-inner {
    position: relative;
    z-index: 1;
    max-width: 1220px;
    margin: 0 auto;
}

.ids-head {
    position: relative;
    text-align: center;
    max-width: 1040px;
    margin: 0 auto 42px;
}

.ids-head::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: -8px;
    top: 62px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #dbeafe 0%, #60a5fa 28%, #2563eb 62%, #1d4ed8 100%);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.45);
}

.ids-kicker {
    margin: 0 0 14px;
    color: #ff7a18;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    line-height: 1.2;
}

.ids-head h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-align: center;
    white-space: nowrap;
}

.ids-head h2 span {
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 42%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ids-lead {
    margin: 0 auto;
    max-width: 640px;
    color: #c5cedf;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}

.ids-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ids-card {
    --ids-accent: #ff3d8a;
    --ids-line: rgba(255, 61, 138, 0.85);
    --ids-glow: rgba(255, 61, 138, 0.28);
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(260px, 1.08fr);
    min-height: 270px;
    border-radius: 20px;
    background: linear-gradient(160deg, #101428 0%, #070910 55%);
    border: 1px solid var(--ids-line);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 26px var(--ids-glow);
    overflow: hidden;
}

.ids-card--car {
    --ids-accent: #ff2f86;
    --ids-line: rgba(255, 70, 150, 0.9);
    --ids-glow: rgba(255, 47, 134, 0.32);
}

.ids-card--car .ids-icon {
    background: #ff6a2a;
}

.ids-card--clinic {
    --ids-accent: #2f6bff;
    --ids-line: rgba(59, 130, 246, 0.95);
    --ids-glow: rgba(47, 107, 255, 0.34);
}

.ids-card--food {
    --ids-accent: #ff7a18;
    --ids-line: rgba(255, 122, 24, 0.95);
    --ids-glow: rgba(255, 122, 24, 0.3);
}

.ids-card--sms {
    --ids-accent: #8b5cf6;
    --ids-line: rgba(168, 85, 247, 0.95);
    --ids-glow: rgba(139, 92, 246, 0.34);
}

.ids-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 6px 20px 22px;
}

.ids-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--ids-accent);
    box-shadow: 0 8px 18px var(--ids-glow);
}

.ids-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

.ids-card h3 {
    margin: 0 0 8px;
    max-width: 230px;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.ids-card p {
    margin: 0 0 12px;
    max-width: 250px;
    color: #c5cddd;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
}

.ids-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.ids-tags li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #e4e8f2;
    font-family: "Montserrat", sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.2;
    list-style: none;
}

.ids-tags li::before {
    content: "";
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--ids-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.8 8.2 6.4 10.8 12.2 5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
}

.ids-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    margin-top: auto;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--ids-accent);
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px var(--ids-glow);
}

.ids-btn svg {
    display: block;
}

.ids-btn:hover,
.ids-btn:focus {
    color: #ffffff;
    text-decoration: none;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.ids-card__visual {
    position: relative;
    min-height: 100%;
    background: #070910;
    overflow: hidden;
}

.ids-card__visual::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 48px;
    z-index: 1;
    background: linear-gradient(90deg, #0a0e1c 0%, rgba(7, 9, 16, 0) 100%);
    pointer-events: none;
}

.ids-card__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ids-card--car .ids-card__visual img {
    object-position: center 58%;
}

.ids-card--clinic .ids-card__visual img {
    object-position: 42% center;
}

.ids-card--food .ids-card__visual img {
    object-position: center 78%;
}

.ids-card--sms .ids-card__visual img {
    object-position: 64% center;
}

@media (max-width: 1100px) {
    .ids-head h2 {
        font-size: 34px;
        white-space: normal;
    }

    .ids-card {
        grid-template-columns: minmax(0, 0.9fr) minmax(200px, 1.1fr);
        min-height: 270px;
    }

    .ids-card h3 {
        font-size: 20px;
    }
}

@media (max-width: 860px) {
    .ids {
        padding: 56px 16px 60px;
    }

    .ids-head {
        margin-bottom: 28px;
    }

    .ids-head::before {
        display: none;
    }

    .ids-head h2 {
        font-size: 32px;
    }

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

    .ids-glow--tr {
        width: 280px;
        height: 180px;
        top: -50px;
        right: -40px;
    }
}

@media (max-width: 640px) {
    .ids {
        margin: 8px 0 16px;
        padding: 44px 14px 48px;
    }

    .ids-kicker {
        font-size: 12px;
        letter-spacing: 0.16em;
    }

    .ids-head h2 {
        font-size: 28px;
    }

    .ids-head h2 span {
        display: block;
    }

    .ids-lead {
        font-size: 14px;
    }

    .ids-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .ids-card__body {
        padding: 22px 18px 6px;
    }

    .ids-card h3,
    .ids-card p {
        max-width: none;
    }

    .ids-card__visual {
        height: 210px;
        min-height: 210px;
    }

    .ids-card__visual img {
        object-position: center;
    }

    .ids-btn {
        margin-bottom: 16px;
    }
}
