.mkik-events-archive {
    background:
        linear-gradient(180deg, #fff7f3 0, #ffffff 120px),
        #ffffff;
    padding: 52px 0 70px;
}

.mkik-events-archive__hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 310px;
    align-items: center;
    gap: 40px;
    margin-bottom: 46px;
}

.mkik-events-archive__title {
    margin: 0 0 18px;
    color: var(--mkik-dark);
    font-size: clamp(48px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.mkik-events-archive__intro {
    max-width: 520px;
    margin: 0;
    color: var(--mkik-text);
    font-size: 22px;
    line-height: 1.45;
    font-weight: 500;
}

.mkik-events-archive__decor {
    width: 220px;
    height: 160px;
    margin-left: auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.62;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='160' viewBox='0 0 220 160' fill='none'%3E%3Cpath d='M48 34L90 80L48 126' stroke='%23F7B9A1' stroke-width='18' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M120 34L162 80L120 126' stroke='%23F7B9A1' stroke-width='18' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.mkik-events-filter {
    margin-bottom: 38px;
    padding: 34px 52px;
    border: 1px solid rgba(232, 237, 244, 0.78);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 54px rgba(20, 33, 61, 0.07);
}

.mkik-events-filter__row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 22px;
    margin-bottom: 26px;
}

.mkik-events-filter__row:last-child {
    margin-bottom: 0;
}

.mkik-events-filter__label {
    color: #151a2d;
    font-size: 18px;
    font-weight: 800;
}

.mkik-events-filter__buttons,
.mkik-events-filter__bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.mkik-events-filter__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #eee9e1;
    color: #151a2d;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.mkik-events-filter__button:hover,
.mkik-events-filter__button.is-active {
    background: var(--mkik-orange);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(255, 90, 31, 0.22);
}

.mkik-events-filter__selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}

.mkik-events-filter__field {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 22px;
}

.mkik-events-filter select {
    width: 100%;
    height: 58px;
    padding: 0 58px 0 22px;
    border: 1px solid #cfd6e3;
    border-radius: 10px;
    background-color: #ffffff;
    color: var(--mkik-dark);
    font-size: 17px;
    font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 1.5L7 7L12.5 1.5' stroke='%2314213D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 24px center;
    background-size: 14px 9px;
}

.mkik-events-filter select:focus {
    border-color: rgba(255, 90, 31, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.08);
    outline: none;
}

.mkik-events-filter__divider {
    height: 1px;
    margin: 30px 0 24px;
    background: #e1e3e8;
}

.mkik-events-filter__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    color: #151a2d;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.mkik-events-filter__box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 2px solid #b8c1d1;
    border-radius: 5px;
    background: #ffffff;
    transition: 0.2s ease;
}

.mkik-events-filter__checkbox.is-active .mkik-events-filter__box {
    border-color: var(--mkik-orange);
    background: var(--mkik-orange);
}

.mkik-events-filter__checkbox.is-active .mkik-events-filter__box::after {
    content: "";
    width: 12px;
    height: 7px;
    border-left: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: rotate(-45deg) translate(1px, -1px);
}

.mkik-events-filter__checkbox:hover {
    color: var(--mkik-orange);
}

.mkik-events-filter__reset {
    margin-left: auto;
    color: var(--mkik-orange);
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
}

.mkik-events-filter__reset:hover {
    color: var(--mkik-dark);
}

.mkik-events-list__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.mkik-events-list__title {
    margin: 0;
    color: var(--mkik-dark);
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.mkik-events-list__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.mkik-archive-event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--mkik-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(20, 33, 61, 0.05);
    transition: 0.2s ease;
}

.mkik-archive-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(20, 33, 61, 0.08);
}

.mkik-archive-event-card.is-past {
    opacity: 0.88;
}

.mkik-archive-event-card.is-past:hover {
    opacity: 1;
}

.mkik-archive-event-card__image {
    position: relative;
    display: block;
    height: 185px;
    overflow: hidden;
    background: #f4f6fa;
    text-decoration: none;
}

.mkik-archive-event-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mkik-archive-event-card.is-past .mkik-archive-event-card__image img {
    filter: grayscale(35%) brightness(0.88);
}

.mkik-archive-event-card__past-badge {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(20, 33, 61, 0.84);
    color: #ffffff;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.mkik-event-card__date,
.mkik-archive-event-card__date {
    position: absolute;
    left: 18px;
    top: 16px;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
    padding: 10px 9px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--mkik-dark);
    box-shadow: 0 10px 24px rgba(20, 33, 61, 0.12);
}

.mkik-event-card__date strong,
.mkik-archive-event-card__date strong {
    color: var(--mkik-orange);
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
}

