/* ====== БАЗОВЫЕ СТИЛИ ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  line-height: 1.6;
}

/* ====== КОНТЕЙНЕР РАСПИСАНИЯ ====== */
.schedule-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* ====== ЗАГОЛОВОК ====== */
.header1 {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px 20px;
  background: linear-gradient(135deg, #023466 0%, #034a8c 100%);
  border-radius: 20px;
  color: white;
  box-shadow: 0 4px 20px rgba(2, 52, 102, 0.15);
}

.header1 h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.header1 h2 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 16px;
  opacity: 0.95;
}

.header1 .date {
  font-size: 20px;
  font-weight: 600;
  margin: 16px 0;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: inline-block;
}

.header1 .theme {
  font-size: 16px;
  font-style: italic;
  opacity: 0.9;
  margin-top: 12px;
}

/* ====== КНОПКИ БИЛЕТОВ ====== */
.btn-ticket1,
a.btn-ticket1,
a.btn-ticket1:link,
a.btn-ticket1:visited {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 32px;
  background: #db2744;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(219, 39, 68, 0.3);
}

a.btn-ticket1:hover,
a.btn-ticket1:active,
a.btn-ticket1:focus {
  background: #c01f38;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(219, 39, 68, 0.4);
  text-decoration: none !important;
}

.btn-ticket-center {
  text-align: center;
  margin: 32px 0;
}

.ticket-disclaimer {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  font-style: italic;
}

/* ====== КАРТОЧКИ РАСПИСАНИЯ ====== */
.schedule-card {
  background: white;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.schedule-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.schedule-card.break-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ====== ЗАГОЛОВОК КАРТОЧКИ ====== */
.card-header {
  padding: 20px;
  cursor: pointer;
  position: relative;
}

.card-header.no-expand {
  cursor: default;
}

.time-badge {
  display: inline-block;
  background: #023466;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.break-card .time-badge {
  background: #6c757d;
}

.session-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.4;
}

.session-subtitle {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-top: 8px;
}

