/**
 * presentation.css - Стилизация отдельных типов слайдов
 * Увеличенные размеры шрифтов для отличной видимости с задних парт
 * Чистое и скрытное воспроизведение видео без громоздких оверлеев
 */

.slide-content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  padding: clamp(14px, 1.8cqw, 24px) clamp(22px, 2.8cqw, 40px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* =========================================
   СЛАЙД 1: ВСТУПИТЕЛЬНОЕ ВИДЕО
   ========================================= */
.intro-slide-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.intro-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

/* Нижняя панель видео-контролов для Слайда 1 и Слайда 10 */
.custom-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 30;
  opacity: 0;
  transition: opacity 0.25s;
}

.intro-slide-wrapper:hover .custom-video-controls,
.full-video-wrapper:hover .custom-video-controls,
.custom-video-controls.visible {
  opacity: 1;
}

.vid-ctrl-btn {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  touch-action: manipulation;
}

.vid-ctrl-btn:active {
  transform: scale(0.92);
}

.vid-progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.vid-progress-filled {
  height: 100%;
  background: #2563eb;
  width: 0%;
  border-radius: 4px;
  transition: width 0.1s linear;
}

.vid-time {
  color: #ffffff;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* =========================================
   СЛАЙД 2: ТИТУЛЬНЫЙ ЛИСТ (Адаптивно к размеру экрана)
   ========================================= */
.title-slide-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 2.2cqw, 40px) clamp(24px, 3.4cqw, 64px);
  box-sizing: border-box;
}

.title-top-banner {
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
}

.title-contest {
  font-size: clamp(17px, 1.8cqw, 30px);
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
}

.title-nomination {
  font-size: clamp(22px, 2.3cqw, 38px);
  font-weight: 800;
  color: #c2410c;
  margin-top: clamp(4px, 0.45cqw, 8px);
}

.title-center-block {
  text-align: center;
  margin: clamp(10px, 1.3cqw, 24px) 0;
}

.title-date {
  font-size: clamp(20px, 2.2cqw, 36px);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: clamp(6px, 0.7cqw, 12px);
}

.title-type {
  font-size: clamp(34px, 3.8cqw, 62px);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: clamp(10px, 1.2cqw, 20px);
}

.title-topic-box {
  background: rgba(255, 255, 255, 0.88);
  border: clamp(2px, 0.25cqw, 4px) solid rgba(234, 88, 12, 0.38);
  padding: clamp(10px, 1.2cqw, 20px) clamp(22px, 2.6cqw, 46px);
  border-radius: clamp(10px, 1.2cqw, 20px);
  display: inline-block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.title-topic-prefix {
  font-size: clamp(22px, 2.5cqw, 40px);
  font-weight: 800;
  color: #ea580c;
  margin-right: clamp(8px, 0.8cqw, 14px);
}

.title-topic-text {
  font-size: clamp(24px, 2.7cqw, 44px);
  font-weight: 900;
  color: #1e293b;
}

.title-bottom-block {
  display: flex;
  justify-content: flex-end;
}

.title-author-card {
  background: rgba(255, 255, 255, 0.9);
  border-left: clamp(5px, 0.55cqw, 10px) solid #ea580c;
  padding: clamp(10px, 1.2cqw, 20px) clamp(16px, 1.8cqw, 32px);
  border-radius: 0 clamp(8px, 1cqw, 16px) clamp(8px, 1cqw, 16px) 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  text-align: left;
}

.title-author-role {
  font-size: clamp(15px, 1.6cqw, 24px);
  font-weight: 700;
  color: #64748b;
}

.title-author-org {
  font-size: clamp(16px, 1.7cqw, 26px);
  font-weight: 700;
  color: #1e293b;
  margin: clamp(3px, 0.3cqw, 6px) 0;
}

.title-author-name {
  font-size: clamp(20px, 2.2cqw, 34px);
  font-weight: 800;
  color: #c2410c;
}

.title-year {
  font-size: clamp(15px, 1.55cqw, 24px);
  font-weight: 700;
  color: #64748b;
  margin-top: clamp(3px, 0.35cqw, 7px);
}

/* =========================================
   ОБЩИЕ СТИЛИ СЛАЙДОВ (СЛАЙДЫ 3–7, 9, 11–20)
   ========================================= */
.slide-header {
  margin-bottom: clamp(10px, 1.2cqw, 18px);
}

.slide-main-title {
  font-size: clamp(26px, 3cqw, 42px);
  font-weight: 900;
  color: #0f172a;
  display: inline-block;
  position: relative;
  letter-spacing: 0.2px;
}

.slide-main-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: clamp(48px, 5.5cqw, 80px);
  height: clamp(3px, 0.4cqw, 5px);
  background: linear-gradient(90deg, #ea580c, #f59e0b);
  border-radius: 3px;
}

/* СЛАЙД 3: ЦЕЛЬ */
.goal-slide-content {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4cqw, 20px);
  height: 100%;
}