.mkik-event-card__date span,
.mkik-event-card__date em,
.mkik-archive-event-card__date span,
.mkik-archive-event-card__date em {
    display: block;
    color: #25304f;
    font-size: 13px;
    line-height: 1.2;
    font-style: normal;
    font-weight: 700;
}

.mkik-archive-event-card.is-past .mkik-event-card__date,
.mkik-archive-event-card.is-past .mkik-archive-event-card__date {
    box-shadow: 0 10px 22px rgba(20, 33, 61, 0.10);
}

.mkik-archive-event-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 20px 20px;
    background: #ffffff;
}

.mkik-archive-event-card h3 {
    min-height: 52px;
    margin: 0 0 18px;
    color: var(--mkik-dark);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;
}

.mkik-archive-event-card h3 a {
    color: inherit;
    text-decoration: none;
}

.mkik-archive-event-card h3 a:hover {
    color: var(--mkik-orange);
}

.mkik-event-card__meta {
    display: grid;
    gap: 11px;
    margin-bottom: 20px;
}

.mkik-event-card__meta-item {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    min-height: 22px;
    padding-left: 30px;
    color: #4c5872;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.mkik-event-card__meta-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.mkik-event-card__meta-item--time::before {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='8.5' stroke='%23707A91' stroke-width='1.8'/%3E%3Cpath d='M12 7.5V12.2L15.2 14.2' stroke='%23707A91' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.mkik-event-card__meta-item--location::before {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21C12 21 18.5 15.8 18.5 9.8C18.5 6.2 15.6 3.5 12 3.5C8.4 3.5 5.5 6.2 5.5 9.8C5.5 15.8 12 21 12 21Z' stroke='%23707A91' stroke-width='1.8' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='9.8' r='2.4' stroke='%23707A91' stroke-width='1.8'/%3E%3C/svg%3E");
}

.mkik-event-card__meta-item--type::before {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5H20M4 12H20M4 19H20' stroke='%23707A91' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mkik-event-card__meta-item--person::before {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21V19C20 16.7909 18.2091 15 16 15H8C5.79086 15 4 16.7909 4 19V21' stroke='%23707A91' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='7' r='4' stroke='%23707A91' stroke-width='1.8'/%3E%3C/svg%3E");
}

.mkik-archive-event-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
}

.mkik-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mkik-card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff7f3;
    color: var(--mkik-orange);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.mkik-archive-event-card__ticket,
.mkik-archive-event-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--mkik-orange);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    box-shadow: none;
    white-space: nowrap;
    transition: 0.2s ease;
}

.mkik-archive-event-card__ticket:hover,
.mkik-archive-event-card__button:hover {
    transform: none;
    color: #ffffff;
    box-shadow: none;
}

.mkik-archive-event-card__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef1f6;
    color: #59637c;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.mkik-events-empty {
    padding: 40px;
    border: 1px solid var(--mkik-border);
    border-radius: 16px;
    background: #ffffff;
    color: var(--mkik-dark);
    font-size: 18px;
    font-weight: 700;
}

.mkik-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.mkik-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--mkik-border);
    border-radius: 10px;
    color: var(--mkik-dark);
    font-weight: 700;
    text-decoration: none;
}

.mkik-pagination .page-numbers.current,
.mkik-pagination .page-numbers:hover {
    background: var(--mkik-orange);
    border-color: var(--mkik-orange);
    color: #ffffff;
}

@media (max-width: 1100px) {
    .mkik-events-list__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .mkik-events-archive__hero,
    .mkik-events-filter__selects {
        grid-template-columns: 1fr;
    }

    .mkik-events-archive__decor {
        display: none;
    }

    .mkik-events-filter {
        padding: 26px;
    }

    .mkik-events-filter__row,
    .mkik-events-filter__field {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mkik-events-filter__reset {
        margin-left: 0;
    }
}

@media (max-width: 760px) {
    .mkik-events-archive {
        padding: 34px 0 52px;
    }

    .mkik-events-archive__title {
        font-size: 42px;
    }

    .mkik-events-archive__intro {
        font-size: 18px;
    }

    .mkik-events-filter {
        padding: 22px;
    }

    .mkik-events-filter__button {
        width: auto;
        min-height: 42px;
        padding: 10px 18px;
        font-size: 14px;
    }

    .mkik-events-list__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .mkik-events-list__title {
        font-size: 26px;
    }

    .mkik-events-list__grid {
        grid-template-columns: 1fr;
    }

    .mkik-archive-event-card__image {
        height: 170px;
    }

    .mkik-archive-event-card h3 {
        min-height: auto;
    }

    .mkik-archive-event-card__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .mkik-archive-event-card__ticket,
    .mkik-archive-event-card__button {
        width: 100%;
    }
}