.home-agenda { grid-column: 1 / -1; display: grid; gap: 12px; }
.agenda-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #efd8ce;
  border-radius: 19px;
  background: #fffaf6;
}
.agenda-week-range { margin: 8px 0 0; color: #774e60; font-size: 15px; }
.agenda-day-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.agenda-day-row { grid-template-columns: minmax(0, 1fr); gap: 9px; }
.home-agenda .agenda-date {
  display: flex;
  gap: 8px;
  justify-content: start;
  align-items: baseline;
  justify-self: start;
  min-height: 0;
  padding: 5px 9px;
}
.agenda-date {
  display: grid;
  min-width: 48px;
  min-height: 48px;
  padding: 5px 7px;
  align-content: center;
  justify-items: center;
  border-radius: 13px;
  background: #f9e0d5;
  color: #782f48;
  text-align: center;
}
.agenda-date strong { font-size: 18px; line-height: 1.18; }
.agenda-date small { font-size: 11px; }
.home-agenda .agenda-date strong { font-size: 13px; }
.agenda-week-empty { grid-column: 1 / -1; margin: 0; color: #774e60; }
.agenda-entry { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.agenda-cover {
  position: relative;
  width: clamp(72px, 13vw, 106px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: #f7ded1;
}
.agenda-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.agenda-cover--kama img, .agenda-cover--olesya img {
  position: absolute;
  top: -3%;
  left: -175.55%;
  width: 284.45%;
  max-width: none;
  height: auto;
}
.agenda-cover--olesya img { left: -180%; }
.agenda-cover--live img { object-position: 55% 27%; }
.agenda-month-action { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 16px; }
.agenda-month-button {
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  border-radius: 14px;
  background: #782f48;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.agenda-month-button:hover { background: #65243b; }
.agenda-month-button:focus-visible { outline: 2px solid #782f48; outline-offset: 3px; }
.agenda-type {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 9px;
  background: #f8e5dc;
  color: #702641;
  font-size: 11px;
  font-weight: 750;
}
.agenda-type[data-type="article"], .agenda-type[data-type="menu"] { background: #e8eddf; color: #485038; }
.agenda-type[data-type="practice"], .agenda-type[data-type="questions"] { background: #f2e6ef; color: #6d345e; }
.agenda-detail h3 { margin: 5px 0 0; color: #68243b; font-size: 16px; line-height: 1.3; }
.agenda-detail p { margin: 4px 0 0; color: #774e60; font-size: 14px; line-height: 1.4; }
.agenda-detail .agenda-live-time { color: #782f48; font-weight: 800; }
.agenda-detail .agenda-extra { color: #782f48; font-weight: 650; }
@media (min-width: 900px) {
  .home-agenda { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agenda-card { padding: 17px; }
}

.club-extras { grid-column: 1 / -1; margin: 0 0 34px; scroll-margin-top: 20px; }
.club-extras h2 {
  margin: 0 0 14px;
  color: #782f48;
  font-size: clamp(29px, 5vw, 42px);
  line-height: 1.08;
}
.club-extras-grid { display: grid; gap: 12px; }
.club-extra-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 20px);
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid #efd6ca;
  border-radius: 20px;
  background: #fff5ee;
}
.club-extra-photo {
  position: relative;
  width: clamp(72px, 18vw, 104px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  background: #f7d8c6;
}
.club-extra-photo img {
  position: absolute;
  top: -3%;
  left: var(--portrait-left);
  display: block;
  width: 284.45%;
  max-width: none;
  height: auto;
}
.club-extra-photo--kama { --portrait-left: -175.55%; }
.club-extra-photo--olesya { --portrait-left: -180%; }
.club-extra-card h3 {
  margin: 0 0 4px;
  color: #68243b;
  font-size: clamp(16px, 2.5vw, 21px);
  line-height: 1.22;
}
.club-extra-card p { margin: 0; color: #774e60; font-size: clamp(13px, 2vw, 15px); line-height: 1.35; }
@media (min-width: 720px) {
  .club-extras-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.agenda-material-link { display: inline-block; margin-top: 5px; color: #821b3e; font-weight: 750; }
.agenda-card--today {
  grid-column: 1 / -1;
  padding: clamp(16px, 3vw, 24px);
  border: 2px solid #782f48;
  background: #fff3ef;
}
.agenda-card--today .agenda-date { background: #782f48; color: #fff; }
.agenda-card--today .agenda-cover { width: clamp(80px, 15vw, 144px); }
.agenda-card--today h3 { font-size: clamp(19px, 3vw, 26px); }
.agenda-detail .agenda-action-note, .agenda-action-note {
  margin: 5px 0 0;
  color: #74465a;
  font-size: 13px;
  line-height: 1.4;
}
.agenda-action-note:empty { display: none; }
.agenda-question-action {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid #782f48;
  border-radius: 10px;
  background: #782f48;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.agenda-question-action:focus-visible { outline: 2px solid #782f48; outline-offset: 3px; }
.month-inline-action { padding: 0 1px 5px; }
.month-inline-action .agenda-material-link { font-size: 12px; }

#schedule .month-sheet {
  width: min(100%, 1460px);
  max-height: 92dvh;
  padding: 0 clamp(12px, 2.4vw, 30px) max(20px, env(safe-area-inset-bottom));
  background: #fff5ee;
}
.month-header {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 20px 56px 14px 0;
  border-bottom: 1px solid #efd6ca;
  background: #fff5ee;
}
.month-header .eyebrow { margin-bottom: 6px; }
.month-header h2 {
  margin: 0;
  color: #782f48;
  font-size: clamp(31px, 6vw, 50px);
  line-height: 1.05;
}
.month-header .close { position: absolute; top: 13px; right: 0; margin: 0; float: none; }
.month-agenda { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; padding-top: 16px; }
.month-week { min-width: 0; }
.month-week-range {
  margin: 0 0 9px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #f5dfd6;
  color: #782f48;
  font-size: 15px;
}
.month-week-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.month-agenda-day { min-width: 0; }
.month-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(152px, 16vw, 202px);
  height: 100%;
  padding: 9px;
  overflow: hidden;
  border-radius: 15px;
  background: #572536;
  color: #fffaf5;
}
.month-tile::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #21101518 18%, #30142190 54%, #2f111eF5 100%);
}
.month-agenda-day[aria-current="date"] .month-tile {
  outline: 2px solid #ad5970;
  outline-offset: 2px;
}
.month-tile .agenda-cover {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}
.month-tile .agenda-date {
  align-self: flex-start;
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  padding: 4px 6px;
  border-radius: 8px;
  background: #fff4ed;
}
.month-tile .agenda-date strong { font-size: 11px; }
.month-tile .agenda-date small { font-size: 10px; }
.month-tile-copy { margin-top: 32px; }
.month-tile .agenda-type { color: #fff5ef; background: #482032ed; font-size: 10px; }
.month-tile-copy h4 { margin: 5px 0 0; font-size: clamp(13px, 1.35vw, 17px); line-height: 1.2; overflow-wrap: anywhere; }
.month-live-time { margin: 5px 0 0; color: #ffdbc8; font-size: 13px; font-weight: 800; }
.month-event-details { padding: 0 1px; color: #704155; font-size: 12px; line-height: 1.45; }
.month-event-details summary { padding: 6px 0 2px; color: #782f48; cursor: pointer; }
.month-event-details p { margin: 5px 0; }
.month-event-details .agenda-extra { font-weight: 750; }
.month-agenda-day:where(:has(.month-event-details, > .agenda-material-link, > .month-inline-action)) .month-tile { height: auto; }
.month-agenda-day > .agenda-material-link { font-size: 12px; }
.month-weekdays, .month-tile .month-event-open { display: none; }
.month-event-dialog {
  width: min(440px, calc(100% - 28px));
  padding: 23px;
  border: 1px solid #efd6ca;
  border-radius: 22px;
  background: #fff5ee;
  color: #68243b;
}
.month-event-dialog::backdrop { background: #37192780; }
.month-event-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f5dfd6;
  color: #782f48;
  font-size: 24px;
  cursor: pointer;
}
.month-event-date { margin: 0 42px 7px 0; color: #782f48; font-size: 14px; font-weight: 750; }
.month-event-dialog h3 { margin: 0 35px 9px 0; font-size: 23px; line-height: 1.18; }
.month-event-dialog #month-event-body p { margin: 7px 0; line-height: 1.45; }
@media (min-width: 650px) {
  .month-agenda { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1024px) {
  .month-header { padding-right: 0; }
  .month-header h2 { margin-right: 56px; }
  .month-agenda { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 10px; }
  .month-weekdays, .month-week-events {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
  }
  .month-weekdays { margin-top: 14px; }
  .month-weekdays span {
    padding: 6px 2px;
    border-radius: 7px;
    background: #f5dfd6;
    color: #782f48;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
  }
  .month-week-range { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .month-agenda-day { grid-column: var(--weekday); }
  .month-agenda-day .month-tile {
    height: clamp(172px, 16vw, 190px);
    min-height: 0;
  }
  .month-tile-copy { margin-top: 10px; }
  .month-tile-copy h4 { font-size: clamp(13px, 1.2vw, 16px); }
  .month-agenda-day > .month-event-details,
  .month-agenda-day > .month-inline-action,
  .month-agenda-day > .agenda-material-link { display: none; }
  .month-tile .month-event-open {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #782f48;
    cursor: pointer;
  }
  .month-event-open span {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 8px;
    background: #fff4ed;
    font-size: 15px;
  }
  .month-event-open:focus-visible { outline: 2px solid #fff4ed; outline-offset: -4px; }
  .month-event-open:hover span { background: #f5dfd6; }
}
