.xd-home-events {
    width: 100%;
    background: #ffffff;
}

.xd-home-events__inner {
    width: 1350px;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0px;
}

.xd-home-events__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 78px;
}

.xd-home-events__heading {
    margin: 0;
    color: #281546;
    font-size: clamp(5rem, 4vw, 6.4rem);
    line-height: 0.96;
    font-weight: 800;
    letter-spacing: 0;
}

.xd-home-events__header-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.xd-home-events__view-all,
.xd-home-events__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    color: #6738aa;
    text-decoration: none;
    font-size: 19px;
    line-height: 1.1;
    font-weight: 700;
}

.xd-home-events__view-all span,
.xd-home-events__cta span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.xd-home-events__view-all:hover,
.xd-home-events__view-all:focus-visible,
.xd-home-events__cta:hover,
.xd-home-events__cta:focus-visible {
    color: #6738aa;
    text-decoration: none;
}

.xd-home-events__view-all:hover span,
.xd-home-events__view-all:focus-visible span,
.xd-home-events__cta:hover span,
.xd-home-events__cta:focus-visible span {
    transform: translateX(5px);
}

.xd-home-events__list {
    display: grid;
    gap: 52px;
}

.xd-home-events__card {
    display: grid;
    grid-template-columns: 220px 280px minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    min-height: 333px;
    padding: 50px 54px;
    border-radius: 52px;
    background: #ece8f3;
}

.xd-home-events__date {
    text-align: center;
    color: #18171c;
}

.xd-home-events__month {
    margin-bottom: 24px;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.xd-home-events__day {
    margin-bottom: 18px;
    color: #6435a5;
    font-size: 110px;
    line-height: 0.9;
    font-weight: 800;
}

.xd-home-events__year {
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.xd-home-events__image-wrap {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 0.82;
    border-radius: 30px;
    overflow: hidden;
}

.xd-home-events__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xd-home-events__meta {
    margin-bottom: 18px;
    color: #1f1f23;
    font-size: clamp(2.2rem, 1.7vw, 2.6rem);
    line-height: 1.15;
    font-weight: 700;
}

.xd-home-events__title {
    margin: 0 0 18px;
    color: #111114;
    font-size: clamp(3.6rem, 3.4vw, 4.4rem);
    line-height: 1;
    font-weight: 800;
}

.xd-home-events__excerpt {
    max-width: 760px;
    margin: 0 0 24px;
    color: #2f2d33;
    font-size: clamp(1.8rem, 1.45vw, 2.2rem);
    line-height: 1.42;
    font-weight: 400;
}

.xd-home-events__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6738aa;
    text-decoration: none !important;
    font-size: 19px;
    line-height: 1.1;
    font-weight: 700;
}

.xd-home-events__link span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.xd-home-events__link:hover,
.xd-home-events__link:focus,
.xd-home-events__link:focus-visible,
.xd-home-events__link:visited {
    color: #6738aa;
    text-decoration: none !important;
}

.xd-home-events__link:hover span,
.xd-home-events__link:focus-visible span {
    transform: translateX(5px);
}

@media (max-width: 1200px) {
    .xd-home-events__inner {
        width: calc(100% - 72px);
    }

    .xd-home-events__card {
        grid-template-columns: 180px 280px minmax(0, 1fr);
        gap: 28px;
        padding: 34px 32px;
    }

    .xd-home-events__month,
    .xd-home-events__year {
        font-size: 26px;
    }

    .xd-home-events__day {
        font-size: 78px;
    }
}

@media (max-width: 991px) {
    .xd-home-events__inner {
        width: auto;
        padding: 0px;
    }

    .xd-home-events__header {
        margin-bottom: 64px;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .xd-home-events__view-all {
        padding-top: 0;
        font-size: 19px;
    }

    .xd-home-events__card {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
        align-items: center;
        gap: 34px 28px;
        padding: 50px 46px;
        border-radius: 46px;
    }

    .xd-home-events__date {
        display: block;
        text-align: left;
    }

    .xd-home-events__month,
    .xd-home-events__day,
    .xd-home-events__year {
        margin-left: 0;
        margin-right: 0;
    }

    .xd-home-events__month {
        margin-bottom: 24px;
        font-size: clamp(2.7rem, 5.4vw, 4.4rem);
    }

    .xd-home-events__year {
        font-size: clamp(2.6rem, 5vw, 4rem);
    }

    .xd-home-events__day {
        margin-bottom: 24px;
        font-size: clamp(9rem, 19vw, 13rem);
    }

    .xd-home-events__image-wrap {
        justify-self: end;
        max-width: 100%;
        height: 160px;
        aspect-ratio: auto;
        border-radius: 30px;
    }

    .xd-home-events__content {
        grid-column: 1 / -1;
        font-size: 18px;
        line-height: 1.2;
    }

    .xd-home-events__meta {
        margin-bottom: 5px;
        font-size: clamp(2.4rem, 4.6vw, 3.6rem);
    }

    .xd-home-events__title {
        margin-bottom: 5px;
        font-size: clamp(4.2rem, 7.8vw, 6rem);
        line-height: 1.2;
    }

    .xd-home-events__excerpt {
        display: none;
        margin: 0;
    }

    .xd-home-events__link {
        margin-top: 5px;
        font-size: 19px;
        line-height: 1.1;
    }
}

@media (max-width: 640px) {
    .xd-home-events__inner {
        padding: 0px;
    }

    .xd-home-events__heading {
        font-size: clamp(4.8rem, 11vw, 6.2rem);
    }

    .xd-home-events__card {
        gap: 26px 20px;
        padding: 25px;
        border-radius: 40px;
    }

    .xd-home-events__month {
        margin-bottom: 18px;
        font-size: clamp(2.2rem, 5vw, 3.2rem);
        letter-spacing: 0.16em;
    }

    .xd-home-events__day {
        margin-bottom: 18px;
        font-size: clamp(6.8rem, 17vw, 9.2rem);
    }

    .xd-home-events__year {
        font-size: clamp(2rem, 4.8vw, 3rem);
        letter-spacing: 0.16em;
    }

    .xd-home-events__image-wrap {
        border-radius: 28px;
    }

    .xd-home-events__meta {
        margin-bottom: 5px;
        font-size: clamp(2.2rem, 5vw, 3rem);
    }

    .xd-home-events__title {
        margin-bottom: 5px;
        font-size: clamp(3.8rem, 9vw, 5.2rem);
        line-height: 1.2;
    }

    .xd-home-events__excerpt {
        display: none;
        margin: 0;
    }

    .xd-home-events__link {
        font-size: 19px;
        line-height: 1.1;
    }
}
