.hrk-calendar {
    --hrk-blue: #005daa;
    --hrk-blue-dark: #003b6f;
    --hrk-gold: #f7a81b;
    --hrk-ink: #243746;
    --hrk-muted: #61788b;
    --hrk-line: #d6e3ed;
    box-sizing: border-box;
    width: 100%;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid rgba(0, 93, 170, 0.16);
    border-radius: 22px;
    background: linear-gradient(145deg, #fff 0%, #f5f9fc 100%);
    box-shadow: 0 18px 42px rgba(0, 59, 111, 0.1);
    color: var(--hrk-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hrk-calendar *,
.hrk-calendar *::before,
.hrk-calendar *::after { box-sizing: border-box; }

.hrk-calendar__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.hrk-calendar__eyebrow {
    margin: 0 0 6px;
    color: var(--hrk-blue);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hrk-calendar__title {
    margin: 0;
    color: var(--hrk-blue-dark);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.08;
}

.hrk-calendar__subscribe,
.hrk-calendar__event-link {
    color: var(--hrk-blue-dark);
    font-weight: 800;
    text-underline-offset: 3px;
}

.hrk-calendar__list { display: grid; gap: 12px; }

.hrk-calendar__event {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--hrk-line);
    border-radius: 16px;
    background: #fff;
}

.hrk-calendar__event--cancelled { opacity: 0.72; }

.hrk-calendar__date {
    display: grid;
    align-content: center;
    min-height: 82px;
    padding: 10px 8px;
    border-radius: 13px;
    background: var(--hrk-blue-dark);
    color: #fff;
    text-align: center;
}

.hrk-calendar__day { font-size: 1.7rem; font-weight: 900; line-height: 1; }
.hrk-calendar__month { margin-top: 4px; color: #ffd77f; font-weight: 900; text-transform: uppercase; }
.hrk-calendar__year { margin-top: 2px; font-size: 0.74rem; opacity: 0.82; }
.hrk-calendar__body { min-width: 0; }

.hrk-calendar__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hrk-calendar__event-title { margin: 0; color: var(--hrk-blue-dark); font-size: 1.2rem; line-height: 1.25; }
.hrk-calendar__status { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: #fae7e4; color: #9b271f; font-size: 0.76rem; font-weight: 900; }
.hrk-calendar__meta { margin: 7px 0 0; color: var(--hrk-muted); font-weight: 700; }
.hrk-calendar__description { margin: 12px 0 0; line-height: 1.55; white-space: pre-line; }
.hrk-calendar__responsible { margin: 10px 0 0; color: var(--hrk-blue-dark); font-size: 0.92rem; font-weight: 800; }
.hrk-calendar__event-link { display: inline-block; margin-top: 12px; font-size: 0.9rem; }
.hrk-calendar__empty,
.hrk-calendar__error { margin: 0; padding: 20px; border-radius: 14px; background: #edf5fa; color: var(--hrk-muted); }
.hrk-calendar__error { background: #fff2f0; color: #8d2c24; }

@media (max-width: 640px) {
    .hrk-calendar { padding: 18px; border-radius: 16px; }
    .hrk-calendar__head { align-items: flex-start; flex-direction: column; }
    .hrk-calendar__event { grid-template-columns: 62px minmax(0, 1fr); gap: 13px; padding: 14px; }
    .hrk-calendar__date { min-height: 72px; }
    .hrk-calendar__day { font-size: 1.4rem; }
    .hrk-calendar__title-row { flex-direction: column; }
}

@media (max-width: 390px) {
    .hrk-calendar__event { grid-template-columns: 1fr; }
    .hrk-calendar__date { grid-template-columns: auto auto auto; justify-content: start; gap: 6px; min-height: 0; text-align: left; }
    .hrk-calendar__day { font-size: 1rem; }
    .hrk-calendar__month,
    .hrk-calendar__year { margin: 0; }
}
