.hd-frontend {
    --hd-accent: #e43826;
    --hd-accent-dark: #bf2a1d;
    --hd-ink: #173b5e;
    --hd-muted: #66717f;
    --hd-border: #e4e8ed;
    --hd-soft: #f7f9fb;
    --hd-shadow: 0 16px 42px rgba(20, 42, 62, .08);
    color: #273441;
    font-family: inherit;
    max-width: 1240px;
    margin: 0 auto;
}
.hd-header { margin-bottom: 28px; }
.hd-eyebrow { font-size: 12px; letter-spacing: .12em; font-weight: 800; color: var(--hd-accent); margin-bottom: 7px; }
.hd-header h2 { margin: 0; color: var(--hd-ink); font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; }
.hd-header p { margin: 9px 0 0; color: var(--hd-muted); font-size: 16px; }
.hd-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.hd-year-label { color: var(--hd-ink); font-weight: 800; font-size: 20px; }
.hd-back-link { color: var(--hd-ink); text-decoration: none; font-weight: 700; }
.hd-back-link:hover { color: var(--hd-accent); }
.hd-month-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hd-month-card { position: relative; min-height: 150px; padding: 22px; border: 1px solid var(--hd-border); border-radius: 18px; background: #fff; box-shadow: var(--hd-shadow); text-decoration: none; color: inherit; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.hd-month-card:before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--hd-accent); }
.hd-month-card:hover:not(.is-empty) { transform: translateY(-3px); border-color: #f2b3ad; box-shadow: 0 20px 48px rgba(20, 42, 62, .12); }
.hd-month-card.is-empty { box-shadow: none; background: var(--hd-soft); cursor: default; opacity: .68; }
.hd-month-number { display: block; color: #a2adb8; font-size: 13px; font-weight: 800; letter-spacing: .04em; margin-bottom: 25px; }
.hd-month-card strong { display: block; color: var(--hd-ink); font-size: 22px; }
.hd-month-meta { display: block; color: var(--hd-muted); margin-top: 7px; font-size: 14px; }
.hd-arrow { color: var(--hd-accent); font-size: 20px; font-weight: 800; }
.hd-month-card .hd-arrow { position: absolute; right: 20px; bottom: 16px; }
.hd-other-years { margin-top: 22px; border-top: 1px solid var(--hd-border); padding-top: 18px; }
.hd-other-years-toggle { border: 0; background: transparent; padding: 0; color: var(--hd-ink); font: inherit; font-weight: 800; cursor: pointer; }
.hd-other-years-panel { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hd-other-years-panel a { padding: 10px 14px; border: 1px solid var(--hd-border); border-radius: 999px; text-decoration: none; color: var(--hd-ink); background: #fff; font-weight: 700; }
.hd-other-years-panel a:hover { border-color: var(--hd-accent); color: var(--hd-accent); }
.hd-advisor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hd-advisor-card { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px; min-height: 140px; border: 1px solid var(--hd-border); border-radius: 18px; background: #fff; box-shadow: var(--hd-shadow); text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.hd-advisor-card:hover { transform: translateY(-2px); border-color: #f2b3ad; box-shadow: 0 20px 48px rgba(20, 42, 62, .12); }
.hd-avatar { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; border-radius: 50%; background: #fff2ef; color: var(--hd-accent); font-weight: 900; font-size: 22px; }
.hd-avatar-large { width: 74px; height: 74px; flex-basis: 74px; font-size: 28px; }
.hd-advisor-content { padding-right: 28px; min-width: 0; }
.hd-advisor-card h3, .hd-profile h3 { color: var(--hd-ink); margin: 0 0 10px; font-size: 20px; }
.hd-advisor-line { font-size: 14px; margin-top: 4px; color: #36424d; }
.hd-advisor-line span { font-weight: 800; color: var(--hd-muted); margin-right: 6px; }
.hd-advisor-mail { margin-top: 9px; color: var(--hd-accent); font-size: 14px; word-break: break-word; }
.hd-advisor-card .hd-arrow { margin-left: auto; }
.hd-profile { display: flex; gap: 18px; align-items: center; padding: 22px; margin-bottom: 18px; background: var(--hd-soft); border: 1px solid var(--hd-border); border-radius: 18px; }
.hd-profile-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--hd-muted); font-size: 14px; }
.hd-profile-meta a { color: var(--hd-accent); text-decoration: none; }
.hd-table-wrap { overflow-x: auto; border: 1px solid var(--hd-border); border-radius: 18px; box-shadow: var(--hd-shadow); }
.hd-schedule-public { width: 100%; border-collapse: collapse; min-width: 760px; background: #fff; }
.hd-schedule-public th { background: var(--hd-accent); color: #fff; text-align: left; font-size: 14px; padding: 15px 16px; font-weight: 800; }
.hd-schedule-public td { padding: 15px 16px; vertical-align: top; border-top: 1px solid var(--hd-border); line-height: 1.45; }
.hd-schedule-public tbody tr:nth-child(even) { background: #fafbfc; }
.hd-schedule-public .hd-date { font-weight: 800; color: var(--hd-ink); white-space: nowrap; }
.hd-empty-state { padding: 32px; border: 1px dashed #ccd4dc; border-radius: 18px; background: var(--hd-soft); text-align: center; }
.hd-empty-state strong { display: block; color: var(--hd-ink); font-size: 18px; }
.hd-empty-state span { display: block; margin-top: 6px; color: var(--hd-muted); }
.hd-view { transition: opacity .12s ease; }
.hd-view.is-loading { opacity: .45; pointer-events: none; }
@media (max-width: 980px) {
    .hd-month-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hd-advisor-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .hd-month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hd-month-card { min-height: 130px; padding: 17px; }
    .hd-toolbar { align-items: flex-start; flex-direction: column; }
    .hd-profile { align-items: flex-start; }
}
@media (max-width: 460px) {
    .hd-month-grid { grid-template-columns: 1fr; }
    .hd-advisor-card { align-items: flex-start; }
}
@media (max-width: 700px) {
    .hd-frontend { width: 100%; }
    .hd-header { margin-bottom: 20px; }
    .hd-header h2 { font-size: 28px; }
    .hd-header p { font-size: 14px; }
    .hd-year-label { font-size: 17px; }
    .hd-month-card strong { font-size: 18px; }
    .hd-month-meta { font-size: 13px; }
    .hd-advisor-card { min-height: 0; padding: 15px; }
    .hd-advisor-card h3 { font-size: 18px; }
    .hd-profile { padding: 16px; }
}
@media (max-width: 560px) {
    .hd-table-wrap { border: 0; box-shadow: none; overflow: visible; }
    .hd-schedule-public { min-width: 0; display: block; background: transparent; }
    .hd-schedule-public thead { display: none; }
    .hd-schedule-public tbody, .hd-schedule-public tr, .hd-schedule-public td { display: block; width: 100%; box-sizing: border-box; }
    .hd-schedule-public tr { margin-bottom: 14px; border: 1px solid var(--hd-border); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(20,42,62,.06); }
    .hd-schedule-public td { border-top: 1px solid var(--hd-border); padding: 11px 13px 11px 40%; min-height: 42px; position: relative; }
    .hd-schedule-public td:first-child { border-top: 0; }
    .hd-schedule-public td:before { content: attr(data-label); position: absolute; left: 13px; top: 11px; width: 32%; color: var(--hd-muted); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
    .hd-schedule-public .hd-date { white-space: normal; }
}


/* ===== v1.8 compact, modern & responsive frontend ===== */
.hd-frontend { width: min(100%, 1160px); padding-inline: 16px; box-sizing: border-box; --hd-radius: 16px; }
.hd-header { margin-bottom: 22px; }
.hd-eyebrow { font-size: 11px; letter-spacing: .10em; margin-bottom: 6px; }
.hd-header h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; }
.hd-header p { font-size: 14px; line-height: 1.55; max-width: 760px; }
.hd-toolbar { gap: 12px; margin-bottom: 14px; }
.hd-year-label { font-size: 17px; }
.hd-back-link { font-size: 13px; }
.hd-month-grid { gap: 12px; }
.hd-month-card { min-height: 124px; padding: 18px; border-radius: var(--hd-radius); }
.hd-month-card:before { height: 4px; }
.hd-month-number { font-size: 11px; margin-bottom: 19px; }
.hd-month-card strong { font-size: 18px; }
.hd-month-meta { margin-top: 5px; font-size: 12px; }
.hd-arrow { font-size: 17px; }
.hd-advisor-grid { gap: 12px; }
.hd-advisor-card { gap: 13px; padding: 16px; min-height: 118px; border-radius: var(--hd-radius); }
.hd-avatar { width: 48px; height: 48px; flex-basis: 48px; font-size: 18px; }
.hd-advisor-card h3, .hd-profile h3 { font-size: 17px; margin-bottom: 7px; }
.hd-advisor-line, .hd-advisor-mail { font-size: 12.5px; }
.hd-advisor-line { margin-top: 3px; }
.hd-advisor-mail { margin-top: 7px; }
.hd-profile { gap: 14px; padding: 17px; margin-bottom: 14px; border-radius: var(--hd-radius); }
.hd-avatar-large { width: 62px; height: 62px; flex-basis: 62px; font-size: 23px; }
.hd-profile-meta { gap: 6px 14px; font-size: 12.5px; }
.hd-table-wrap { border-radius: var(--hd-radius); }
.hd-schedule-public th { font-size: 12px; padding: 12px 13px; }
.hd-schedule-public td { padding: 12px 13px; font-size: 13px; line-height: 1.5; }
.hd-schedule-public .hd-date { font-size: 12.5px; }
.hd-empty-state { padding: 24px; border-radius: var(--hd-radius); }
.hd-empty-state strong { font-size: 16px; }
.hd-empty-state span { font-size: 13px; }
@media (max-width: 980px) { .hd-month-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .hd-frontend { padding-inline: 10px; } .hd-header h2 { font-size: 25px; } .hd-header p { font-size: 13px; } .hd-month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .hd-month-card { min-height: 112px; padding: 15px; } .hd-month-card strong { font-size: 16px; } .hd-month-meta { font-size: 11.5px; } .hd-advisor-card { padding: 14px; } }
@media (max-width: 560px) { .hd-header { margin-bottom: 16px; } .hd-header h2 { font-size: 23px; } .hd-month-grid { grid-template-columns: 1fr 1fr; } .hd-month-card, .hd-advisor-card { border-radius: 13px; } .hd-profile { align-items: flex-start; } .hd-schedule-public td { font-size: 12.5px; padding: 10px 11px 10px 38%; } .hd-schedule-public td:before { left: 11px; top: 10px; width: 30%; font-size: 10px; } }
@media (max-width: 400px) { .hd-month-grid { grid-template-columns: 1fr; } .hd-profile { flex-direction: column; } .hd-avatar-large { width: 54px; height: 54px; flex-basis: 54px; } }


/* Wpisy bez konkretnej daty */
.hd-extra-events{margin-top:24px;padding:20px;border:1px solid var(--hd-border);border-radius:18px;background:#fff;box-shadow:var(--hd-shadow)}
.hd-extra-events-head{margin-bottom:15px}.hd-extra-events-head .hd-eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:.08em;color:var(--hd-accent);margin-bottom:5px}.hd-extra-events-head h4{margin:0 0 5px;font-size:18px;color:var(--hd-ink)}.hd-extra-events-head p{margin:0;color:var(--hd-muted);font-size:13px;line-height:1.5}.hd-extra-events-list{display:grid;gap:10px}.hd-extra-event{display:grid;grid-template-columns:118px minmax(0,1fr);gap:15px;padding:13px 14px;border:1px solid var(--hd-border);border-radius:14px;background:var(--hd-soft)}.hd-extra-event-type{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--hd-accent);padding-top:2px}.hd-extra-event-body h5{margin:0 0 5px;color:var(--hd-ink);font-size:14px;line-height:1.45}.hd-extra-event-meta{font-size:12px;color:var(--hd-muted);margin-bottom:3px}.hd-extra-event-place{font-size:12px;color:var(--hd-muted);line-height:1.45}
@media (max-width:560px){.hd-extra-events{padding:16px;border-radius:15px}.hd-extra-event{grid-template-columns:1fr;gap:5px}.hd-extra-event-type{padding-top:0}.hd-extra-events-head h4{font-size:16px}}
