/* ============================================
   COMPONENTS.CSS — блоки слайда
   ============================================ */

/* ===== Общая раскладка слайда ===== */
.slide-layout {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 3em;
  height: 100%;
  padding: 2em 3em;
  box-sizing: border-box;
}

/* Левая колонка: иллюстрация */
.illustration-column {
  flex: 0 0 38%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Правая колонка: контент */
.content-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2em;
}

/* ===== Иллюстрация с градиентной рамкой ===== */
.illustration-frame {
  padding: 0.3em;
  background: linear-gradient(45deg, var(--blue-dark), var(--orange));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: 650px;
}

.illustration-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  background: var(--white);
}

/* Заглушка для иллюстрации (пока нет картинки) */
.placeholder-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #e0f2fe, #fff7ed);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.1em;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.4;
}

/* ===== Заголовок слайда ===== */
.slide-title {
  font-size: 2.2em;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
  margin: 0 0 0.3em 0;
}

/* Белый вариант заголовка (для тёмных фонов) */
.slide-title--light {
  color: var(--white);
  text-shadow: var(--shadow-text);
}

/* Подзаголовок */
.slide-subtitle {
  font-size: 1.15em;
  font-weight: 500;
  color: var(--gray-text);
  margin: 0;
}

/* Мелкая заметка */
.slide-note {
  font-size: 0.9em;
  color: var(--gray-light);
  margin: 0;
}

/* ===== Блок тезисов ===== */
.thesis-block {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--blue-dark);
  border-radius: var(--radius-md);
  padding: 1.2em 1.5em;
  box-shadow: var(--shadow-soft);
}

.thesis-block p {
  color: var(--gray-text);
  margin: 0.4em 0;
  font-size: 0.95em;
  line-height: 1.5;
}

.thesis-block p:first-child {
  margin-top: 0;
}

.thesis-block p:last-child {
  margin-bottom: 0;
}

/* Акцентная строка внутри тезисов */
.thesis-block .accent {
  color: var(--orange);
  font-weight: 600;
}

/* ===== Блок приглашения (CTA) ===== */
.cta-block {
  background: linear-gradient(135deg, var(--orange) 0%, var(--blue-dark) 100%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 1.2em 1.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  margin-top: 0.5em;
  box-shadow: var(--shadow-soft);
}

.cta-block .cta-text {
  color: var(--white);
  font-size: 1.05em;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* QR-код внутри CTA */
.qr-wrapper {
  flex: 0 0 auto;
  background: var(--white);
  padding: 6px;
  border-radius: var(--radius-sm);
}

.qr-wrapper .qr-code {
  display: block;
  width: 110px;
  height: 110px;
}

/* ============================================
   Компоненты для титульного слайда
   ============================================ */

/* Логотип в углу */
.slide-logo {
  position: absolute;
  top: 2em;
  right: 3em;
  z-index: 2;
}

.slide-logo img {
  height: 70px;
  width: auto;
  display: block;
}

/* Заглушка логотипа (пока нет картинки) */
.logo-placeholder {
  width: 90px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue-dark), var(--orange));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.75em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  box-shadow: var(--shadow-soft);
}

/* Реальный логотип */
.slide-logo .logo-img {
  width: 70px;
  height: 70px;
  display: block;
}

/* Центральный блок заголовка */
.title-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 3em 4em;
  box-sizing: border-box;
}

/* CTA внизу слева (для титульного) */
.cta-bottom {
  position: absolute;
  bottom: 2.5em;
  left: 3em;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.2em;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--blue-dark);
  border-radius: var(--radius-md);
  padding: 0.9em 1.3em;
  box-shadow: var(--shadow-soft);
}

.cta-bottom-text {
  font-size: 0.95em;
  color: var(--gray-text);
  line-height: 1.5;
}

.cta-bottom-text .cta-link {
  color: var(--blue-mid);
  font-weight: 700;
  font-size: 1.1em;
}

