/* ================= СБРОС И БАЗОВЫЕ СТИЛИ ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #212529;
  background-color: #f8fafc;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s ease;
}

/* ================= СИСТЕМА ЭКРАНОВ (SPA) ================= */
.page-view {
  display: none;
  min-height: 100vh;
  animation: fadeIn 0.3s ease-in-out;
}

.page-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= ЭКРАН 1: ГЛАВНАЯ (МОРЕ) ================= */
.hero-container {
  position: relative;
  min-height: 100vh;
  background: url('bg-sea.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1050px;
  text-align: center;
}

/* ================= ФОНОВОЕ ВИДЕО ================= */
.bg-video-media {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-title {
  font-family: 'Monotype Corsiva', 'Corsiva', 'Marck Script', 'Caveat', cursive, serif;
  font-size: 68px;
  font-weight: 700;
  color: #ffe66d;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.95), 0 0 16px rgba(255, 230, 109, 0.35);
  letter-spacing: 1.5px;
  margin-bottom: 50px;
}

.hero-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-bottom: 50px;
}

.hero-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.col-heading {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 22px;
  text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.85);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}

/* Полупрозрачные кнопки с тонким бордюром */
.btn-glass {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 22px;
  background: rgba(12, 48, 85, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: all 0.25s ease;
}

/* При наведении немного темнеют */
.btn-glass:hover {
  background: rgba(8, 36, 68, 0.65);
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.btn-glass:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 20px;
  line-height: 1;
}

.icon-orange {
  color: #ff922b;
}

.icon-yellow {
  color: #ffd43b;
  font-weight: bold;
}

.icon-blue {
  color: #74c0fc;
}

.hero-footer-hint {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  background: rgba(0, 0, 0, 0.4);
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
}

/* ================= ЭКРАН 2: РАСПИСАНИЕ (ZOOM WORLD) ================= */
.app-header {
  background-color: #0070ba;
  color: #ffffff;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo-box {
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Значок логотипа (глобус ZOOM АФИША) */
.nav-logo-btn {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease, filter 0.2s ease;
  display: block;
}

.nav-logo-btn:hover .nav-logo-img,
.home-corner-logo:hover .corner-logo-img {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.home-corner-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: inline-block;
  cursor: pointer;
}

.corner-logo-img {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease, filter 0.2s ease;
  display: block;
}

.logo-circle {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 2px solid #ffffff;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.top-nav {
  display: flex;
  gap: 16px;
  font-size: 15px;
}

.top-nav a {
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  font-weight: 500;
}

.top-nav a:hover, .top-nav a.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.timezone-picker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tz-label {
  font-size: 13px;
  opacity: 0.9;
}

#tz-select {
  padding: 5px 10px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  background-color: #ffffff;
  color: #0070ba;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.current-tz-badge {
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

/* Полоса фильтрации */
.filter-bar {
  background-color: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dropdown-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #0284c7;
}

.dropdown-filter select {
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-wrap input {
  padding: 7px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  width: 280px;
  outline: none;
}

.search-wrap input:focus {
  border-color: #0070ba;
  box-shadow: 0 0 0 2px rgba(0, 112, 186, 0.2);
}

.btn-green-search {
  background-color: #198754;
  color: #ffffff;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.btn-green-search:hover {
  background-color: #157347;
}

.btn-reset-search {
  background-color: #e2e8f0;
  color: #475569;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.btn-reset-search:hover {
  background-color: #cbd5e1;
}

.btn-add-event-quick {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.btn-add-event-quick:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

/* Контейнер расписания */
.schedule-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 28px 60px 28px;
}

.schedule-heading-box {
  text-align: center;
  margin-bottom: 24px;
}

.schedule-title {
  color: #0070ba;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.schedule-subtitle {
  color: #64748b;
  font-size: 14px;
}

/* Табличная разметка расписания */
.schedule-table-wrap {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.schedule-header-row {
  display: grid;
  grid-template-columns: 160px 1.8fr 1.1fr 210px;
  background-color: #f8fafc;
  border-bottom: 2px solid #cbd5e1;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.8px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
}

.schedule-card-row {
  display: grid;
  grid-template-columns: 160px 1.8fr 1.1fr 210px;
  padding: 22px 20px;
  border-bottom: 1px solid #e2e8f0;
  align-items: start;
  gap: 16px;
  transition: background-color 0.15s ease;
}

.schedule-card-row:hover {
  background-color: #f8fafc;
}

.schedule-card-row:last-child {
  border-bottom: none;
}

/* Колонка: ТЕМА */
.col-topic-badge {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

/* Колонка: ДАТА, НАИМЕНОВАНИЕ, ВЕДУЩИЙ, ЛЕКТОР */
.col-details-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-time-badge {
  color: #0284c7;
  font-size: 14px;
  font-weight: 700;
}

.event-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.event-persons {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.person-item strong {
  color: #1e293b;
}

.tag-new-user {
  display: inline-block;
  background: #ffc107;
  color: #212529;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 4px;
  align-self: flex-start;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tag-new-user:hover {
  background: #e0a800;
}

/* Колонка: ПЛОЩАДКА, ОРГАНИЗАТОР */
.col-venue-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.venue-name {
  font-weight: 700;
  color: #1e293b;
}

.organizer-name {
  color: #475569;
}

.venue-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-pill-blue {
  background-color: #0284c7;
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
}

.btn-pill-blue:hover {
  background-color: #0369a1;
}

/* Колонка: ВХОД */
.col-entry-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: stretch;
}

.entry-note {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin-bottom: 2px;
}

.btn-entry-green {
  background-color: #198754;
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 4px rgba(25, 135, 84, 0.2);
}

.btn-entry-green:hover {
  background-color: #157347;
}

.btn-entry-red {
  background-color: #dc3545;
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.btn-entry-red:hover {
  background-color: #bb2d3b;
}

.btn-entry-blue {
  background-color: #1877f2;
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 4px rgba(24, 119, 242, 0.2);
}

.btn-entry-blue:hover {
  background-color: #0d6efd;
}

/* Кнопка назад / общие */
.btn-nav-back {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.btn-nav-back:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ================= ЭКРАН 3: ЛИЧНЫЙ КАБИНЕТ ================= */
.cabinet-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 30px 24px;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
}

.cabinet-form-card, .cabinet-events-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  padding: 28px;
}

.form-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.form-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.form-header p {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.form-row input, .form-row select, .form-row textarea {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: #0070ba;
  box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.15);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 14px;
}

.zoom-box-inputs {
  background-color: #f0f7ff;
  border: 1px dashed #0284c7;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
}

.zoom-box-inputs h4 {
  font-size: 14px;
  color: #0284c7;
  margin-bottom: 12px;
}

.btn-primary-publish {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-primary-publish:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

.user-welcome {
  font-size: 14px;
  color: #ffffff;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Карточки моих мероприятий в кабинете */
.my-events-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 720px;
  overflow-y: auto;
}

.my-event-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s;
}

.my-event-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.my-event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.my-event-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.status-active {
  background-color: #dcfce7;
  color: #166534;
}

.status-past {
  background-color: #f1f5f9;
  color: #475569;
}

.my-event-meta {
  font-size: 13px;
  color: #64748b;
}

.my-event-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.btn-action-small {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 6px;
  font-weight: 600;
}

.btn-action-attach {
  background-color: #8b5cf6;
  color: #ffffff;
}

.btn-action-attach:hover {
  background-color: #7c3aed;
}

.btn-action-delete {
  background-color: #fee2e2;
  color: #991b1b;
}

.btn-action-delete:hover {
  background-color: #fecaca;
}

/* ================= ЭКРАН: ВИДЕОКАНАЛЫ ================= */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.channel-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.video-thumb-wrap {
  position: relative;
  height: 200px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-watermark {
  position: absolute;
  width: 56px;
  height: 56px;
  background: rgba(220, 53, 69, 0.9);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.channel-info-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.channel-topic-tag {
  align-self: flex-start;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.channel-video-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.channel-author {
  font-size: 13px;
  color: #64748b;
}

.btn-watch-video {
  margin-top: auto;
  background-color: #0284c7;
  color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.btn-watch-video:hover {
  background-color: #0369a1;
}

/* ================= МОДАЛЬНЫЕ ОКНА ================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.modal-large {
  max-width: 680px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  color: #64748b;
  background: transparent;
  cursor: pointer;
}

.modal-close:hover {
  color: #0f172a;
}

/* Вкладки входа/регистрации */
.auth-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 14px;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

.demo-hint {
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.btn-modal-submit {
  width: 100%;
  background-color: #0284c7;
  color: #ffffff;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 10px;
}

.btn-modal-submit:hover {
  background-color: #0369a1;
}

/* Модалка входа в Zoom */
.modal-header-zoom {
  text-align: center;
  margin-bottom: 20px;
}

.zoom-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 8px;
}

.zoom-details-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.zoom-credential-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cred-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cred-label {
  font-size: 12px;
  color: #64748b;
}

.cred-value-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cred-value-wrap strong {
  font-size: 18px;
  color: #0f172a;
  letter-spacing: 1px;
}

.btn-copy {
  background: #e2e8f0;
  color: #334155;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.btn-copy:hover {
  background: #cbd5e1;
}

.zoom-launch-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-launch-zoom {
  background: #198754;
  color: #ffffff;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
}

.btn-launch-zoom:hover {
  background: #157347;
}

.btn-launch-web {
  background: #f1f5f9;
  color: #334155;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.btn-launch-web:hover {
  background: #e2e8f0;
}

/* Модалка описания */
.event-desc-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.topic-tag {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
}

.desc-meta {
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
}

.event-desc-content {
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  white-space: pre-line;
  max-height: 400px;
  overflow-y: auto;
}

.modal-desc-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.btn-primary-blue {
  background: #0284c7;
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
}

/* Архив фильтры */
.archive-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.archive-filters input {
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 320px;
  outline: none;
}

.archive-filters select {
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
}

/* ================= АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА) ================= */
@media (max-width: 992px) {
  .hero-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .schedule-header-row {
    display: none;
  }
  .schedule-card-row {
    grid-template-columns: 1fr;
    gap: 14px;
    border-bottom: 4px solid #f1f5f9;
  }
  .cabinet-grid {
    grid-template-columns: 1fr;
  }
  .app-header {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .header-right {
    flex-wrap: wrap;
  }
}

/* =====================================================================
   НОВЫЙ ЕДИНЫЙ МАКЕТ ГЛАВНОЙ СТРАНИЦЫ + БЛИЖАЙШИЕ ВСТРЕЧИ (ПЛИТКИ + ПОПАП)
   ===================================================================== */

.unified-home-body {
  background-color: #f4f7fb;
  color: #111827;
  margin: 0;
  padding: 0;
}

/* --- 1. МОРСКАЯ ШАПКА --- */
.sea-banner-header {
  position: relative;
  width: 100%;
  min-height: 250px;
  background: url('banner-home.jpg?v=0611_10') center center / 100% 100% no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 11px 24px 14px 24px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.sea-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 3;
}

.sea-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.globe-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.globe-home-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.3);
}

.sea-db-link {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(15, 42, 74, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 10px;
  border-radius: 14px;
  transition: background 0.2s;
}

.sea-db-link:hover {
  background: rgba(15, 42, 74, 0.65);
  color: #ffffff;
}

/* Кнопки-облака АРХИВ и ВИДЕО */
.sea-clouds-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.cloud-nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 32px;
  background: radial-gradient(ellipse at center, rgba(210, 234, 252, 0.85) 45%, rgba(162, 207, 244, 0.72) 100%);
  color: #0c4a6e;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 4px 14px rgba(14, 100, 150, 0.18),
    -8px 2px 12px rgba(186, 222, 250, 0.65),
    8px 2px 12px rgba(186, 222, 250, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cloud-nav-btn:hover {
  transform: translateY(-2px) scale(1.03);
  color: #082f49;
  background: radial-gradient(ellipse at center, rgba(220, 239, 254, 0.92) 45%, rgba(175, 215, 248, 0.82) 100%);
  box-shadow:
    0 6px 18px rgba(14, 100, 150, 0.28),
    -10px 2px 14px rgba(195, 228, 252, 0.78),
    10px 2px 14px rgba(195, 228, 252, 0.78);
}

/* Плашка часового пояса справа вверху */
.sea-top-right {
  display: flex;
  align-items: center;
}

.tz-pill-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #eef2ff 0%, #dbeafe 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 30px;
  padding: 5px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.tz-pill-label {
  font-size: 15px;
  font-weight: 600;
  color: #1e3a8a;
  white-space: nowrap;
}

.tz-pill-select {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #1d4ed8;
  cursor: pointer;
  outline: none;
  padding-right: 2px;
}

.tz-heart-icon {
  font-size: 16px;
  line-height: 1;
}

/* Центральная часть морской шапки: заголовок ZOOM афиша и блок Организаторам */
.sea-middle-area {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 165px;
  padding-bottom: 3px;
}

.sea-main-title {
  display: none;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 86px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 3px 14px rgba(4, 38, 68, 0.55);
  margin: auto;
  align-items: baseline;
  gap: 54px;
  line-height: 1;
  user-select: none;
  padding-right: 140px;
}

.sea-main-title .title-zoom {
  letter-spacing: 3px;
}

.sea-main-title .title-afisha {
  font-size: 92px;
  letter-spacing: 1px;
}

/* Блок Организаторам справа внизу морского баннера */
.sea-organizers-box {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 238px;
  background: rgba(80, 120, 160, 0.16);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 12px;
  padding: 9px 11px 10px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.sea-org-heading {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  margin-bottom: 1px;
}

.sea-org-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 13px;
  background: rgba(24, 68, 114, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
}

.sea-org-btn:hover {
  transform: translateY(-1px);
  background: rgba(24, 68, 114, 0.65);
  color: #ffffff;
}

/* --- 2. ПАНЕЛЬ "БЛИЖАЙШИЕ ВСТРЕЧИ" И ПОИСК --- */
.unified-schedule-main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 18px 60px 18px;
}

.upcoming-toolbar {
  background: #ffffff;
  margin: 0 -18px 18px -18px;
  padding: 12px 32px;
  border-bottom: 2px solid #dbe4f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.upcoming-heading {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 46px;
  font-weight: 600;
  color: #166ba0;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.upcoming-search-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  max-width: 520px;
  justify-content: flex-end;
}

.upcoming-search-box {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 2px solid #2b2d83;
  border-radius: 4px;
  padding: 5px 14px;
}

.search-loupe-icon {
  font-size: 20px;
  color: #1d4ed8;
  margin-right: 10px;
  line-height: 1;
}

.upcoming-search-box input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 20px;
  font-weight: 500;
  color: #1e293b;
  text-align: center;
}

.upcoming-search-box input::placeholder {
  color: #1d2b88;
  opacity: 0.85;
}

/* --- 3. СЕТКА КОМПАКТНЫХ КАРТОЧЕК (4 КОЛОНКИ) --- */
.compact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.compact-lecture-card {
  background: #ffffff;
  border: 1.5px solid #dce3ec;
  border-radius: 14px;
  padding: 14px 16px 12px 16px;
  min-height: 158px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.compact-lecture-card:hover {
  transform: translateY(-3px);
  border-color: #60a5fa;
  box-shadow: 0 8px 22px rgba(22, 107, 160, 0.15);
}

/* Верхняя голубая плашка даты и времени в карточке */
.card-datetime-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #e1effe;
  border: 1px solid #93c5fd;
  border-radius: 20px;
  padding: 3px 14px;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 10px;
  max-width: 100%;
}

.card-datetime-pill .pill-date {
  font-weight: 800;
}

.card-datetime-pill .pill-tz {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.card-datetime-pill .pill-time {
  font-weight: 700;
  font-size: 16px;
}

/* Название лекции на карточке */
.card-lecture-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: auto 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* Ссылка "ДАЛЕЕ ?" внизу карточки */
.card-more-btn {
  margin-top: 10px;
  background: transparent;
  border: none;
  color: #2b2d99;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
}

.compact-lecture-card:hover .card-more-btn {
  color: #1d4ed8;
  text-decoration: underline;
}

/* --- 4. ВСПЛЫВАЮЩЕЕ ОКНО ВСТРЕЧИ (ПО МАКЕТУ) --- */
.lecture-popup-card {
  position: relative;
  background: #ffffff;
  border: 4px solid #2d3748;
  border-radius: 18px;
  width: 100%;
  max-width: 610px;
  padding: 20px 26px 22px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.lecture-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: #1e293b;
  cursor: pointer;
}

.lecture-popup-close:hover {
  color: #dc2626;
}

/* ТЕМА : [ НАУКА И ТРАДИЦИЯ ] */
.lecture-popup-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.lecture-popup-topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}

.lecture-popup-topic-icon svg {
  width: 48px;
  height: 48px;
  display: block;
}

.lecture-popup-topic-label {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  letter-spacing: 0.5px;
}

.lecture-popup-topic-label .colon-blue {
  color: #2563eb;
  font-weight: 800;
}

.lecture-popup-topic-badge {
  background: #e2e8f0;
  color: #1e293b;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 14px;
}

/* Полное название лекции */
.lecture-popup-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 14px;
}

/* Плашка даты и времени: чт. 22 сент. 2026г. 18.00 Иерусалим */
.lecture-popup-datetime {
  background: #edf2f7;
  color: #111827;
  font-size: 23px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 12px;
  margin-bottom: 12px;
  display: inline-block;
  width: 100%;
}

/* Площадка, Докладчик, Ведущий, Организатор */
.lecture-popup-people {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  color: #111827;
}

.popup-venue-line {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
  line-height: 1.35;
}

.popup-venue-line strong {
  font-weight: 800;
  color: #0c4a6e;
}

.popup-speakers-line {
  font-size: 16px;
}

.popup-organizer-line {
  font-size: 17px;
}

/* Краткое описание */
.lecture-popup-desc {
  font-size: 15px;
  color: #334155;
  line-height: 1.42;
  margin-bottom: 16px;
  max-height: 92px;
  overflow-y: auto;
  padding: 0 6px;
}

/* Большая синяя кнопка входа ("Вход из письма" / "Войти в Zoom") */
.lecture-popup-entry-wrap {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.popup-blue-entry-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  max-width: 100%;
  padding: 9px 30px;
  background: linear-gradient(180deg, #86a8cc 0%, #688cb4 100%);
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
  border: 1px solid #5a7ca3;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.popup-blue-entry-pill:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #789bc2 0%, #5b7fa8 100%);
  color: #ffffff;
}

/* Нижние контурные кнопки (Заявка, Аннотация, Сайт) */
.lecture-popup-bottom-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.popup-outline-btn {
  flex: 1 1 auto;
  background: #ffffff;
  border: 2px solid #1e293b;
  border-radius: 22px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  box-shadow: inset 0 0 0 1px #cbd5e1;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.popup-outline-btn:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

/* Адаптивность для планшетов и телефонов */
@media (max-width: 1200px) {
  .compact-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sea-main-title {
    font-size: 68px;
    padding-right: 180px;
  }
  .sea-main-title .title-afisha {
    font-size: 72px;
  }
}

@media (max-width: 900px) {
  .compact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sea-middle-area {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .sea-main-title {
    padding-right: 0;
    font-size: 54px;
    gap: 24px;
  }
  .sea-main-title .title-afisha {
    font-size: 58px;
  }
  .sea-organizers-box {
    position: static;
    width: 100%;
    max-width: 300px;
  }
  .upcoming-heading {
    font-size: 34px;
  }
}

@media (max-width: 580px) {
  .compact-cards-grid {
    grid-template-columns: 1fr;
  }
  .sea-top-bar {
    flex-direction: column;
    gap: 10px;
  }
  .lecture-popup-bottom-btns {
    flex-direction: column;
  }
  .popup-outline-btn {
    width: 100%;
  }
  .popup-blue-entry-pill {
    min-width: 100%;
    font-size: 20px;
  }
}

/* ================= ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА НА ФОНЕ ГЛОБУСА (RU / EN / עב) ================= */
.globe-lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 300;
}

.globe-lang-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(56, 189, 248, 0.55), rgba(3, 105, 161, 0.78));
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28), inset 0 1px 3px rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  overflow: hidden;
}

.globe-lang-btn:hover {
  transform: scale(1.07);
  filter: brightness(1.08);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35), inset 0 1px 4px rgba(255, 255, 255, 0.65);
}

.globe-lang-btn svg {
  width: 40px;
  height: 40px;
  opacity: 0.55;
  stroke: #ffffff;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.globe-lang-btn:hover svg {
  transform: rotate(12deg);
  opacity: 0.72;
}

.globe-lang-code {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 0 8px rgba(2, 62, 115, 0.9);
  pointer-events: none;
}

.globe-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 165px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border: 1.5px solid #93c5fd;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 42, 74, 0.28);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 400;
}

.globe-lang-menu.open {
  display: flex;
  animation: fadeLangMenu 0.16s ease-out;
}

@keyframes fadeLangMenu {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.globe-lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.globe-lang-option:hover {
  background: #e0f2fe;
  color: #0369a1;
}

.globe-lang-option.active {
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
  color: #ffffff;
  font-weight: 700;
}

.globe-lang-option .lang-short {
  font-size: 12px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.08);
}

.globe-lang-option.active .lang-short {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