.goal-card {
  background: rgba(255, 255, 255, 0.94);
  border-left: clamp(8px, 0.9cqw, 12px) solid #2563eb;
  padding: clamp(14px, 1.6cqw, 24px) clamp(20px, 2.4cqw, 36px);
  border-radius: 0 clamp(12px, 1.4cqw, 18px) clamp(12px, 1.4cqw, 18px) 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.goal-text {
  font-size: clamp(23px, 2.6cqw, 38px);
  line-height: 1.42;
  color: #0f172a;
  font-weight: 800;
}

.goal-image-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  padding-bottom: clamp(4px, 0.6cqw, 10px);
}

.goal-image {
  height: 100%;
  width: auto;
  max-height: 100%;
  max-width: 95%;
  object-fit: contain;
  border-radius: clamp(12px, 1.5cqw, 20px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

/* СЛАЙД 4: ВИТАЯ ПАРА */
.list-icons-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1cqw, 14px);
  margin-bottom: clamp(8px, 1cqw, 14px);
}

.icon-list-item {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6cqw, 22px);
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  padding: clamp(8px, 1cqw, 15px) clamp(14px, 1.7cqw, 24px);
  border-radius: clamp(10px, 1.2cqw, 16px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.icon-box {
  width: clamp(48px, 5.2cqw, 74px);
  height: clamp(48px, 5.2cqw, 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.icon-item-text {
  font-size: clamp(20px, 2.2cqw, 32px);
  line-height: 1.35;
  color: #1e293b;
  font-weight: 700;
}

.slide-bottom-img-box {
  display: flex;
  justify-content: center;
  flex: 1;
  align-items: center;
  min-height: 0;
  width: 100%;
  padding-bottom: clamp(4px, 0.6cqw, 10px);
}

.slide-bottom-img {
  height: 100%;
  width: auto;
  max-height: 100%;
  max-width: 95%;
  border-radius: clamp(12px, 1.4cqw, 20px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  object-fit: contain;
}

/* СЛАЙД 5: АЛЬТЕРНАТИВА ВИТОЙ ПАРЫ */
.comparison-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1cqw, 14px);
  height: 100%;
}

.bullets-list {
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 0.6cqw, 10px);
}

.bullet-item {
  font-size: clamp(18px, 1.95cqw, 28px);
  color: #0f172a;
  line-height: 1.35;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  padding: clamp(7px, 0.85cqw, 13px) clamp(14px, 1.6cqw, 24px);
  border-radius: clamp(8px, 1cqw, 14px);
  border-left: clamp(5px, 0.6cqw, 9px) solid #f59e0b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.comparison-images-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2.5cqw, 42px);
  margin-top: clamp(4px, 0.5cqw, 10px);
  padding-bottom: clamp(4px, 0.6cqw, 10px);
  flex: 1;
  min-height: 0;
}

.comparison-img-card {
  height: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: clamp(6px, 0.7cqw, 10px);
  border-radius: clamp(12px, 1.4cqw, 20px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.comparison-img-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: clamp(8px, 1cqw, 14px);
  display: block;
}

/* СЛАЙД 6: ЭТО - ОПТОВОЛОКНО */
.highlight-slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: clamp(12px, 1.6cqw, 24px);
}

.highlight-sub {
  font-size: clamp(24px, 2.8cqw, 42px);
  font-weight: 900;
  color: #ea580c;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.highlight-main {
  font-size: clamp(40px, 4.8cqw, 70px);
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1.5px;
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.22));
}

.highlight-image {
  max-height: clamp(220px, 26cqw, 360px);
  max-width: 88%;
  object-fit: contain;
  border-radius: clamp(12px, 1.4cqw, 18px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.15);
}

