@font-face {
  font-family: "Montserrat";
  src: url("../font/montserrat/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../font/montserrat/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../font/montserrat/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../font/montserrat/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sch-red: #e84445;
  --sch-green: #70ad47;
  --sch-ink: #1b1a36;
  --sch-cream: #f5ece7;
  --sch-line: rgba(232, 68, 69, 0.35);
  --sch-w: 1400px;
  --sch-h: 1050px;
}

#schedule.sch-sheet {
  box-sizing: border-box;
  width: var(--sch-w);
  height: var(--sch-h);
  max-width: var(--sch-w);
  margin: 0 auto;
  padding: 0;
  background: var(--sch-cream);
  color: var(--sch-ink);
  font-family: "Montserrat", sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sch-sheet *,
.sch-sheet *::before,
.sch-sheet *::after {
  box-sizing: border-box;
}

/* —— Header —— */
#schedule.sch-sheet .sch-header {
  position: relative;
  flex: 0 0 auto;
  padding: 14px 32px 4px;
}

#schedule.sch-sheet .sch-header-top {
  position: relative;
  height: 52px;
  margin: 0 0 8px;
}

#schedule.sch-sheet .sch-header-dots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: url("../img/schedule_brandbook/header_dots.svg") left center / 100% 100% no-repeat;
  pointer-events: none;
  opacity: 0.95;
}

#schedule.sch-sheet .sch-lib-name {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  max-width: 50%;
  padding: 0 12px 0 0;
  background: var(--sch-cream);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sch-red);
  line-height: 1.15;
}

#schedule.sch-sheet .sch-title-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
}

#schedule.sch-sheet .sch-title,
#schedule.sch-sheet h1.sch-title {
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  font-family: "Montserrat", sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--sch-red);
  line-height: 1;
  text-align: left;
}

/* Период ≈ заголовок дня (ПН 3/08), как в брендбуке */
#schedule.sch-sheet .sch-dates {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--sch-red);
  white-space: nowrap;
  line-height: 1;
  text-align: right;
}

/* —— Body —— */
#schedule.sch-sheet .sch-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px 32px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sch-days-row {
  display: grid;
  gap: 20px;
  flex: 1 1 0;
  min-height: 0;
  align-items: stretch;
}

.sch-days-row.sch-cols-1 { grid-template-columns: 1fr; }
.sch-days-row.sch-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sch-days-row.sch-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sch-days-row.sch-cols-4 { grid-template-columns: repeat(4, 1fr); }

.sch-day {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

#schedule.sch-sheet .sch-day-title,
#schedule.sch-sheet h2.sch-day-title {
  margin: 0 0 4px;
  padding: 0 2px;
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--sch-ink);
  line-height: 1.1;
  text-transform: uppercase;
}

.sch-events {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sch-event {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 0;
  padding: 5px 2px 6px;
  border-bottom: 1px solid var(--sch-line);
  min-height: 0;
  align-content: start;
}

.sch-event-time {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sch-red);
  line-height: 1.2;
  padding: 1px 8px 0 0;
  border-right: 1.5px solid var(--sch-red);
  margin-right: 10px;
}

.sch-event-body {
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.28;
  color: #111;
  padding-top: 1px;
}

.sch-event-name {
  display: block;
  word-break: break-word;
}

.sch-event-meta {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.sch-event-meta .sch-meta + .sch-meta::before {
  content: ", ";
  color: #111;
}

.sch-meta { font-weight: 600; }
.sch-meta-free { color: var(--sch-green); }
.sch-meta-paid { color: var(--sch-red); }
.sch-meta-booking { color: var(--sch-ink); }

/* —— Footer —— */
.sch-footer {
  flex: 0 0 96px;
  background: var(--sch-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 0 28px;
}

.sch-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  max-width: 320px;
}

.sch-footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.sch-footer-address {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.sch-footer-phones {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.sch-footer-phones svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.sch-footer-phones p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.sch-footer-qr-block {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
  margin-left: auto;
}

.sch-footer-site-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sch-site-url {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.sch-footer-qr {
  width: 68px;
  height: 68px;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}

.sch-footer-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sch-print-toolbar {
  max-width: var(--sch-w);
  margin: 0 auto 12px;
}
