.calendar {
    padding: var(--crumbs-top) 0 clamp(50px, 5.21vw, 100px) 0;
    background-color: #F5F5F5;
}

.calendar .app-container {
    max-width: clamp(1400px, 66.67vw + 440px, 1720px);
}

.calendar__header {
    margin-bottom: clamp(40px, 4.17vw, 80px);
}

.calendar__title {
    font-family: PP Neue Montreal;
    font-weight: 500;
    font-style: Medium;
    font-size: clamp(32px, 2.92vw, 56px);
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #353535;
    margin-bottom: clamp(20px, 1.67vw, 32px);
}

.calendar__subtitle {
    font-family: PP Neue Montreal;
    font-weight: 400;
    font-style: Regular;
    font-size: clamp(16px, 1.04vw, 20px);
    leading-trim: NONE;
    line-height: 150%;
    letter-spacing: 0%;
    max-width: clamp(500px, 50vw, 960px);
    color: #353535;

}

.calendar__body {
    display: flex;
    gap: clamp(40px, 4.17vw, 80px);
}

.calendar__filters {
    width: clamp(240px, 15.6vw, 300px);
    flex-shrink: 0;
    margin-left: clamp(15px, 1.46vw, 28px);
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 2.08vw, 40px);
    position: sticky;
    top: clamp(100px, 6.25vw, 120px);
    align-self: flex-start;
}

.calendar__content {
    flex-grow: 1;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 0.68vw, 13px);
}

.filter-group__header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: clamp(6px, 0.52vw, 10px);
}

