/* ============================================================
   PROCESS-MOBILE.CSS — адаптивные стили страницы «Как работаю»
   Подключается после process.css
   ============================================================ */


/* ============================================================
   ПЛАНШЕТ — до 1024px
   ============================================================ */
@media (max-width: 1024px) {

  /* ── Горизонтальный скролл ── */
  html, body { overflow-x: hidden; max-width: 100%; }

  /* ── Навигация ── */
  .navbar__inner { padding: 0 28px; }
  .navbar__links { display: none; }
  .burger { display: flex !important; }
  .scatter-char {
    display: inline !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .logo-char {
    display: inline !important;
    transition: none !important;
    transform: none !important;
  }

  /* ── Hero ── */
  .process-hero {
    padding: 80px 0 56px;
  }
  .process-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .process-hero__visual {
    display: none;
  }
  .process-hero__title {
    font-size: 36px;
    min-height: auto;
  }

  /* ── Typewriter отключён — показываем статично ── */
  .process-hero__title .typewriter-line {
    opacity: 1 !important;
    visibility: visible !important;
  }
  .typewriter-cursor { display: none !important; }
  .process-hero__lead,
  .about-hero__stats,
  .about-hero__buttons {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }

  /* ── Кнопки hero ── */
  .btn-proc {
    animation: none !important;
    transform: none !important;
  }
  .btn-proc--outline::before {
    animation: none !important;
  }

  /* ── Этапы ── */
  .pstep {
    grid-template-columns: 72px 1fr;
    gap: 0 20px;
  }
  .pstep__body {
    grid-template-columns: auto 1fr;
    gap: 0 20px;
    padding: 24px 24px 20px;
  }
  .pstep__result {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
  }
  /* Отключаем анимации шестиугольника на планшете */
  .pstep__num::before {
    animation: none !important;
  }
  .pstep__num::after {
    animation: none !important;
    opacity: 0 !important;
  }
  /* Отключаем float карточек принципов */
  .principle-card {
    animation: none !important;
    transform: none !important;
  }
  /* Отключаем float карточек таймлайна */
  .ptv-week {
    animation: none !important;
    transform: none !important;
  }
  .ptv-day::after {
    animation: none !important;
  }

  /* ── Принципы ── */
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* ── Таймлайн 21 день ── */
  .ptv-grid {
    gap: 16px;
  }

  /* ── FAQ ── */
  .faq-list {
    max-width: 100%;
  }

  /* ── Боковые точки — скрыть ── */
  #side-nav { display: none !important; }

  /* ── Курсорный след — скрыть ── */
  .cursor-trail { display: none !important; }
}


/* ============================================================
   МОБИЛЬНЫЙ — до 768px
   ============================================================ */
@media (max-width: 768px) {

  /* ── Hero ── */
  .process-hero { padding: 72px 0 44px; }

  .process-hero__title {
    font-size: 24px;
    min-height: auto;
    text-align: center;
  }
  .process-hero__lead {
    font-size: 14px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Бейдж по центру */
  .about-hero__badge {
    margin-left: auto;
    margin-right: auto;
  }

  /* Статистика — 3 колонки в ряд */
  .about-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    text-align: center;
  }
  .stat-item {
    flex-direction: column;
    align-items: center;
    padding: 0 8px;
    border-right: 1px solid rgba(0,0,0,0.1);
  }
  .stat-item:last-child { border-right: none; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 10px; }

  /* Кнопки hero */
  .about-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px !important;
  }
  .btn-proc {
    font-size: 13px;
    padding: 12px 20px;
  }

  /* ── Секции ── */
  .process-steps-section,
  .process-principles,
  .process-faq { padding: 52px 0 44px; }
  .process-timeline-visual { padding: 44px 0; }

  /* Заголовки секций */
  .section-title { font-size: 22px; text-align: center; }
  .section-intro { text-align: center; margin-left: auto; margin-right: auto; font-size: 14px; }
  .section-label { text-align: center; }
  .divider { margin-left: auto; margin-right: auto; }

  /* ── Этапы работы ── */
  .process-timeline { margin-top: 28px; }
  .pstep {
    grid-template-columns: 48px 1fr;
    gap: 0 14px;
  }
  .pstep__num {
    width: 38px;
    height: 38px;
    font-size: 11px;
  }
  .pstep__line { min-height: 28px; }
  .pstep__body {
    grid-template-columns: 1fr;
    padding: 18px 16px 16px;
    margin-bottom: 18px;
    gap: 10px 0;
  }
  .pstep__icon-wrap { display: none; }
  .pstep__tag { font-size: 10px; padding: 2px 8px; }
  .pstep__title { font-size: 16px; }
  .pstep__text { font-size: 13px; }
  .pstep__list li { font-size: 12.5px; }
  .pstep__result {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
  }
  .pstep__result-label { white-space: nowrap; font-size: 12px; }
  .pstep__result-text { font-size: 12px; }

  /* ── Принципы — 2 колонки ── */
  .principles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .principle-card { padding: 18px 14px 16px; }
  .principle-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 12px;
  }
  .principle-card__title { font-size: 14px; }
  .principle-card__text { font-size: 12.5px; }

  /* ── Таймлайн 21 день — 2 колонки ── */
  .ptv-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .ptv-week { padding: 16px 14px; }
  .ptv-note { font-size: 12px; margin-top: 16px; text-align: center; }

  /* ── DR-FAQ ── */
  .dr-faq-item__q {
    padding: 16px 14px;
    gap: 10px;
  }
  .dr-faq-item__text { font-size: 13.5px; }
  .dr-faq-item__num { font-size: 11px; }
  .dr-faq-item__icon-wrap { width: 32px; height: 32px; }
  .dr-faq-item__a-inner { font-size: 13px; padding: 16px 14px; }
  .dr-faq-item__stat { padding: 10px 12px; }
  .dr-faq-item__stat-num { font-size: 18px; }

  /* Обычный FAQ (если есть) */
  .faq-item__q { font-size: 14px; padding: 18px 16px; }
  .faq-item__a { font-size: 13px; padding: 0 16px; }
  .faq-item.open .faq-item__a { padding: 4px 16px 18px; }

  /* ── CTA секция ── */
  .cta-section { padding: 56px 0; }
  .cta-contacts { flex-direction: column; align-items: center; gap: 12px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form__full { grid-column: 1; }

  /* ── Footer ── */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer__col--about { grid-column: 1 / -1; }
  .footer__col--last  { grid-column: 1 / -1; }

  /* ── Боковые точки — скрыть ── */
  #side-nav { display: none; }
}