/* СЛАЙД 7: ОПРЕДЕЛЕНИЕ ОПТОВОЛОКНА */
.definition-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4cqw, 22px);
  height: 100%;
}

.definition-card {
  background: rgba(255, 255, 255, 0.96);
  border-left: clamp(8px, 0.9cqw, 12px) solid #059669;
  padding: clamp(14px, 1.6cqw, 24px) clamp(20px, 2.4cqw, 36px);
  border-radius: 0 clamp(12px, 1.4cqw, 18px) clamp(12px, 1.4cqw, 18px) 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.definition-term {
  font-size: clamp(24px, 2.7cqw, 38px);
  font-weight: 900;
  color: #059669;
  margin-bottom: clamp(6px, 0.7cqw, 10px);
}

.definition-text {
  font-size: clamp(20px, 2.25cqw, 32px);
  line-height: 1.42;
  color: #0f172a;
  font-weight: 700;
}

.definition-img-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  padding-bottom: clamp(4px, 0.6cqw, 10px);
}

.definition-img {
  height: 100%;
  width: auto;
  max-height: 100%;
  max-width: 95%;
  object-fit: contain;
  border-radius: clamp(12px, 1.5cqw, 20px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

/* СЛАЙД 9: ОПТИЧЕСКИЙ КАБЕЛЬ */
.optical-cable-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(18px, 2.2cqw, 36px);
  align-items: center;
  height: 100%;
}

.cable-texts {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2cqw, 18px);
}

.cable-p {
  font-size: clamp(17px, 1.9cqw, 27px);
  line-height: 1.4;
  color: #0f172a;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.94);
  padding: clamp(12px, 1.4cqw, 20px) clamp(16px, 1.8cqw, 26px);
  border-radius: clamp(10px, 1.2cqw, 16px);
  border-left: clamp(5px, 0.6cqw, 8px) solid #2563eb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.cable-img-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 0;
}

.cable-img {
  max-height: clamp(260px, 32cqw, 420px);
  max-width: 100%;
  object-fit: contain;
  border-radius: clamp(12px, 1.4cqw, 20px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* СЛАЙД 10: ПОЛНОЕ ВИДЕО ФК */
.full-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.full-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

/* СЛАЙД 11: ТЕХНИКА БЕЗОПАСНОСТИ */
.safety-slide-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.safety-main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4cqw, 20px);
  min-height: 0;
  padding-bottom: clamp(2px, 0.4cqw, 6px);
  box-sizing: border-box;
}

/* Верхний ряд: 3 карточки (Скалыватель, Стриппер, Этиловый спирт) */
.safety-top-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.4cqw, 20px);
  flex: 1.25;
  min-height: 0;
}

.safety-card {
  background: #ffffff;
  border-radius: clamp(12px, 1.3cqw, 18px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-top: clamp(4px, 0.5cqw, 7px) solid #ea580c;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  box-sizing: border-box;
}

.safety-top-card {
  padding: clamp(10px, 1.2cqw, 16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: clamp(6px, 0.7cqw, 10px);
  height: 100%;
}

.safety-card-header {
  width: 100%;
  font-size: clamp(16px, 1.8cqw, 24px);
  font-weight: 900;
  color: #0f172a;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: clamp(4px, 0.5cqw, 8px);
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
}

.safety-top-card .safety-card-img-box {
  aspect-ratio: 1 / 1;
  height: clamp(110px, 13cqw, 185px);
  width: auto;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: clamp(10px, 1.2cqw, 16px);
  padding: clamp(6px, 0.7cqw, 10px);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow: hidden;
}

.safety-top-card .safety-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: clamp(6px, 0.8cqw, 10px);
}

.safety-card-text {
  width: 100%;
  font-size: clamp(14.5px, 1.6cqw, 21px);
  line-height: 1.42;
  color: #1e293b;
  font-weight: 600;
}

.safety-card-text strong {
  color: #0f172a;
  font-weight: 900;
}

/* Нижний ряд: 2 просторные карточки (Гильза КДЗС, Оптическое волокно) */
.safety-bottom-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.4cqw, 20px);
  flex: 1;
  min-height: 0;
}

.safety-bottom-card {
  padding: clamp(10px, 1.2cqw, 16px) clamp(14px, 1.6cqw, 22px);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(14px, 1.8cqw, 24px);
  height: 100%;
}

