.calendar {
    padding: clamp(40px, 4.17vw, 80px) 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);
}

@media (max-width: 1024px) {
    .calendar__body {
        flex-direction: column;
    }
}

.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;
}

@media (max-width: 1024px) {
    .calendar__filters {
        width: 100%;
        position: static;
    }
}

.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: 500;
}

.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);
}

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

.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;
}