/* ============================================================
   МАЛЕНЬКИЙ МОБИЛЬНЫЙ — до 480px
   ============================================================ */
@media (max-width: 480px) {

  .process-hero__title {
    font-size: 24px;
  }
  .about-hero__badge {
    font-size: 10px;
    padding: 5px 12px;
  }
  .about-hero__stats {
    flex-direction: column;
    gap: 14px;
  }
  .stat-item {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
  .stat-num {
    font-size: 24px;
  }

  .pstep {
    grid-template-columns: 40px 1fr;
    gap: 0 10px;
  }
  .pstep__num {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }
  .pstep__body {
    padding: 16px 14px;
  }
  .pstep__title {
    font-size: 15px;
  }

  .section-title {
    font-size: 22px;
  }

  .process-steps-section,
  .process-principles,
  .process-faq {
    padding: 48px 0 40px;
  }

  /* ── Форма ── */
  .contact-form {
    gap: 10px;
  }
  .form-input,
  .form-textarea {
    font-size: 14px;
  }

  /* ── FAQ ── */
  .faq-item__q {
    font-size: 13.5px;
    padding: 16px 14px;
    gap: 10px;
  }
  .faq-item__a {
    font-size: 13px;
    padding: 0 14px;
  }
  .faq-item.open .faq-item__a {
    padding: 4px 14px 16px;
  }
}

/* ============================================================
   FIX: СТАТИСТИКА — ВЫРОВНЯТЬ ПО ЛЕВОМУ КРАЮ
   ============================================================ */

/* Все экраны */
.process-hero__stats {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;  /* левый край */
  gap: 48px !important;
  flex-wrap: wrap !important;
  margin-top: 32px !important;
}

.stat-item {
  text-align: left !important;  /* текст внутри — левый край */
  padding: 0 !important;
  border-right: none !important;
}

.stat-num {
  font-size: 32px !important;
  font-weight: 700 !important;
  display: block !important;
  margin-bottom: 4px !important;
}

.stat-label {
  font-size: 13px !important;
  display: block !important;
  opacity: 0.8 !important;
}

/* Планшет — чуть меньше отступы */
@media (max-width: 768px) {
  .process-hero__stats {
    gap: 24px !important;
    justify-content: flex-start !important;
  }
  .stat-num {
    font-size: 28px !important;
  }
  .stat-label {
    font-size: 11px !important;
  }
}

/* Маленький мобильный — столбиком, но левый край */
@media (max-width: 550px) {
  .process-hero__stats {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: flex-start !important;
  }
  .stat-item {
    width: 100% !important;
  }
  .stat-num {
    font-size: 28px !important;
  }
}

/* ============================================================
   FIX: ТАЙМЛАЙН 21 ДЕНЬ — В СТОЛБИК
   ============================================================ */

@media (max-width: 1024px) {
  .ptv-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  .ptv-week {
    width: 100% !important;
  }
  
  .ptv-week__days {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }
  
  .ptv-day {
    flex: 1 1 auto !important;
    min-width: 100px !important;
  }
}

@media (max-width: 768px) {
  .ptv-grid {
    gap: 16px !important;
  }
  
  .ptv-week__days {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .ptv-day {
    width: 100% !important;
  }
  
  .ptv-week__label {
    margin-bottom: 8px !important;
  }
  
  .ptv-note {
    text-align: left !important;
    margin-top: 20px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {
  .ptv-week__days {
    gap: 6px !important;
  }
  
  .ptv-day {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
  
  .ptv-day small {
    font-size: 10px !important;
    display: block !important;
    margin-top: 4px !important;
  }
  
  .ptv-note {
    font-size: 12px !important;
  }
}