.safety-bottom-img-box {
  aspect-ratio: 1 / 1;
  width: clamp(105px, 12cqw, 165px);
  height: clamp(105px, 12cqw, 165px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: clamp(10px, 1.2cqw, 16px);
  padding: clamp(6px, 0.7cqw, 10px);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow: hidden;
}

.safety-bottom-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: clamp(6px, 0.8cqw, 10px);
}

.safety-bottom-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(6px, 0.7cqw, 10px);
  min-width: 0;
}

.safety-bottom-body .safety-card-header {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: clamp(2px, 0.4cqw, 6px);
}

.safety-bottom-body .safety-card-text {
  font-size: clamp(14.5px, 1.6cqw, 21px);
  line-height: 1.42;
}

/* СЛАЙД 12: ОБЗОР ПАЙКИ */
.soldering-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4cqw, 22px);
  height: 100%;
}

.soldering-def-box {
  background: rgba(255, 255, 255, 0.96);
  border-left: clamp(6px, 0.7cqw, 10px) solid #2563eb;
  padding: clamp(12px, 1.4cqw, 20px) clamp(18px, 2.2cqw, 30px);
  border-radius: 0 clamp(12px, 1.4cqw, 18px) clamp(12px, 1.4cqw, 18px) 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.soldering-def-text {
  font-size: clamp(17px, 1.9cqw, 27px);
  line-height: 1.4;
  color: #0f172a;
  font-weight: 700;
}

.soldering-imgs-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: clamp(14px, 1.8cqw, 28px);
  flex: 1;
  min-height: 0;
}

.soldering-img-box {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 0;
}

.soldering-img-box img {
  max-height: clamp(180px, 22cqw, 300px);
  max-width: 100%;
  object-fit: contain;
  border-radius: clamp(10px, 1.2cqw, 16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* =========================================
   СЛАЙДЫ 13–17: ПОШАГОВАЯ ТЕХНОЛОГИЯ ВЫПОЛНЕНИЯ
   Единое центрирование заголовков и картинок на всех шагах
   ========================================= */
.step-slide-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-bottom: clamp(6px, 0.8cqw, 14px);
  box-sizing: border-box;
}

.step-header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: clamp(6px, 0.8cqw, 14px);
}

.step-badge-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1cqw, 14px);
  background: rgba(255, 255, 255, 0.95);
  padding: clamp(5px, 0.6cqw, 10px) clamp(14px, 1.8cqw, 26px);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.step-num-circle {
  width: clamp(28px, 3.2cqw, 42px);
  height: clamp(28px, 3.2cqw, 42px);
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(15px, 1.7cqw, 22px);
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}

.step-title-text {
  font-size: clamp(20px, 2.3cqw, 32px);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.3px;
}

/* Область для одного видео/картинки (Слайды 13–18: Шаги 1–6) */
.step-stage-single {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding-bottom: clamp(4px, 0.6cqw, 10px);
  box-sizing: border-box;
}

/* Область для двух картинок (резерв) */
.step-stage-dual {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2.2cqw, 36px);
  min-height: 0;
}

.step-dual-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
}

