/* Program Widget Styles */

/* Montserrat Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

.program-schedule,
.program-schedule * {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.program-loader,
.program-error,
.program-empty {
  text-align: center;
  padding: 40px 20px;
  color: #fff;
  font-size: 16px;
}

.program-error {
  color: #ff4d4f;
  background: #fff1f0;
  border: 1px solid #ffccc7;
  border-radius: 8px;
}

/* Детальное описание секции (тема из applyTheme / programDetail*) */
.program-section-detail {
  background: var(--program-detail-bg, #1a1a1a);
  padding: 40px;
  border-radius: 16px;
  color: var(--program-detail-text, #fff);
  max-width: 1200px;
  margin: 0 auto;
}

.section-detail-header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section-detail-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(
    135deg,
    var(--program-detail-title-grad-start, var(--program-brand-primary, #ff6b9d)) 0%,
    var(--program-detail-title-grad-end, var(--program-brand-secondary, #a855f7)) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  flex: 1;
  min-width: 300px;
}

.section-detail-organizer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.organizer-label {
  font-size: 12px;
  color: var(--program-detail-org-label, #999);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.organizer-logo {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.organizer-name {
  font-size: 14px;
  color: var(--program-detail-org-name, #ccc);
  font-weight: 500;
}

.section-detail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--program-detail-meta-border, #3a3b44);
  margin-bottom: 32px;
}

.section-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--program-detail-meta-item, #ccc);
  font-size: 15px;
}

.section-meta-stream {
  padding: 8px 16px;
  border-radius: 50px;
  color: var(--program-detail-stream-chip-text, #fff);
  font-size: 13px;
  font-weight: 600;
}

/* Кнопка "Добавить в календарь" */
.calendar-dropdown {
  position: relative;
  display: inline-block;
}

.calendar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--program-detail-cal-btn-bg, rgba(168, 85, 247, 0.2));
  border: 1px solid var(--program-detail-cal-btn-border, #a855f7);
  border-radius: 50px;
  color: var(--program-detail-cal-btn-text, #a855f7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.calendar-btn:hover {
  background: rgba(168, 85, 247, 0.3);
  background: color-mix(in srgb, var(--program-detail-cal-btn-text, #a855f7) 32%, transparent);
  border-color: var(--program-detail-cal-btn-text, #a855f7);
  color: var(--program-detail-cal-btn-text, #a855f7);
  filter: brightness(1.05);
}

.calendar-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--program-detail-cal-menu-bg, #2a2b33);
  border: 1px solid var(--program-detail-cal-menu-border, #3a3b44);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.calendar-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.calendar-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--program-detail-cal-menu-item, #ccc);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--program-detail-cal-menu-border, #3a3b44);
}

.calendar-menu-item:last-child {
  border-bottom: none;
}

.calendar-menu-item:hover {
  background: rgba(168, 85, 247, 0.2);
  background: color-mix(in srgb, var(--program-detail-accent, #a855f7) 22%, transparent);
  color: var(--program-detail-accent, #a855f7);
}

.calendar-menu-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Блоки информации */
.detail-block {
  background: var(--program-detail-block-bg, rgba(58, 59, 68, 0.3));
  border: 1px solid var(--program-detail-block-border, #3a3b44);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.detail-block:hover {
  border-color: var(--program-detail-block-hover-border, #555);
}

.detail-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-icon {
  color: var(--program-detail-accent, var(--program-brand-secondary, #a855f7));
  flex-shrink: 0;
}

.detail-block-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--program-detail-block-title, #fff);
}

.detail-block-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--program-detail-block-content, #ccc);
}

/* Rich text контент из Quill редактора внутри блоков описания */
.detail-block-content p {
  margin-bottom: 0.75em;
}
.detail-block-content p:last-child {
  margin-bottom: 0;
}
.detail-block-content ul,
.detail-block-content ol {
  padding-left: 1.5em;
  margin-bottom: 0.75em;
}
.detail-block-content li {
  margin-bottom: 0.3em;
  line-height: 1.7;
}
.detail-block-content strong,
.detail-block-content b {
  font-weight: 700;
  color: var(--program-detail-rich-strong, #fff);
}
.detail-block-content em,
.detail-block-content i {
  font-style: italic;
}
.detail-block-content u {
  text-decoration: underline;
}
.detail-block-content h2,
.detail-block-content h3,
.detail-block-content h4 {
  color: var(--program-detail-rich-strong, #fff);
  font-weight: 600;
  margin-bottom: 0.5em;
  margin-top: 1em;
}
.detail-block-content a {
  color: var(--program-detail-rich-link, var(--program-brand-primary, #ff6b9d));
  text-decoration: none;
}
.detail-block-content a:hover {
  text-decoration: underline;
}
.detail-block-content blockquote {
  border-left: 3px solid var(--program-detail-accent, var(--program-brand-secondary, #a855f7));
  padding-left: 1em;
  margin: 0.75em 0;
  color: var(--program-detail-rich-quote, #aaa);
  font-style: italic;
}

/* Нумерованный список */
.numbered-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: item;
}

.numbered-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.list-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  background: rgba(168, 85, 247, 0.2);
  background: color-mix(in srgb, var(--program-detail-accent, #a855f7) 22%, transparent);
  border: 1px solid var(--program-detail-accent, #a855f7);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--program-detail-accent, #a855f7);
  flex-shrink: 0;
}

.list-text {
  flex: 1;
  padding-top: 8px;
}

/* Маркированный список */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.bullet-list li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--program-detail-accent, var(--program-brand-secondary, #a855f7));
  font-size: 20px;
  line-height: 1.7;
}

/* Спикеры */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 20px;
}

@media (max-width: 1024px) {
  .speakers-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

.speaker-card-detail {
  display: flex;
  gap: 16px;
  background: var(--program-detail-sp-card-bg, rgba(58, 59, 68, 0.3));
  border: 1px solid var(--program-detail-sp-card-border, #3a3b44);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}

.speaker-card-detail:hover {
  border-color: var(--program-detail-sp-card-border-hover, #a855f7);
}

.speaker-photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--program-detail-sp-card-border, #3a3b44);
}

.section-meta-category {
  padding: 8px 14px;
  border-radius: 50px;
  background: var(--program-detail-cat-chip-bg, rgba(255, 255, 255, 0.08));
  color: var(--program-detail-cat-chip-text, #fff);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-section-detail .speaker-photo-placeholder-bg {
  fill: var(--program-detail-sp-card-border, #3a3b44);
}

.program-section-detail .speaker-photo-placeholder-fg {
  fill: var(--program-detail-text, #fff);
}

.speaker-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.speaker-name-detail {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--program-detail-sp-name, #fff);
}

.speaker-position-detail {
  font-size: 14px;
  color: var(--program-detail-sp-position, #a855f7);
  margin: 0;
  font-weight: 500;
}

.speaker-company-detail {
  font-size: 13px;
  color: var(--program-detail-sp-company, #999);
  margin: 0;
}

.speaker-bio-detail {
  font-size: 14px;
  color: var(--program-detail-sp-bio, #ccc);
  margin: 8px 0 0 0;
  line-height: 1.6;
}

.speaker-topic-detail {
  font-size: 13px;
  color: var(--program-detail-sp-topic, #bbb);
  margin: 4px 0 0 0;
  font-style: italic;
}

/* Старые стили для совместимости */
.program-section {
  border: 1px solid #3a3b44;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  background: var(--program-card-bg, #22232B);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
  color: #fff;
}

.program-section:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.section-header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.section-title {
  margin: 0 0 12px 0;
  color: var(--program-accent-color, #1890ff);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.section-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.section-time,
.section-day {
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-time svg {
  flex-shrink: 0;
}

.section-stream {
  padding: 6px 14px;
  border-radius: 30px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-description {
  margin: 20px 0;
  color: #e0e0e0;
  line-height: 1.7;
  font-size: 15px;
}

.section-moderator,
.section-company {
  margin: 12px 0;
  padding: 12px;
  background: #2a2b34;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-moderator strong,
.section-company strong {
  color: #fff;
}

.company-logo {
  max-width: 150px;
  max-height: 60px;
  object-fit: contain;
  background: white;
  padding: 8px;
  border-radius: 6px;
}

.section-speakers {
  margin-top: 24px;
}

.section-speakers h3 {
  margin: 0 0 16px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.speakers-list {
  display: grid;
  gap: 16px;
}

.speaker-card {
  padding: 16px;
  background: #2a2b34;
  border-radius: 8px;
  border-left: 3px solid var(--program-accent-color, #1890ff);
}

.speaker-header {
  margin-bottom: 12px;
}

.speaker-name {
  margin: 0 0 4px 0;
  color: #1890ff;
  font-size: 16px;
  font-weight: 600;
}

.speaker-position {
  color: #b0b0b0;
  font-size: 13px;
  margin: 0;
}

.speaker-bio,
.speaker-topic,
.speaker-company {
  margin: 8px 0;
  color: #b0b0b0;
  font-size: 14px;
  line-height: 1.6;
}

.speaker-topic strong,
.speaker-company strong {
  color: #fff;
}

.program-grid {
  display: grid;
  gap: 24px;
}

/* Стили для расписания с блоками времени */
.program-schedule {
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  overflow: visible;
}

/* Блок дня */
.day-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/*
 * Шаблон parallel = вёрстка ТПП (Desktop/ТПП/main.js + styles.css):
 * .program-day → .program-slot (.program-slot__time-row + __time-line) → .program-slot__events → .event-card
 * Ряд карточек: flex-wrap (как в макете), не горизонтальный скролл классики.
 */
.program-schedule--tpp {
  --tpp-text: var(--program-tpp-base-text, #00020e);
  /* Акцент/время слота: из «Основной акцентный цвет» (applyTheme → --program-accent-color) */
  --tpp-cyan: var(--program-accent-color, #009cbe);
  --tpp-time-line: var(--program-accent-color, #009cbe);
  --tpp-day-surface: #ffffff;
  /* Фолбэк карточки, если не задан --program-tpp-event-bg */
  --tpp-card: var(--program-tpp-card-fallback, #ebebeb);
}

.program-schedule--tpp .program-day {
  background: var(--program-tpp-day-bg, var(--tpp-day-surface));
  border-radius: 0;
  padding: 22px 16px 26px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(11, 26, 54, 0.06);
  min-width: 0;
}

.program-schedule--tpp .program-day__date {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.2;
  color: var(--program-tpp-heading-color, var(--tpp-text));
}

.program-schedule--tpp .program-slot {
  margin-bottom: 22px;
  padding-top: 12px;
}

.program-schedule--tpp .program-slot:last-child {
  margin-bottom: 0;
}

.program-schedule--tpp .program-slot__time-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.program-schedule--tpp .program-slot__time {
  margin: 0;
  flex-shrink: 0;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--tpp-cyan);
}

.program-schedule--tpp .program-slot__time-line {
  flex: 1 1 auto;
  min-width: 0;
  height: 2px;
  background: var(--tpp-time-line);
}

.program-schedule--tpp .program-slot__events {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.program-schedule--tpp .event-card {
  flex: 1 1 260px;
  max-width: 100%;
  min-width: 0;
  background: var(--program-tpp-event-bg, var(--tpp-card));
  padding: 14px 14px 16px;
  border-radius: 0;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.program-schedule--tpp .event-card:not(.event-card--empty):not(.event-card--placeholder):hover {
  box-shadow: 0 6px 20px rgba(11, 26, 54, 0.12);
}

.program-schedule--tpp .event-card:not(.event-card--empty):not(.event-card--placeholder) {
  cursor: pointer;
}

.program-schedule--tpp .event-card--empty {
  min-height: 100px;
  background: transparent;
  border: 2px dashed var(--program-tpp-empty-border, rgba(0, 2, 14, 0.12));
  flex: 1 1 260px;
  pointer-events: none;
}

/* Заглушка ТПП — те же CSS-переменные, что и в таблице «Цвета и заглушка» */
.program-schedule--tpp .event-card--placeholder {
  border: 2px dashed var(--program-placeholder-border, #faad14);
  background: var(--program-placeholder-bg, #e0e0e0) !important;
  opacity: 0.95;
  cursor: default;
}

.program-schedule--tpp .event-card--placeholder .event-card__title,
.program-schedule--tpp .event-card--placeholder .event-card__org,
.program-schedule--tpp .event-card--placeholder .event-card__hall {
  color: var(--program-placeholder-text-color, #fa8c16);
}

.program-schedule--tpp .event-card--placeholder .event-card__time {
  color: var(--program-placeholder-text-color, #fa8c16);
}

.program-schedule--tpp .event-card__track--ph {
  background-color: var(--program-placeholder-border, #faad14);
  color: var(--program-placeholder-badge-text-color, #ffffff);
}

.program-schedule--tpp .event-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.program-schedule--tpp .event-card__track {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.program-schedule--tpp .event-card__hall {
  padding: 4px 8px;
  background: var(--program-tpp-hall-muted-bg, rgba(0, 2, 14, 0.06));
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--program-tpp-heading-color, var(--tpp-text));
}

.program-schedule--tpp .event-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  flex: 1;
  overflow-wrap: break-word;
  color: var(--program-tpp-heading-color, var(--tpp-text));
}

.program-schedule--tpp .event-card__time {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--tpp-cyan);
}

.program-schedule--tpp .event-card__org {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--program-tpp-org-muted, rgba(0, 2, 14, 0.65));
}

/* Как в ТПП: «Подробнее» прижато к низу карточки */
.program-schedule--tpp .event-card__cta {
  margin: 0;
  margin-top: auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--program-tpp-heading-color, var(--tpp-text));
}

.program-schedule--tpp .program-day__loc {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--program-tpp-heading-color, var(--tpp-text));
  line-height: 1.4;
  overflow-wrap: break-word;
}

.program-schedule--tpp .program-day__loc-icon {
  flex-shrink: 0;
  width: 22px;
  height: 28px;
  margin-top: 2px;
  color: var(--program-tpp-location-pin, #c62828);
}

@media (min-width: 768px) {
  .program-schedule--tpp .program-day {
    padding: 26px 22px 30px;
    margin-bottom: 24px;
  }

  .program-schedule--tpp .program-slot__events {
    gap: 16px;
  }
}

/* Мобилка — как в ТПП styles.css (767) */
@media (max-width: 767px) {
  .program-schedule--tpp .program-day {
    padding: 18px 14px 22px;
    margin-bottom: 16px;
  }

  .program-schedule--tpp .program-slot__time {
    font-size: clamp(17px, 4.5vw, 30px);
  }

  .program-schedule--tpp .program-slot__time-row {
    gap: 8px;
  }

  .program-schedule--tpp .program-slot__events {
    gap: 10px;
  }

  .program-schedule--tpp .event-card {
    flex: 1 1 100%;
    min-height: 88px;
    padding: 12px 12px 14px;
  }

  .program-schedule--tpp .event-card__title {
    font-size: 14px;
    line-height: 1.4;
  }

  .program-schedule--tpp .event-card__cta {
    font-size: 14px;
  }
}

.day-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--program-day-header-bg, linear-gradient(135deg, #1890ff 0%, #096dd9 100%));
  border-radius: 12px;
  margin-bottom: 8px;
}

.day-block-title {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.day-block-date {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
}

.time-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-x: visible;
  overflow-y: visible;
}

.time-block-header {
  padding: 12px 20px;
  background: var(--program-time-header-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  border-radius: 8px;
}

.time-block-title {
  margin: 0;
  color: var(--program-time-header-title-color, #fff);
  font-size: 20px;
  font-weight: 600;
}

.time-block-sections {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 10px 100vw;
  margin: 0 -100vw;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.time-block-sections::-webkit-scrollbar {
  display: none;
}

/* Карточка секции в списке программы */
.program-section-card {
  background: var(--program-card-bg, #22232B);
  border: 1px solid var(--program-card-border-color, #3a3b44);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
}

.program-section-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: var(--program-accent-color, #1890ff);
}

/* Стили для заглушек (placeholder секций) */
.program-section-placeholder {
  background: var(--program-placeholder-bg, #e0e0e0) !important;
  border: 2px dashed var(--program-placeholder-border, #faad14) !important;
  cursor: default !important;
  opacity: 0.9;
}

.program-section-placeholder:hover {
  border-color: var(--program-placeholder-border, #faad14) !important;
  box-shadow: 0 4px 12px rgba(250, 173, 20, 0.2);
  transform: none;
}

/* Текст/бейдж заглушки — из applyTheme (--program-placeholder-text-color и др.) */
.program-section-placeholder .section-track--placeholder {
  background-color: var(--program-placeholder-border, #faad14);
  color: var(--program-placeholder-badge-text-color, #ffffff);
}

.program-section-placeholder .section-card-time,
.program-section-placeholder .section-card-title,
.program-section-placeholder .section-card-org,
.program-section-placeholder .section-hall {
  color: var(--program-placeholder-text-color, #fa8c16);
}

/* Пустой слот */
.program-section-empty {
  background: transparent;
  border: none;
  cursor: default;
  padding: 20px;
  min-height: 200px;
}

.program-section-empty:hover {
  box-shadow: none;
  transform: none;
  border-color: transparent;
}

.section-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.section-track {
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-hall {
  padding: 6px 12px;
  background: var(--program-hall-bg, #3a3b44);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--program-hall-text, #fff);
}

.section-card-time {
  color: var(--program-accent-color, #1890ff);
  font-size: 14px;
  font-weight: 600;
}

.section-card-title {
  margin: 0;
  color: var(--program-title-color, #fff);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  flex-grow: 1;
}

.section-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
}

.section-card-org {
  color: var(--program-card-org-text, #b0b0b0);
  font-size: 13px;
  font-weight: 500;
}

.section-card-logo {
  max-width: 120px;
  max-height: 40px;
  object-fit: contain;
}

.section-card-btn {
  padding: 10px 20px;
  background: linear-gradient(
    135deg,
    var(--program-card-btn-start, #667eea) 0%,
    var(--program-card-btn-end, #764ba2) 100%
  );
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.section-card-btn:hover {
  opacity: 0.9;
}

/* Mobile styles - оптимизация для маленьких экранов */
@media (max-width: 768px) {
  /* Детальное описание - мобильная версия */
  .program-section-detail {
    padding: 20px;
  }

  .section-detail-title {
    font-size: 24px;
  }

  .section-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-detail-organizer {
    align-items: flex-start;
    width: 100%;
  }

  .organizer-logo {
    max-width: 100px;
  }

  .section-detail-meta {
    gap: 12px;
  }

  .calendar-btn {
    font-size: 12px;
    padding: 6px 12px;
    width: 100%;
    justify-content: center;
  }

  .calendar-menu {
    left: 0;
    right: auto;
    min-width: 100%;
  }

  .detail-block {
    padding: 16px;
  }

  .detail-block-title {
    font-size: 18px;
  }

  .detail-block-content {
    font-size: 14px;
  }

  .list-number {
    min-width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .speakers-grid {
    grid-template-columns: 1fr;
  }

  .speaker-card-detail {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .speaker-photo {
    width: 100px;
    height: 100px;
  }

  /* Отступы сетки Tilda для мобильных */
  .program-schedule {
    padding: 0 20px;
  }

  /* Основная секция - компактнее */
  .program-section {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
  }

  .section-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .section-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .section-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .section-time,
  .section-day {
    font-size: 11px;
  }

  .section-time svg {
    width: 12px;
    height: 12px;
  }

  .section-stream {
    font-size: 10px;
    padding: 3px 8px;
  }

  .section-description {
    font-size: 13px;
    line-height: 1.4;
    margin: 10px 0;
  }

  .section-moderator,
  .section-company {
    font-size: 11px;
    padding: 8px;
    margin: 8px 0;
  }

  /* Спикеры - компактнее */
  .section-speakers {
    margin-top: 16px;
  }

  .section-speakers h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .speaker-card {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
  }

  .speaker-name {
    font-size: 13px;
  }

  .speaker-position {
    font-size: 11px;
  }

  .speaker-bio,
  .speaker-topic,
  .speaker-company {
    font-size: 11px;
    line-height: 1.4;
    margin: 4px 0;
  }

  /* Расписание - оптимизация */
  .program-schedule {
    gap: 16px;
  }

  .time-block {
    gap: 10px;
    overflow-x: hidden;
  }

  .time-block-header {
    padding: 8px 12px;
    margin: 0;
    border-radius: 6px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .time-block-title {
    font-size: 14px;
  }

  /* Карточки секций - компактные */
  .program-section-card {
    min-width: 216px;
    max-width: 216px;
    padding: 16px;
    gap: 10px;
  }

  .program-section-empty {
    min-width: 216px;
    max-width: 216px;
    min-height: 180px;
  }

  .section-card-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .section-track {
    font-size: 10px;
    padding: 4px 8px;
  }

  .section-hall {
    font-size: 10px;
    padding: 4px 8px;
  }

  .section-card-time {
    font-size: 12px;
  }

  .section-card-title {
    font-size: 14px;
    line-height: 1.3;
  }

  .section-card-org {
    font-size: 11px;
  }

  .section-card-btn {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* Очень маленькие экраны - максимальная компактность */
@media (max-width: 480px) {
  /* Отступы сетки Tilda для мобильных */
  .program-schedule {
    padding: 0 20px;
  }

  .program-section {
    padding: 10px;
    margin-bottom: 10px;
  }

  .section-title {
    font-size: 15px;
  }

  .time-block-title {
    font-size: 13px;
  }

  .time-block {
    overflow-x: hidden;
  }

  .time-block-header {
    padding: 6px 10px;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .program-section-card {
    min-width: 208px;
    max-width: 208px;
  }

  .program-section-empty {
    min-width: 208px;
    max-width: 208px;
    min-height: 160px;
  }

  .section-card-title {
    font-size: 13px;
  }

  .speaker-name {
    font-size: 12px;
  }

  .section-track,
  .section-hall {
    font-size: 9px;
    padding: 3px 6px;
  }

  .section-card-time {
    font-size: 11px;
  }

  .section-card-org {
    font-size: 10px;
  }

  .section-card-btn {
    display: block;
    padding: 6px 12px;
    font-size: 12px;
  }

  .section-description {
    font-size: 12px;
  }

  .speaker-bio,
  .speaker-topic {
    font-size: 10px;
  }

  .section-moderator,
  .section-company {
    font-size: 10px;
    padding: 6px;
  }
}

/* Print styles */
@media print {
  .program-section {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
