/* ==========================================================================
   Секция: Процесс (Как мы работаем)
   ========================================================================== */
.process {
    width: 100%;
    background-color: #f8fafc;
    padding: 100px 0;
    display: flex;
    justify-content: center;
}

.process__container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.process__header-wrapper {
    text-align: center;
    margin-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.process__badge {
    background: rgba(37, 99, 235, 0.1);
    color: #249AF3;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.process__title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.15;
    color: #000000;
    margin: 0;
}

.process__content {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    position: relative;
}

/* --- ТАЙМЛАЙН --- */
.process__timeline {
    width: 50%;
    position: relative;
    padding: 0;
}

.process__line {
    position: absolute;
    top: 16px;
    left: 15px;
    width: 2px;
    background-color: #e5e7eb;
    z-index: 1;
}

.process__line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: #249AF3;
}

.process__step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 60px;
}

.process__step:last-child {
    margin-bottom: 0;
}

.process__step-title,
.process__step-text {
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

.process__step.is-active .process__step-title,
.process__step.is-active .process__step-text {
    opacity: 1;
}

.process__step-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #9ca3af;
    transition: box-shadow 0.2s ease;
}

.process__step.is-active .process__step-dot {
    border-color: #249AF3;
    background-color: #249AF3;
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15);
}

.process__step-title {
    font-size: 24px;
    font-weight: 800;
    color: #000000;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.process__step-text {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* --- ПРАВАЯ КОЛОНКА --- */
.process__text-card {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #249AF3 0%, #1B85D5 100%);
    border-radius: 22px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process__text-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(37, 99, 235, 0.35);
}

.process__text-card-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.process__text-card-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.process__text-card-text {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.process__right-column {
    width: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* --- ВИДЕО — фиксировано внизу правой колонки --- */
.process__video-box {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.1);
    background-color: #000;
}

/* Стили для Plyr */
:root {
    --plyr-color-main: #249AF3;
    --plyr-video-radius: 22px;
}

.process__video-box .plyr {
    width: 100%;
    height: 100%;
}

.process__play-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    z-index: -1;
    animation: process-pulse 2s infinite;
}

@keyframes process-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.process__video-box.is-playing .process__video-poster,
.process__video-box.is-playing .process__play-btn {
    opacity: 0;
    pointer-events: none;
}

/* --- ФУТЕР --- */
.process__footer {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.process__footer-text {
    font-size: 32px;
    font-weight: 800;
    color: #000000;
    margin: 0;
    text-align: center;
}

@media (max-width: 768px) {
  .process {
    padding: 60px 0;
  }

  .process__title {
    font-size: 32px;
  }

  .process__content {
    flex-direction: column;
    gap: 40px;
  }

  /* Таймлайн */
  .process__timeline {
    width: 100%;
    padding: 0;
  }

  .process__line {
    left: 16px;
  }

  .process__step {
    padding-left: 48px;
    margin-bottom: 40px;
  }

  .process__step-dot {
    width: 28px;
    height: 28px;
    font-size: 13px;
    left: 2px;
  }

  .process__step-title {
    font-size: 20px;
  }

  .process__step-text {
    font-size: 14px;
  }

  /* Правая колонка */
  .process__right-column {
    width: 100%;
    position: static;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .process__text-card {
    aspect-ratio: auto;
    padding: 28px 20px;
    border-radius: 18px;
  }

  .process__text-card-title {
    font-size: 20px;
  }

  .process__text-card-text {
    font-size: 14px;
  }

  /* Видео — убираем абсолютное позиционирование */
  .process__video-box {
    position: static;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 18px;
  }

  .process__footer {
    margin-top: 40px;
    gap: 16px;
  }

  .process__footer-text {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .process__title {
    font-size: 26px;
  }

  .process__step-title {
    font-size: 18px;
  }

  .process__text-card {
    padding: 20px 16px;
  }

  .process__footer-text {
    font-size: 20px;
  }
}