/* Единая элегантная карточка для видео/картинок шагов с сохранением честных пропорций 16:9 без обрезки */
.step-video-card,
.step-img-card {
  background: #000000;
  padding: 0;
  border-radius: clamp(10px, 1.2cqw, 18px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.step-video-card.single-card,
.step-img-card.single-card {
  height: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  width: auto;
  max-width: 96%;
}

.step-video-card.dual-card,
.step-img-card.dual-card {
  height: clamp(200px, 24cqw, 330px);
  width: 100%;
  aspect-ratio: 16 / 9;
}

.step-display-video,
.step-display-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: clamp(10px, 1.2cqw, 18px);
  display: block;
}

/* =========================================
   СЛАЙД 18: СВОДНАЯ СЕТКА ВСЕХ 6 ШАГОВ (ВИДЕО-МОЗАИКА)
   ========================================= */
.steps-grid-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.steps-grid-container {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(8px, 1cqw, 16px);
  padding: clamp(2px, 0.3cqw, 6px) 0;
  min-height: 0;
}

.steps-grid-cell {
  background: #ffffff;
  border-radius: clamp(8px, 1cqw, 14px);
  padding: clamp(6px, 0.7cqw, 10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.5cqw, 8px);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.steps-grid-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.grid-cell-header {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.7cqw, 10px);
  padding: 0 2px;
}

.grid-cell-num {
  width: clamp(24px, 2.6cqw, 34px);
  height: clamp(24px, 2.6cqw, 34px);
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(13px, 1.4cqw, 18px);
  font-weight: 900;
  flex-shrink: 0;
}

.grid-cell-title {
  font-size: clamp(13px, 1.4cqw, 19px);
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grid-cell-video-box {
  flex: 1;
  background: #000000;
  border-radius: clamp(4px, 0.6cqw, 8px);
  overflow: hidden;
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.grid-cell-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================
   СЛАЙД 18: РЕФЛЕКСИЯ (ПРИЁМ НЕЗАКОНЧЕННОГО ПРЕДЛОЖЕНИЯ)
   Цветные стрелки-шевроны в столбец в точности как на картинке
   ========================================= */
.reflection-slide-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.reflection-board-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: clamp(4px, 0.5cqw, 10px);
}

.reflection-board {
  position: relative;
  width: 96%;
  max-width: 1260px;
  background: #f8fafc;
  border-radius: clamp(14px, 1.6cqw, 24px);
  padding: clamp(14px, 1.8cqw, 26px) clamp(22px, 2.8cqw, 42px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  border: 1px solid #cbd5e1;
}

/* Декоративные металлические винты по углам доски как на образце */
.reflection-rivet {
  position: absolute;
  width: clamp(12px, 1.3cqw, 18px);
  height: clamp(12px, 1.3cqw, 18px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #cbd5e1 45%, #64748b 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  z-index: 5;
}
.rivet-tl { top: clamp(8px, 1cqw, 14px); left: clamp(8px, 1cqw, 14px); }
.rivet-tr { top: clamp(8px, 1cqw, 14px); right: clamp(8px, 1cqw, 14px); }
.rivet-bl { bottom: clamp(8px, 1cqw, 14px); left: clamp(8px, 1cqw, 14px); }
.rivet-br { bottom: clamp(8px, 1cqw, 14px); right: clamp(8px, 1cqw, 14px); }

.reflection-arrows-col {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.7cqw, 10px);
  width: 100%;
  --notch-size: clamp(26px, 3cqw, 44px);
}

.reflection-arrow {
  position: relative;
  width: 100%;
  height: clamp(48px, 5.6cqw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(
    0% 0%, 
    calc(100% - var(--notch-size)) 0%, 
    100% 50%, 
    calc(100% - var(--notch-size)) 100%, 
    0% 100%, 
    var(--notch-size) 50%
  );
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.22));
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
  user-select: none;
  box-sizing: border-box;
}

.reflection-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 48%, rgba(0, 0, 0, 0.24) 100%);
  pointer-events: none;
}

.reflection-arrow:hover,
.reflection-arrow.active {
  transform: translateX(10px) scale(1.02);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.38)) brightness(1.12);
  z-index: 10;
}

.reflection-arrow:active {
  transform: translateX(5px) scale(1.01);
}

.reflection-arrow-text {
  font-size: clamp(20px, 2.3cqw, 32px);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.75);
  letter-spacing: 0.5px;
  text-align: center;
  padding: 0 clamp(28px, 3.4cqw, 54px);
  position: relative;
  z-index: 2;
}