/* ====== ИКОНКА РАСКРЫТИЯ ====== */
.expand-icon {
  position: absolute;
  right: 20px;
  top: 24px;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.expand-icon::before,
.expand-icon::after {
  content: '';
  position: absolute;
  background: #023466;
  transition: all 0.3s ease;
}

.expand-icon::before {
  width: 16px;
  height: 2px;
  left: 4px;
  top: 11px;
}

.expand-icon::after {
  width: 2px;
  height: 16px;
  left: 11px;
  top: 4px;
}

.card-header.active .expand-icon {
  transform: rotate(45deg);
}

/* ====== СОДЕРЖИМОЕ КАРТОЧКИ ====== */
.card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.card-content.active {
  max-height: 5000px;
}

.card-content-inner {
  padding: 0 20px 20px 20px;
}

/* ====== ЭЛЕМЕНТЫ СПИСКА ====== */
.list-items {
  margin-bottom: 20px;
}

.list-item {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 12px;
  border-left: 4px solid #023466;
}

.list-item-title {
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.list-item-subtitle {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* ====== СПОЙЛЕР АРТИСТА ====== */
.artist-spoiler {
  margin-top: 12px;
}

.spoiler-toggle {
  color: #023466;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.spoiler-toggle:hover {
  color: #db2744;
}

.spoiler-toggle::after {
  content: '▼';
  font-size: 10px;
  transition: transform 0.2s ease;
}

.spoiler-toggle.active::after {
  transform: rotate(-180deg);
}

.spoiler-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.spoiler-content.active {
  max-height: 500px;
  margin-top: 8px;
}

/* ====== БЛОК НАГРАД ====== */
.award-block {
  padding: 20px;
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border-radius: 12px;
  margin-top: 16px;
  border: 2px solid #ffd54f;
}

.award-block-title {
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.award-block-title::before {
  content: '🏆';
  font-size: 20px;
}

.award-block-text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.award-link {
  display: inline-block;
  color: #023466;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #023466;
  transition: all 0.2s ease;
  word-break: break-word;
}

.award-link:hover {
  color: #db2744;
  border-color: #db2744;
}

/* ====== СЕТКА СПИКЕРОВ ====== */
.speakers-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.speaker-card {
  background: #fafafa;
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid #e0e0e0;
  transition: all 0.2s ease;
}

.speaker-card:hover {
  background: #f5f5f5;
  border-left-color: #023466;
}

.speaker-topic {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.speaker-name {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 8px;
  line-height: 1.4;
}

.speaker-name a {
  color: #023466;
  text-decoration: none;
  transition: color 0.2s ease;
}

.speaker-name a:hover {
  color: #db2744;
}

.speaker-title {
  font-size: 0.85rem;
  color: #db2744;
  font-weight: 600;
  line-height: 1.4;
}

/* ====== БЕЙДЖ ДИСКУССИИ ====== */
.discussion-badge {
  display: inline-block;
  background: #023466;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 16px;
}

/* ====== ПРИМЕЧАНИЕ ====== */
.note-text {
  font-size: 13px;
  color: #666;
  font-style: italic;
  margin-bottom: 16px;
  padding: 12px;
  background: #fff9e6;
  border-radius: 8px;
  border-left: 3px solid #ffc107;
}

/* ====== АДАПТИВНОСТЬ ====== */
@media (min-width: 768px) {
  .schedule-wrapper {
    max-width: 720px;
    padding: 32px 20px;
  }

  .header1 {
    padding: 40px 32px;
    margin-bottom: 48px;
  }

  .header1 h1 {
    font-size: 42px;
  }

  .header1 h2 {
    font-size: 22px;
  }

  .session-title {
    font-size: 22px;
  }

  .speakers-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (min-width: 1024px) {
  .schedule-wrapper {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .header1 h1 {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .header1 h2 {
    font-size: 16px;
  }

  .header1 .date {
    font-size: 18px;
  }

  .btn-ticket1 {
    width: 100%;
    text-align: center;
  }

  .schedule-card {
    margin-bottom: 16px;
  }

  .card-header {
    padding: 16px;
  }

  .expand-icon {
    right: 16px;
    top: 20px;
  }
}

/* ====== GLASS BADGE (ПЛАВАЮЩИЙ БЕЙДЖ) ====== */
.glass-badge {
  position: fixed;
  z-index: 9999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge-content {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.badge-content:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.badge-text {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.timer-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timer-label {
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

.timer-value {
  font-size: 22px;
  font-weight: 700;
  color: #d32f2f;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.badge-button,
.badge-button:link,
.badge-button:visited {
  display: block;
  background: #d32f2f;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(211, 47, 47, 0.3);
}

.badge-button:hover,
.badge-button:active,
.badge-button:focus {
  background: #b71c1c;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
  text-decoration: none !important;
}

/* Десктоп для бейджа */
@media (min-width: 769px) {
  .glass-badge {
    top: 20px;
    right: 20px;
    max-width: 300px;
  }
  .btn-mobile {
    display: none;
  }
}

/* Мобильный для бейджа */
@media (max-width: 768px) {
  .glass-badge {
    bottom: env(safe-area-inset-bottom, 16px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 380px;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .badge-content {
    padding: 14px 18px;
    gap: 10px;
  }

  .badge-text {
    font-size: 14px;
    text-align: center;
  }

  .timer-block {
    text-align: center;
  }

  .timer-label {
    font-size: 11px;
  }

  .timer-value {
    font-size: 20px;
  }

  .badge-button {
    padding: 11px 18px;
    font-size: 14px;
  }

  .btn-desktop {
    display: none;
  }
}

@media (max-width: 360px) {
  .badge-text {
    font-size: 13px;
  }

  .timer-value {
    font-size: 18px;
  }

  .badge-button {
    font-size: 13px;
    padding: 10px 16px;
  }
}