/* Компактный QR */
.qr-wrapper--small {
  padding: 4px;
}

.qr-wrapper--small .qr-code {
  width: 80px;
  height: 80px;
}

/* Крупный QR для финального слайда */
.qr-wrapper--large {
  padding: 8px;
}

.qr-wrapper--large .qr-code {
  width: 180px;
  height: 180px;
}

/* ============================================
   Строка контактов (финальный слайд)
   ============================================ */

.contacts-line {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-top: 0.8em;
  font-size: 0.9em;
  color: var(--gray-light);
  font-weight: 500;
}

.contacts-line .contacts-separator {
  color: var(--orange);
}

/* ============================================
   QR-код: увеличение при наведении
   ============================================ */

.qr-wrapper {
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
  cursor: pointer;
}

.qr-wrapper:hover {
  transform: scale(2);
  z-index: 100;
}

/* Родители не должны обрезать увеличенный QR */
.cta-block,
.cta-bottom {
  overflow: visible;
}

/* ============================================
   QR-код: пульсация (одноразовая) и hover (всегда)
   ============================================ */

/* Базовое состояние: hover работает ВСЕГДА */
.qr-wrapper {
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
  cursor: pointer;
}

.qr-wrapper:hover {
  transform: scale(2);
  z-index: 100;
}

/* Пульсация: срабатывает ТОЛЬКО на элементах с классом .qr-animated */
.qr-wrapper.qr-animated {
  animation: qr-pulse 6s ease-in-out;
  animation-fill-mode: forwards;
}

/* Во время пульсации hover временно отключаем */
.qr-wrapper.qr-animated:hover {
  animation-play-state: paused;
  transform: scale(2);
  transition: transform 0.35s ease;
}

@keyframes qr-pulse {
  0%   { transform: scale(1); }
  8%   { transform: scale(2); }
  90%  { transform: scale(2); }
  100% { transform: scale(1); }
}

/* Родители не обрезают увеличенный QR */
.cta-block,
.cta-bottom {
  overflow: visible;
}


/* ============================================
   Элемент внутри тезисов (категория, подпункт)
   ============================================ */

.thesis-item {
  padding: 0.7em 0;
  border-bottom: 1px solid rgba(30, 58, 138, 0.12);
}

.thesis-item:first-child {
  padding-top: 0;
}

.thesis-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.thesis-item h3 {
  font-family: var(--font-heading);
  font-size: 1.15em;
  font-weight: 700;
  color: var(--orange);
  margin: 0 0 0.25em 0;
}

.thesis-item p {
  color: var(--gray-text);
  font-size: 0.95em;
  margin: 0.2em 0;
  line-height: 1.45;
}

/* ============================================
   Блок-заметка (акцентная плашка)
   ============================================ */

.notice-block {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(249, 115, 22, 0.15));
  border: 2px solid var(--orange);
  border-left-width: 6px;
  border-radius: var(--radius-sm);
  padding: 0.8em 1.2em;
  margin-top: 0.3em;
}

.notice-block .notice-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85em;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3em;
}

.notice-block p {
  color: var(--gray-dark);
  font-size: 0.9em;
  line-height: 1.5;
  margin: 0.2em 0;
}

.notice-block code {
  font-family: 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.95em;
  color: var(--blue-dark);
}

/* ============================================
   Кнопки «в начало» / «в конец»
   ============================================ */

.nav-buttons {
  position: fixed;
  bottom: 24px;
  right: 140px;  /* Сдвинули левее, чтобы не перекрывать контролы */
  display: flex;
  gap: 12px;
  z-index: 40;
  pointer-events: auto;
}

.nav-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  background: rgba(30, 58, 138, 0.85);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-btn:hover {
  background: rgba(30, 58, 138, 1);
  transform: scale(1.1);
}

.nav-btn--first::before,
.nav-btn--last::before {
  content: '';
  position: absolute;
}