/* 7 радужных цветов стрелок в точности как на образце */
.arrow-red {
  background: linear-gradient(180deg, #e52d27 0%, #b31217 100%);
}

.arrow-orange {
  background: linear-gradient(180deg, #f57c00 0%, #d84315 100%);
}

.arrow-yellow {
  background: linear-gradient(180deg, #f4c414 0%, #c89500 100%);
}
.arrow-yellow .reflection-arrow-text {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 0.9);
}

.arrow-green {
  background: linear-gradient(180deg, #1ca238 0%, #0f6c24 100%);
}

.arrow-cyan {
  background: linear-gradient(180deg, #0288d1 0%, #01579b 100%);
}

.arrow-blue {
  background: linear-gradient(180deg, #0d47a1 0%, #08214d 100%);
}

.arrow-purple {
  background: linear-gradient(180deg, #51166e 0%, #320945 100%);
}

/* =========================================
   СЛАЙД: ДОМАШНЕЕ ЗАДАНИЕ
   Просторная компоновка: Крупный текст заданий + Увеличенный QR-код и кнопка
   ========================================= */
.homework-slide-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.homework-spacious-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(16px, 2cqw, 32px);
  align-items: stretch;
  padding: clamp(2px, 0.4cqw, 8px) 0;
  box-sizing: border-box;
  min-height: 0;
}

.homework-tasks-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: clamp(14px, 1.6cqw, 22px);
  padding: clamp(16px, 1.8cqw, 26px) clamp(18px, 2.2cqw, 32px);
  border-left: clamp(8px, 0.9cqw, 12px) solid #ea580c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(12px, 1.5cqw, 22px);
}

.homework-tasks-title {
  font-size: clamp(20px, 2.3cqw, 32px);
  font-weight: 800;
  color: #c2410c;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.homework-tasks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8cqw, 26px);
  margin: 0;
  padding: 0;
}

.homework-task-item {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5cqw, 22px);
}

.homework-task-num {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  width: clamp(38px, 4cqw, 54px);
  height: clamp(38px, 4cqw, 54px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: clamp(18px, 2cqw, 28px);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}

.homework-task-text {
  font-size: clamp(20px, 2.3cqw, 32px);
  color: #0f172a;
  line-height: 1.35;
  font-weight: 700;
}

.homework-tasks-footer-note {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: clamp(8px, 1cqw, 14px);
  padding: clamp(10px, 1.2cqw, 16px) clamp(12px, 1.4cqw, 20px);
  font-size: clamp(15px, 1.6cqw, 22px);
  color: #475569;
  font-weight: 600;
  line-height: 1.35;
}

.homework-qr-card {
  background: #ffffff;
  border-radius: clamp(14px, 1.6cqw, 22px);
  padding: clamp(12px, 1.5cqw, 22px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: clamp(8px, 1cqw, 14px);
}

.qr-card-header {
  font-size: clamp(20px, 2.2cqw, 30px);
  font-weight: 800;
  color: #0f172a;
}

.qr-code-wrapper {
  background: #ffffff;
  padding: clamp(8px, 1cqw, 14px);
  border-radius: clamp(10px, 1.2cqw, 16px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-scannable-img {
  width: clamp(170px, 20cqw, 270px);
  height: clamp(170px, 20cqw, 270px);
  display: block;
  object-fit: contain;
}

.qr-disk-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1cqw, 12px);
  background: linear-gradient(135deg, #fc3f1d 0%, #e02805 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(16px, 1.8cqw, 23px);
  font-weight: 800;
  padding: clamp(10px, 1.1cqw, 14px) clamp(20px, 2.2cqw, 30px);
  border-radius: clamp(8px, 1cqw, 14px);
  box-shadow: 0 4px 14px rgba(252, 63, 29, 0.3);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  cursor: pointer;
  touch-action: manipulation;
}

.qr-disk-link-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(252, 63, 29, 0.4);
}

.qr-disk-link-btn:active {
  transform: scale(0.98);
}

.qr-disk-icon {
  width: clamp(18px, 2cqw, 24px);
  height: clamp(18px, 2cqw, 24px);
  stroke-width: 2.5;
}

.qr-hint-text {
  font-size: clamp(14px, 1.5cqw, 19px);
  color: #64748b;
  font-weight: 600;
  max-width: 320px;
  line-height: 1.35;
}

/* СЛАЙД 20: СПАСИБО ЗА РАБОТУ */
.conclusion-slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: clamp(16px, 2cqw, 28px);
}

.conclusion-title {
  font-size: clamp(36px, 4.2cqw, 58px);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.conclusion-icon {
  width: clamp(130px, 15cqw, 190px);
  height: clamp(130px, 15cqw, 190px);
  animation: bounceClap 2s infinite ease-in-out;
}

@keyframes bounceClap {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.05); }
}

/* =========================================
   СЛАЙД 19: КОМАНДНАЯ РАБОТА: ТЕХНОЛОГИЧЕСКОЕ ЛОТО
   Только заголовок (подпись) и крупное изображение
   ========================================= */
.lotto-slide-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.lotto-simple-image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 1.2cqw, 20px) 0 clamp(10px, 1.5cqw, 24px);
  min-height: 0;
  overflow: hidden;
}

.lotto-main-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: clamp(12px, 1.5cqw, 22px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
  border: 2px solid #e2e8f0;
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lotto-main-image:hover {
  transform: scale(1.01);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

