.modern-calendar {
    background:
        radial-gradient(circle at top right, rgba(249,115,22,.16), transparent 36%),
        #ffffff;
    border: 1px solid rgba(249,115,22,.16);
    border-radius: 26px;
    padding: 20px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .10);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.calendar-kicker {
    display: block;
    margin-bottom: 4px;
    color: #c2410c;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.calendar-header h2 {
    margin: 0;
    color: #172033;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.03em;
}

.calendar-nav {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff7ed;
    color: #c2410c;
    text-decoration: none;
    font-size: 20px;
    font-weight: 950;
    border: 1px solid #fed7aa;
    transition: .2s ease;
}

.calendar-nav:hover {
    background: #f97316;
    color: white;
    transform: translateY(-2px);
}

.calendar-days,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-days {
    margin-bottom: 8px;
}

.day-name {
    text-align: center;
    font-size: 12px;
    font-weight: 950;
    color: #c2410c;
}

.empty-day {
    min-height: 42px;
}

.day {
    position: relative;
    min-height: 44px;
    border-radius: 15px;
    background: #f8fafc;
    color: #172033;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    border: 1px solid transparent;
    transition: .2s ease;
}

.day:hover {
    background: #fff7ed;
    border-color: #fed7aa;
}

.event-day {
    cursor: pointer;
    background: linear-gradient(135deg, #f97316, #c2410c);
    color: white;
    box-shadow: 0 10px 24px rgba(249,115,22,.30);
}

.event-day:hover {
    transform: translateY(-2px);
}

.event-day small {
    position: absolute;
    top: -6px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #172033;
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MODAL */

.event-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.event-modal.hidden {
    display: none;
}

.event-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(249,115,22,.25), transparent 36%),
        rgba(15, 23, 42, .82);
    backdrop-filter: blur(14px);
}

.event-modal-card {
    position: relative;
    z-index: 2;
    width: min(860px, 96vw);
    max-height: 88vh;
    overflow-y: auto;
    background: #fffaf5;
    border-radius: 30px;
    box-shadow: 0 35px 100px rgba(0,0,0,.42);
}

.event-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #c2410c;
    font-size: 32px;
    font-weight: 900;
    cursor: pointer;
}

.event-list {
    display: grid;
    gap: 0;
}

.event-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 260px;
}

.event-card + .event-card {
    border-top: 1px solid #fed7aa;
}

.event-image {
    position: relative;
    min-height: 260px;
    background: #1f2937;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,.28));
}

.event-info {
    padding: 34px;
}

.event-date {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.event-info h3 {
    margin: 0 0 12px;
    color: #172033;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -.04em;
}

.event-info p {
    margin: 0 0 20px;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
}

.event-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #c2410c);
    color: white;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(249,115,22,.28);
}

@media (max-width: 768px) {
    .modern-calendar {
        border-radius: 22px;
        padding: 16px;
    }

    .calendar-header h2 {
        font-size: 19px;
    }

    .calendar-nav {
        width: 34px;
        height: 34px;
    }

    .calendar-days,
    .calendar-grid {
        gap: 6px;
    }

    .day {
        min-height: 39px;
        border-radius: 13px;
        font-size: 13px;
    }

    .event-modal {
        align-items: flex-end;
        padding: 0;
    }

    .event-modal-card {
        width: 100%;
        max-height: 88vh;
        border-radius: 28px 28px 0 0;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-image {
        min-height: 220px;
    }

    .event-info {
        padding: 24px;
    }

    .event-info h3 {
        font-size: 25px;
    }

    .event-info p {
        font-size: 14px;
    }

    .event-btn {
        width: 100%;
    }
}