.filter-group__header::before {
    content: '';
    position: absolute;
    left: clamp(-38px, -1.98vw, -30px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(20px, 1.46vw, 28px);
    height: clamp(22px, 1.56vw, 30px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='30' viewBox='0 0 28 30' fill='none'%3E%3Cpath d='M22.2288 0H28L5.77127 30H0L22.2288 0Z' fill='%23F02E24'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.filter-group__title {
    font-family: PP Neue Montreal;
    font-weight: 500;
    font-style: Medium;
    font-size: clamp(14px, 0.83vw, 16px);
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;
    vertical-align: bottom;
    text-transform: uppercase;
    color: var(--gray-100);
}

.filter-group__list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.filter-item input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.filter-item__checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid var(--gray-60);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.filter-item input:checked+.filter-item__checkbox {
    border-color: var(--gray-100);
    background-color: var(--gray-100);
}

.filter-item__checkmark {
    width: 10px;
    height: 10px;
    fill: var(--white);
    display: none;
}

.filter-item input:checked+.filter-item__checkbox .filter-item__checkmark {
    display: block;
}

.filter-item__label {
    font-family: PP Neue Montreal;
    font-weight: 400;
    font-style: Regular;
    font-size: clamp(14px, 0.83vw, 16px);
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;
    vertical-align: bottom;
    color: var(--gray-100);
    transition: color 0.2s ease;
}

.filter-item input:checked~.filter-item__label {
    color: var(--gray-100);
    font-weight: 400;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(32px, 3.33vw, 64px);
}

.calendar__load-more {
    display: block;
    width: fit-content;
    margin: clamp(32px, 3.33vw, 64px) auto 0;
}

.calendar__empty {
    grid-column: 1 / -1;
    font-family: PP Neue Montreal, sans-serif;
    font-size: clamp(15px, 0.94vw, 18px);
    line-height: 140%;
    color: var(--gray-100);
}

.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.event-card__image-wrapper {
    background: #F4F4F6;
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 468 / 321;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(16px, 1.25vw, 24px);
}

.event-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-card__image {
    transform: scale(1.03);
}

.event-card__info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card__title {
    font-family: PP Neue Montreal;
    font-weight: 400;
    font-style: Regular;
    font-size: clamp(18px, 1.25vw, 24px);
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: 0%;
    color: var(--gray-100);
    margin-bottom: clamp(16px, 1.25vw, 24px);
}

.event-card__meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(8px, 0.625vw, 12px);
    margin-bottom: clamp(20px, 1.67vw, 32px);
    justify-content: space-between;
    margin-top: auto;
}

.event-card__meta-item {
    font-family: PP Neue Montreal;
    font-weight: 400;
    font-style: Regular;
    font-size: clamp(14px, 0.83vw, 16px);
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;
    text-align: center;
    color: var(--gray-90);
    gap: 8px;
}

.event-card__meta-datetime {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-card__meta-slash {
    color: var(--red);
    font-weight: 500;
    width: clamp(18px, 1.46vw, 28px);
    height: clamp(20px, 1.56vw, 30px);
}


.event-card__price {
    font-family: Nib Pro;
    font-weight: 500;
    font-style:  Italic;
    font-size: clamp(18px, 1.25vw, 24px);
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;
    text-align: center;
    color: var(--gray-100);
}

.event-card__btn {
    display: block;
    text-decoration: none;
    width: 100%;
    padding: clamp(12px, 0.83vw, 16px) 0 !important;
    box-sizing: border-box;
    text-align: center;
    background-color: var(--gray-100);
    color: var(--white) !important;
    font-family: PP Neue Montreal, sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 0.83vw, 16px);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.event-card__btn:hover {
    background-color: #353535;
}

.calendar__filter-toggle {
    display: none;
}

.calendar__filters-close {
    display: none;
}

@media (max-width: 1024px) {
    .calendar {
        padding: clamp(32px, 4vw, 48px) 0 clamp(48px, 6vw, 64px) 0;
    }

    .calendar .app-container {
        max-width: 100%;
    }

    .calendar__header {
        margin-bottom: clamp(24px, 3vw, 36px);
    }

    .calendar__title {
        font-size: clamp(28px, 3.5vw, 36px);
        margin-bottom: 16px;
    }

    .calendar__subtitle {
        font-size: clamp(14px, 1.6vw, 16px);
        max-width: 100%;
    }

    .calendar__body {
        flex-direction: column;
        gap: clamp(24px, 3vw, 36px);
    }

    .calendar__filter-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 20px;
        background-color: var(--white);
        border: 1px solid var(--gray-100);
        color: var(--gray-100);
        font-family: PP Neue Montreal, sans-serif;
        font-weight: 500;
        font-size: 15px;
        line-height: 140%;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        cursor: pointer;
        box-sizing: border-box;
        transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    }

    .calendar__filter-toggle.is-active {
        background-color: var(--gray-100);
        color: var(--white);
    }

    .calendar__filter-toggle-left {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .calendar__filter-toggle-icon {
        flex-shrink: 0;
    }

    .calendar__filter-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        border-radius: 10px;
        background-color: var(--red);
        color: var(--white);
        font-size: 11px;
        font-weight: 500;
        line-height: 1;
        box-sizing: border-box;
    }

    .calendar__filter-toggle-arrow {
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .calendar__filter-toggle.is-active .calendar__filter-toggle-arrow {
        transform: rotate(180deg);
    }

    .calendar__filters {
        display: none;
        width: 100%;
        position: static;
        margin-left: 0;
        padding: clamp(20px, 2.5vw, 28px);
        background-color: var(--white);
        border: 1px solid rgba(0, 0, 0, 0.08);
        gap: clamp(20px, 2.5vw, 32px);
        box-sizing: border-box;
        opacity: 1 !important;
        transform: none !important;
    }

    .calendar__filters.is-open {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .calendar__filters.is-open .calendar__filters-close {
        display: flex;
        align-items: center;
        justify-content: center;
        grid-column: 1 / -1;
        width: 100%;
        padding: 12px 20px;
        background-color: var(--gray-100);
        color: var(--white);
        font-family: PP Neue Montreal, sans-serif;
        font-weight: 500;
        font-size: 14px;
        text-transform: uppercase;
        border: none;
        cursor: pointer;
        margin-top: 8px;
        transition: background-color 0.2s ease;
    }

    .calendar__filters.is-open .calendar__filters-close:hover {
        background-color: #353535;
    }

    .filter-group {
        gap: 12px;
    }

    .filter-group__header {
        margin-left: 0;
        padding-left: 24px;
    }

    .filter-group__header::before {
        left: 0;
        width: 18px;
        height: 22px;
    }

    .filter-group__list {
        gap: 8px;
    }

    .filter-item {
        padding: 2px 0;
    }

    .events-grid {
        gap: clamp(24px, 3vw, 36px);
    }

    .event-card__title {
        font-size: clamp(18px, 2vw, 22px);
        margin-bottom: 16px;
    }

    .event-card__meta-row {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .calendar__filters.is-open {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 20px;
    }

    .events-grid {
        gap: 24px;
    }

    .event-card__meta-slash {
        width: 16px;
        height: 22px;
    }
}

@media (max-width: 640px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .calendar {
        padding: 64px 0 40px 0;
    }

    .calendar__header {
        margin-bottom: 20px;
    }

    .calendar__title {
        font-size: clamp(22px, 6vw, 28px);
        margin-bottom: 12px;
    }

    .calendar__subtitle {
        font-size: 14px;
        line-height: 140%;
    }

    .calendar__body {
        gap: 20px;
    }

    .calendar__filter-toggle {
        padding: 12px 16px;
        font-size: 14px;
    }

    .calendar__filters {
        padding: 16px;
    }

    .calendar__filters.is-open {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-group__title {
        font-size: 14px;
    }

    .filter-item__label {
        font-size: 14px;
    }

    .event-card__image-wrapper {
        margin-bottom: 14px;
    }

    .event-card__title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .event-card__meta-row {
        gap: 8px 12px;
        margin-bottom: 16px;
    }

    .event-card__meta-item {
        font-size: 13px;
    }

    .event-card__meta-datetime {
        gap: 6px;
    }

    .event-card__meta-slash {
        width: 14px;
        height: 18px;
    }

    .event-card__price {
        font-size: 18px;
    }

    .event-card__btn {
        padding: 12px 0 !important;
        font-size: 14px;
    }

    .calendar__load-more {
        width: 100%;
        margin-top: 24px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 375px) {
    .calendar__title {
        font-size: 22px;
    }

    .event-card__title {
        font-size: 17px;
    }

    .event-card__meta-item {
        font-size: 12px;
    }

    .event-card__price {
        font-size: 16px;
    }
}

