.dms {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 58px 28px 42px;
    border-radius: 22px;
    background:
        radial-gradient(460px 220px at 0% 0%, rgba(255, 140, 190, 0.45), transparent 70%),
        radial-gradient(420px 240px at 100% 100%, rgba(190, 160, 255, 0.4), transparent 72%),
        linear-gradient(180deg, #fbf8ff 0%, #f4f1fb 100%);
    font-family: "Montserrat", sans-serif;
}

.dms__head {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.dms__kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 14px;
    color: #1c1430;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dms__kicker::before,
.dms__kicker::after {
    content: "";
    width: 46px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ff4d8d, #ff7a3d);
}

.dms h2 {
    margin: 0 0 14px;
    color: #16122b;
    font-family: "Montserrat", sans-serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-align: center;
    text-transform: none;
}

.dms h2 span {
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
    background: linear-gradient(90deg, #ff4d8d 0%, #ff7a3d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dms h2 span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    bottom: 0;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 12' preserveAspectRatio='none'%3E%3Cpath d='M4 8Q110 2 216 7' fill='none' stroke='url(%23g)' stroke-width='5' stroke-linecap='round'/%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop stop-color='%23ff4d8d'/%3E%3Cstop offset='1' stop-color='%23ff7a3d'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E") left center / 100% 100% no-repeat;
    pointer-events: none;
}

.dms__lead {
    max-width: 760px;
    margin: 8px auto 0;
    color: #5c5670;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
}

.dms__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dms-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: 22px 20px 0;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 40px rgba(80, 40, 120, 0.08);
    isolation: isolate;
}

.dms-card::before,
.dms-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    background-repeat: no-repeat;
}

.dms-card::before {
    z-index: 0;
    top: 0;
    left: 0;
    width: 88px;
    height: 80px;
    background-size: 100% 100%;
}

.dms-card::after {
    z-index: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 86px;
    background-size: 100% 100%;
}

.dms-card--pink::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 80'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fdd5f5'/%3E%3Cstop offset='1' stop-color='%23fdaee7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23p)' d='M0 0h86Q42 16 0 78V0z'/%3E%3C/svg%3E");
}
.dms-card--blue::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 80'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23e7f3ff'/%3E%3Cstop offset='1' stop-color='%23b9d7fc'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23b)' d='M0 0h86Q42 16 0 78V0z'/%3E%3C/svg%3E");
}
.dms-card--orange::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 80'%3E%3Cdefs%3E%3ClinearGradient id='o' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe8d4'/%3E%3Cstop offset='1' stop-color='%23fdcba5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23o)' d='M0 0h86Q42 16 0 78V0z'/%3E%3C/svg%3E");
}
.dms-card--purple::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 80'%3E%3Cdefs%3E%3ClinearGradient id='v' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23efe4ff'/%3E%3Cstop offset='1' stop-color='%23cbb0fb'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23v)' d='M0 0h86Q42 16 0 78V0z'/%3E%3C/svg%3E");
}

.dms-card--pink::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0 58C70 56 120 40 190 30C270 18 330 6 400 18' fill='none' stroke='%23f3b0cc' stroke-opacity='.45' stroke-width='8'/%3E%3Cpath d='M0 70C80 68 130 52 200 40C275 26 335 16 400 28V100H0Z' fill='%23ffd0e4'/%3E%3Cpath d='M0 84C95 82 155 72 230 62C300 52 350 48 400 56V100H0Z' fill='%23ffe4f1'/%3E%3C/svg%3E");
}
.dms-card--blue::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0 58C70 56 120 40 190 30C270 18 330 6 400 18' fill='none' stroke='%23a9c6f5' stroke-opacity='.45' stroke-width='8'/%3E%3Cpath d='M0 70C80 68 130 52 200 40C275 26 335 16 400 28V100H0Z' fill='%23d4e5ff'/%3E%3Cpath d='M0 84C95 82 155 72 230 62C300 52 350 48 400 56V100H0Z' fill='%23e8f1ff'/%3E%3C/svg%3E");
}
.dms-card--orange::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0 58C70 56 120 40 190 30C270 18 330 6 400 18' fill='none' stroke='%23f3c4a0' stroke-opacity='.5' stroke-width='8'/%3E%3Cpath d='M0 70C80 68 130 52 200 40C275 26 335 16 400 28V100H0Z' fill='%23ffe0c8'/%3E%3Cpath d='M0 84C95 82 155 72 230 62C300 52 350 48 400 56V100H0Z' fill='%23fff0e4'/%3E%3C/svg%3E");
}
.dms-card--purple::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0 58C70 56 120 40 190 30C270 18 330 6 400 18' fill='none' stroke='%23cbb6f0' stroke-opacity='.5' stroke-width='8'/%3E%3Cpath d='M0 70C80 68 130 52 200 40C275 26 335 16 400 28V100H0Z' fill='%23e5d8ff'/%3E%3Cpath d='M0 84C95 82 155 72 230 62C300 52 350 48 400 56V100H0Z' fill='%23f3ecff'/%3E%3C/svg%3E");
}

.dms-ico {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 148px;
    margin-bottom: 8px;
    display: grid;
    place-items: center;
}

.dms-ico img {
    width: 150px;
    height: 140px;
    object-fit: contain;
}

.dms-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: #16122b;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    text-align: left;
    text-transform: none;
}

.dms-line {
    position: relative;
    z-index: 1;
    display: block;
    width: 42px;
    height: 3px;
    margin-bottom: 12px;
    border-radius: 3px;
}

.dms-card--pink .dms-line { background: #ff4d8d; }
.dms-card--blue .dms-line { background: #3b82f6; }
.dms-card--orange .dms-line { background: #ff7a3d; }
.dms-card--purple .dms-line { background: #8b5cf6; }

.dms-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #5c5670;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.dms-more {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% + 40px);
    min-height: 92px;
    margin: auto -20px 0;
    padding: 8px 18px 22px 20px;
    color: var(--dms-link);
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.dms-card--pink { --dms-link: #e11d62; }
.dms-card--blue { --dms-link: #2563eb; }
.dms-card--orange { --dms-link: #f97316; }
.dms-card--purple { --dms-link: #7c3aed; }

.dms-more span {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-top: 10px;
    border-radius: 50%;
    background: var(--dms-link);
    color: #fff;
    box-shadow: 0 8px 16px rgba(60, 30, 90, 0.16);
}

.dms-more:hover,
.dms-more:focus {
    color: var(--dms-link);
    text-decoration: none;
    filter: brightness(1.05);
}

@media (max-width: 1100px) {
    .dms h2 { font-size: 36px; }
    .dms__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .dms { padding: 40px 16px 28px; }
    .dms h2 { font-size: 30px; }
    .dms__grid { grid-template-columns: 1fr; }
    .dms__kicker::before,
    .dms__kicker::after { width: 24px; }
}
