.achit-hec { --hec-violet:#3d2453; --hec-teal:#2f686b; --hec-orange:#dd8b1f; background:linear-gradient(145deg,#fffaf1 0%,#f4eef8 100%); border:1px solid rgba(61,36,83,.12); border-top:5px solid var(--hec-orange); border-radius:18px; box-shadow:0 12px 30px rgba(61,36,83,.13); box-sizing:border-box; color:#302735; margin:18px 0 34px; overflow:visible; padding:clamp(18px,3vw,30px); width:100%; }
.achit-hec__toolbar { align-items:center; display:flex; gap:24px; justify-content:space-between; margin-bottom:22px; }
.achit-hec__eyebrow { color:var(--hec-teal); display:block; font-size:.72rem; font-weight:800; letter-spacing:.08em; margin-bottom:5px; text-transform:uppercase; }
.achit-hec__heading { color:var(--hec-violet); font-size:clamp(1.5rem,2.4vw,2rem)!important; font-weight:800; line-height:1.15; margin:0!important; }
.achit-hec__summary { color:#6b606f; font-size:.88rem; margin:6px 0 0; }
.achit-hec__nav { align-items:center; display:flex; flex:0 0 auto; gap:7px; }
.achit-hec__nav-button,.achit-hec__today { align-items:center; background:rgba(255,255,255,.86)!important; border:1px solid rgba(61,36,83,.15)!important; border-radius:10px!important; color:var(--hec-violet)!important; cursor:pointer; display:inline-flex; font-weight:800; height:40px; justify-content:center; padding:0 14px!important; transition:background .18s ease,color .18s ease,transform .18s ease; }
.achit-hec__nav-button { font-size:1.45rem!important; min-width:40px; padding:0!important; }
.achit-hec__nav-button:hover,.achit-hec__nav-button:focus-visible,.achit-hec__today:hover,.achit-hec__today:focus-visible { background:var(--hec-violet)!important; color:#fff!important; transform:translateY(-1px); }
.achit-hec__month { color:var(--hec-violet); font-size:clamp(1.1rem,1.9vw,1.4rem); font-weight:900; margin:0 0 12px; text-transform:capitalize; }
.achit-hec__weekdays,.achit-hec__grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.achit-hec__weekdays { color:#6e6373; font-size:.72rem; font-weight:800; letter-spacing:.05em; padding:0 0 7px; text-align:center; text-transform:uppercase; }
.achit-hec__grid { background:rgba(61,36,83,.08); border:1px solid rgba(61,36,83,.09); border-radius:13px; gap:1px; overflow:visible; }
.achit-hec__day { background:rgba(255,255,255,.94); box-sizing:border-box; min-height:104px; padding:10px; position:relative; }
.achit-hec__day:nth-child(1) { border-top-left-radius:12px; }
.achit-hec__day:nth-child(7) { border-top-right-radius:12px; }
.achit-hec__day:nth-last-child(7) { border-bottom-left-radius:12px; }
.achit-hec__day:last-child { border-bottom-right-radius:12px; }
.achit-hec__day--outside { background:rgba(255,255,255,.45); color:#b2aab5; }
.achit-hec__number { align-items:center; border-radius:999px; display:inline-flex; font-size:.9rem; font-weight:800; height:31px; justify-content:center; min-width:31px; }
.achit-hec__day--today:not(.achit-hec__day--event) .achit-hec__number { box-shadow:inset 0 0 0 2px rgba(47,104,107,.55); color:var(--hec-teal); }
.achit-hec__date-button { align-items:flex-start; background:transparent!important; border:0!important; color:inherit!important; cursor:pointer; display:flex; flex-direction:column; gap:7px; padding:0!important; text-align:left; width:100%; }
.achit-hec__date-button .achit-hec__number { background:var(--hec-violet); box-shadow:0 4px 10px rgba(61,36,83,.25); color:#fff; }
.achit-hec__badge { align-items:center; background:var(--hec-orange); border:2px solid #fff; border-radius:999px; color:#fff; display:inline-flex; font-size:.62rem; font-weight:900; height:18px; justify-content:center; min-width:18px; padding:0 3px; position:absolute; right:8px; top:8px; }
.achit-hec__cell-label { color:var(--hec-violet); display:-webkit-box; font-size:.73rem; font-weight:750; line-height:1.35; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.achit-hec__date-button:hover .achit-hec__number,.achit-hec__date-button:focus-visible .achit-hec__number,.achit-hec__day--event.is-open .achit-hec__number { background:var(--hec-teal); transform:translateY(-1px); }
.achit-hec__date-button:focus-visible { outline:3px solid rgba(221,139,31,.42); outline-offset:3px; }
.achit-hec__popover { background:#fff; border:1px solid rgba(61,36,83,.13); border-radius:14px; box-shadow:0 18px 38px rgba(45,28,57,.25); left:50%; max-height:min(440px,calc(100vh - 100px)); opacity:0; overflow:hidden; pointer-events:none; position:absolute; top:calc(100% + 8px); transform:translate(-50%,-6px); transition:opacity .16s ease,transform .16s ease,visibility .16s ease; visibility:hidden; width:min(330px,calc(100vw - 44px)); z-index:9999; }
.achit-hec__popover-title { background:linear-gradient(135deg,var(--hec-violet),#60406f); color:#fff; display:block; font-size:.9rem; padding:11px 14px; text-transform:capitalize; }
.achit-hec__popover-list { max-height:360px; overflow-y:auto; overscroll-behavior:contain; padding:12px 14px; }
.achit-hec__day:nth-child(n + 29) .achit-hec__popover { bottom:calc(100% + 8px); top:auto; }
.achit-hec__day:nth-child(7n + 1) .achit-hec__popover { left:0; transform:translate(0,-6px); }
.achit-hec__day:nth-child(7n) .achit-hec__popover { left:auto; right:0; transform:translate(0,-6px); }
.achit-hec__day--event:hover .achit-hec__popover,.achit-hec__day--event:focus-within .achit-hec__popover,.achit-hec__day--event.is-open .achit-hec__popover { opacity:1; pointer-events:auto; transform:translate(-50%,0); visibility:visible; }
.achit-hec__day:nth-child(7n + 1):hover .achit-hec__popover,.achit-hec__day:nth-child(7n + 1):focus-within .achit-hec__popover,.achit-hec__day:nth-child(7n + 1).is-open .achit-hec__popover,.achit-hec__day:nth-child(7n):hover .achit-hec__popover,.achit-hec__day:nth-child(7n):focus-within .achit-hec__popover,.achit-hec__day:nth-child(7n).is-open .achit-hec__popover { transform:translate(0,0); }
.achit-hec__event + .achit-hec__event { border-top:1px solid #eee5f1; margin-top:10px; padding-top:10px; }
.achit-hec__event-title { color:var(--hec-violet); display:block; font-size:.83rem; line-height:1.38; margin-bottom:5px; }
.achit-hec__event-meta { color:#5f5563; display:block; font-size:.74rem; line-height:1.45; padding-left:17px; position:relative; }
.achit-hec__event-time::before,.achit-hec__event-location::before { color:var(--hec-teal); font-weight:900; left:0; position:absolute; }
.achit-hec__event-time::before { content:'◷'; }
.achit-hec__event-location::before { content:'•'; }
.achit-hec__empty { background:rgba(255,255,255,.7); border-radius:10px; color:#6b606f; margin:13px 0 0; padding:10px; text-align:center; }
.achit-hec__hint { color:#766c79; font-size:.75rem; margin:13px 0 0; text-align:center; }
@media (max-width:720px) {
    .achit-hec { border-radius:14px; padding:15px 10px; }
    .achit-hec__toolbar { align-items:flex-start; flex-direction:column; gap:14px; }
    .achit-hec__nav { width:100%; }
    .achit-hec__today { flex:1; }
    .achit-hec__weekdays { font-size:.62rem; }
    .achit-hec__day { min-height:54px; padding:6px 3px; text-align:center; }
    .achit-hec__number { font-size:.72rem; height:27px; min-width:27px; }
    .achit-hec__date-button { align-items:center; }
    .achit-hec__cell-label { display:none; }
    .achit-hec__badge { font-size:.55rem; height:16px; min-width:16px; right:2px; top:2px; }
    .achit-hec__popover { bottom:auto!important; left:18px!important; max-height:calc(100vh - 70px); position:fixed; right:18px!important; top:50%!important; transform:translateY(-48%)!important; width:auto; }
    .achit-hec__day--event:hover .achit-hec__popover,.achit-hec__day--event:focus-within .achit-hec__popover,.achit-hec__day--event.is-open .achit-hec__popover { transform:translateY(-50%)!important; }
}
@media (prefers-reduced-motion:reduce) { .achit-hec__popover,.achit-hec__nav-button,.achit-hec__today { transition:none; } }


/* Версия 1.1: компактный месяц слева, программа выбранной даты справа. */
.achit-hec { --hec-violet:#3d2453;--hec-teal:#2f686b;--hec-orange:#dd8b1f;box-sizing:border-box;width:100%;margin:18px 0 34px;padding:clamp(18px,2.8vw,30px);color:#302735;background:linear-gradient(145deg,#fffaf2,#f4f0f8);border:1px solid #e2dbe7;border-top:5px solid var(--hec-orange);border-radius:20px;box-shadow:0 12px 30px #3d245314;overflow-wrap:anywhere;container-type:inline-size; }
.achit-hec * { box-sizing:border-box; }
.achit-hec.achit-hec--split .achit-hec__toolbar { display:block;margin:0 0 25px; }
.achit-hec.achit-hec--split .achit-hec__eyebrow { display:block;margin:0 0 7px;color:var(--hec-teal);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;line-height:1.5; }
.achit-hec.achit-hec--split .achit-hec__heading { color:var(--hec-violet);font-size:clamp(25px,2.5vw,32px)!important;font-weight:800;line-height:1.2;margin:0!important; }
.achit-hec.achit-hec--split .achit-hec__summary { color:#6b6270;font-size:14px;line-height:1.6;margin:8px 0 0; }
.achit-hec.achit-hec--split .achit-hec__layout { display:grid;grid-template-columns:minmax(220px,min(38%,340px)) minmax(0,1fr);gap:22px;align-items:start; }
.achit-hec.achit-hec--split .achit-hec__picker { position:sticky;top:65px;min-width:0;padding:18px 15px;background:#fff;border:1px solid #e1e7e4;border-radius:17px;box-shadow:0 5px 16px #283b3b04; }
.achit-hec.achit-hec--split .achit-hec__month-nav { display:grid;grid-template-columns:32px minmax(0,1fr) 32px;gap:6px;align-items:center;margin-bottom:18px; }
.achit-hec.achit-hec--split .achit-hec__month { margin:0!important;text-align:center;color:var(--hec-violet);font-size:16px!important;line-height:1.3;font-weight:800; }
.achit-hec.achit-hec--split .achit-hec__nav-button,.achit-hec.achit-hec--split .achit-hec__today,.achit-hec.achit-hec--split .achit-hec__all,.achit-hec.achit-hec--split .achit-hec__more { display:inline-flex;align-items:center;justify-content:center;min-height:40px;border:1px solid #dbe5e1!important;border-radius:10px!important;color:var(--hec-teal)!important;background:#f3f7f5!important;font-family:inherit;font-weight:800;line-height:1.3;cursor:pointer;transition:background .15s,color .15s; }
.achit-hec.achit-hec--split .achit-hec__nav-button { min-height:34px;width:32px;font-size:24px!important;padding:0!important; }
.achit-hec.achit-hec--split .achit-hec__weekdays,.achit-hec.achit-hec--split .achit-hec__grid { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px; }
.achit-hec.achit-hec--split .achit-hec__weekdays { padding:0 0 9px;color:#72777d;font-size:10px;font-weight:750;text-align:center; }
.achit-hec.achit-hec--split .achit-hec__grid { border:0;background:none;border-radius:0; }
.achit-hec.achit-hec--split .achit-hec__day { position:relative;min-width:0;min-height:43px;padding:0;background:none;text-align:center; }
.achit-hec.achit-hec--split .achit-hec__day--outside { color:#c3c6c8; }
.achit-hec.achit-hec--split .achit-hec__number { display:block;min-width:0;width:auto;height:auto;box-shadow:none;background:none;color:inherit;transform:none;font-size:13px;line-height:1;font-weight:750; }
.achit-hec.achit-hec--split .achit-hec__day--outside .achit-hec__number { padding-top:15px;font-weight:500; }
.achit-hec.achit-hec--split .achit-hec__date-button { position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:43px;width:100%;margin:0;padding:7px 0!important;border:1px solid transparent!important;border-radius:10px!important;color:#56636a!important;background:#f8faf9!important;font-family:inherit;cursor:pointer; }
.achit-hec.achit-hec--split .achit-hec__day--event .achit-hec__date-button { background:#eaf2ee!important;color:var(--hec-teal)!important; }
.achit-hec.achit-hec--split .achit-hec__dot { width:4px;height:4px;border-radius:50%;background:var(--hec-teal); }
.achit-hec.achit-hec--split .achit-hec__day--today .achit-hec__date-button { border-color:var(--hec-orange)!important; }
.achit-hec.achit-hec--split .achit-hec__day.is-selected .achit-hec__date-button { color:#fff!important;background:var(--hec-violet)!important;border-color:var(--hec-violet)!important;box-shadow:0 4px 10px #3d24532b; }
.achit-hec.achit-hec--split .achit-hec__day.is-selected .achit-hec__dot { background:#f5c26e; }
.achit-hec.achit-hec--split .achit-hec__date-button:hover { background:#d9e9e1!important;color:var(--hec-teal)!important; }
.achit-hec button:focus-visible { outline:3px solid #dc9b35!important;outline-offset:3px; }
.achit-hec.achit-hec--split .achit-hec__legend { display:flex;align-items:center;gap:7px;margin:16px 0 13px;color:#67786e;font-size:11px; }
.achit-hec.achit-hec--split .achit-hec__legend:before { content:'';width:5px;height:5px;flex:none;border-radius:50%;background:var(--hec-teal); }
.achit-hec.achit-hec--split .achit-hec__picker-actions { display:flex;gap:7px; }
.achit-hec.achit-hec--split .achit-hec__today,.achit-hec.achit-hec--split .achit-hec__all { flex:1;min-width:0;padding:10px 7px!important;font-size:12px!important;background:#fff!important; }
.achit-hec.achit-hec--split .achit-hec__all[aria-pressed=true] { border-color:var(--hec-violet)!important;color:var(--hec-violet)!important;background:#f5f0f8!important; }
.achit-hec.achit-hec--split .achit-hec__nav-button:hover,.achit-hec.achit-hec--split .achit-hec__today:hover,.achit-hec.achit-hec--split .achit-hec__all:hover,.achit-hec.achit-hec--split .achit-hec__more:hover { color:#fff!important;background:var(--hec-teal)!important; }
.achit-hec.achit-hec--split .achit-hec__hint { color:#7c7d82;font-size:11px;line-height:1.6;margin:13px 0 0; }
/* Карточки без всплывающих окон: в списке всегда видно название и место. */
.achit-hec.achit-hec--split .achit-hec__agenda { min-width:0; }
.achit-hec.achit-hec--split .achit-hec__agenda-head { min-height:79px;padding:0 0 16px; }
.achit-hec.achit-hec--split .achit-hec__agenda-title { color:var(--hec-violet);font-size:clamp(22px,2.2vw,28px)!important;line-height:1.25;margin:0!important;font-weight:800; }
.achit-hec.achit-hec--split .achit-hec__agenda-sub { color:#686773;font-size:13px;line-height:1.5;margin:7px 0 0;text-transform:none; }
.achit-hec.achit-hec--split .achit-hec__agenda-list { display:grid;gap:13px; }
.achit-hec.achit-hec--split .achit-hec__event { margin:0!important;padding:19px 20px;background:#fff;border:1px solid #e1dfe7;border-radius:16px;box-shadow:0 6px 19px #3d245305; }
.achit-hec.achit-hec--split .achit-hec__event-top { display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:11px; }
.achit-hec.achit-hec--split .achit-hec__event-time { display:inline-flex;padding:4px 10px;border-radius:8px;background:#eaf3ef;color:var(--hec-teal);font-size:15px;font-weight:800;line-height:1.4; }
.achit-hec.achit-hec--split .achit-hec__event-date { color:#6d6976;font-size:12px;font-weight:750; }
.achit-hec.achit-hec--split .achit-hec__event-title { color:var(--hec-violet);font-size:clamp(18px,1.6vw,21px)!important;line-height:1.4;font-weight:800;margin:0!important;text-wrap:pretty; }
.achit-hec.achit-hec--split .achit-hec__event-location { color:#64746e;font-size:14px;line-height:1.6;margin:12px 0 0; }
.achit-hec.achit-hec--split .achit-hec__event-time::before,.achit-hec.achit-hec--split .achit-hec__event-location::before { content:none; }
.achit-hec.achit-hec--split .achit-hec__empty { padding:25px 21px;color:#686773;background:#ffffffbd;border:1px dashed #d4dad7;border-radius:16px;font-size:14px;line-height:1.6; }
.achit-hec.achit-hec--split .achit-hec__empty strong { display:block;color:var(--hec-violet);font-size:18px;line-height:1.4;margin-bottom:10px; }
.achit-hec.achit-hec--split .achit-hec__empty p { margin:0; }
.achit-hec.achit-hec--split .achit-hec__more { width:100%;margin:14px 0 0;padding:12px 18px!important;font-size:14px!important;background:#fff!important; }
.achit-hec.achit-hec--split .achit-hec__shown { text-align:center;color:#7e7584;font-size:11px;margin:9px 0 0; }
.achit-hec [hidden] { display:none!important; }
/* Узкий блок и мобильная версия: список следует сразу после календаря. */
@container (max-width:530px) { .achit-hec.achit-hec--split .achit-hec__layout { grid-template-columns:1fr;gap:23px; }.achit-hec.achit-hec--split .achit-hec__picker { position:static; }.achit-hec.achit-hec--split .achit-hec__agenda-head { min-height:0; } }
@media(max-width:640px) { .achit-hec { padding:20px 14px;border-radius:16px; }.achit-hec.achit-hec--split .achit-hec__layout { grid-template-columns:1fr;gap:23px; }.achit-hec.achit-hec--split .achit-hec__picker { position:static;padding:18px 13px; }.achit-hec.achit-hec--split .achit-hec__agenda-head { min-height:0; }.achit-hec.achit-hec--split .achit-hec__event { padding:19px 17px; }.achit-hec.achit-hec--split .achit-hec__date-button { min-height:44px; }.achit-hec.achit-hec--split .achit-hec__month { font-size:17px!important; } }
@media(prefers-reduced-motion:reduce) { .achit-hec button { transition:none!important; } }
