/* ============================================================
   REVIEWS-MOBILE.CSS — адаптивные стили страницы «Отзывы»
   Подключается после reviews.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 ── */
  .reviews-hero { padding: 90px 0 60px; }

  .reviews-hero__inner {
    grid-template-columns: 1fr;
  }

  .reviews-hero__visual { display: none; }

  .reviews-hero__title {
    font-size: 38px;
    min-height: auto;
  }

  /* ── Typewriter — статично ── */
  .reviews-hero__title .typewriter-line {
    opacity: 1 !important;
    visibility: visible !important;
  }
  .typewriter-cursor { display: none !important; }
  .reviews-hero__lead,
  .reviews-hero__stats,
  .reviews-hero__buttons {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }

  /* ── Hero кнопки — без анимации ── */
  .btn-rv--primary,
  .btn-rv--outline {
    animation: none !important;
    transform: none !important;
  }
  .btn-rv--outline::before { animation: none !important; }

  /* ── Кнопка отправки формы ── */
  .contact-form__submit {
    animation: none !important;
    transform: none !important;
  }
  .cta-tg-btn { animation: none !important; }

  /* ── Рейтинг ── */
  .rv-rating-wrap {
    grid-template-columns: 180px 1fr;
    gap: 32px;
  }

  .rv-criteria {
    grid-column: 1 / -1;
  }

  .rv-criterion__bar { width: 120px; }

  /* Отключаем анимации блока рейтинга ── */
  .rv-rating-main {
    animation: none !important;
    transform: none !important;
  }
  .rv-rating-score { animation: none !important; }
  .rv-platform-card {
    animation: none !important;
    transform: none !important;
  }
  .rv-platform-card::after { animation: none !important; opacity: 0 !important; }

  /* ── Карточки отзывов ── */
  .rv-cards-grid { grid-template-columns: repeat(2, 1fr); }

  .rv-card {
    animation: none !important;
    transform: none !important;
  }
  .rv-card::after { animation: none !important; opacity: 0 !important; }

  /* ── Скриншоты ── */
  .rv-screenshot-card {
    animation: none !important;
    transform: none !important;
  }

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

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

  /* ── Орбитальный виджет — отключаем тяжёлые анимации ── */
  .rhv-orbit { animation: none !important; }
  .rhv-avatar { animation: none !important; }
  .rhv-badge--stars,
  .rhv-badge--count { animation: none !important; transform: none !important; }
  .rhv-ring__fill { animation: none !important; }
  .rv-scroll-btn--left  { left: -12px; }
  .rv-scroll-btn--right { right: -12px; }
}


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

  /* ── Hero ── */
  .reviews-hero { padding: 90px 0 48px; }

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

  /* Статистика — 3 колонки в ряд */
  .reviews-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; }

  /* Кнопки — рядом, по центру */
  .reviews-hero__buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .reviews-hero__buttons .btn-rv {
    width: auto;
    font-size: 13px;
    padding: 12px 18px;
  }

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

  /* ── Секции ── */
  .rv-rating-section,
  .rv-cards-section,
  .rv-screenshots-section,
  .rv-faq-section { padding: 48px 0 40px; }

  /* ── Рейтинг ── */
  .rv-rating-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .rv-rating-main {
    max-width: 180px;
    margin: 0 auto;
    text-align: center;
  }
  .rv-rating-score { font-size: 56px; }
  .rv-rating-stars { font-size: 20px; }

  /* Платформы — 2 колонки */
  .rv-platforms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .rv-platform-card { padding: 12px 14px; }
  .rv-platform-icon { width: 36px; height: 36px; font-size: 14px; }
  .rv-platform-name { font-size: 13px; }
  .rv-platform-count { font-size: 11px; }

  /* Критерии — полная ширина бар */
  .rv-criterion {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .rv-criterion__bar {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
  }
  .rv-criterion__label { font-size: 13px; }
  .rv-criterion__score { font-size: 13px; }

  /* ── Фильтр — горизонтальный скролл ── */
  .rv-filter-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .rv-filter-nav::-webkit-scrollbar { display: none; }
  .rv-filter-btn {
    flex-shrink: 0;
    font-size: 12px;
    padding: 7px 14px;
  }

  /* ── Карточки отзывов — 2 колонки ── */
  .rv-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .rv-card { padding: 16px 14px; }
  .rv-card__text { font-size: 13px; }
  .rv-card__name { font-size: 14px; }
  .rv-card__project { font-size: 12px; }
  .rv-card__avatar { width: 36px; height: 36px; font-size: 13px; }

  /* ── Скриншоты ── */
  .rv-screenshots-track { gap: 12px; }
  .rv-screenshot-card { min-width: 260px; }
  .rv-scroll-btn { display: none; }

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

  /* ── CTA ── */
  .contact-cta-section { padding: 56px 0 48px; }
  .contact-cta-section h2 { font-size: 24px; text-align: center; }
  .cta-contacts { flex-direction: column; align-items: center; gap: 12px; }
  .contact-form { grid-template-columns: 1fr; padding: 0; }
  .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 ── */
  #side-nav { display: none; }
}


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

  .reviews-hero { padding: 80px 0 48px; }
  .reviews-hero__title { font-size: 26px; }

  .reviews-hero__stats {
    flex-direction: column;
    gap: 16px;
  }
  .stat-item {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
  .stat-num { font-size: 24px; }

  .rv-rating-score { font-size: 56px; }
  .rv-rating-stars  { font-size: 20px; }

  .rv-platform-card { padding: 12px 14px; }
  .rv-platform-icon { width: 38px; height: 38px; font-size: 15px; }

  .rv-card { padding: 18px 16px; }
  .rv-card__text { font-size: 13px; }

  .rv-screenshot-card { min-width: 260px; }

  .rv-faq-item__q { font-size: 13.5px; padding: 14px 16px; }

  .contact-cta-section h2 { font-size: 22px; }
}
/* ============================================================
   FIX: СТАТИСТИКА В HERO — ВЫРОВНЯТЬ ПО ЛЕВОМУ КРАЮ
   ============================================================ */

/* Все экраны */
.reviews-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: 34px !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) {
  .reviews-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) {
  .reviews-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: КАРТОЧКИ ОТЗЫВОВ — В СТОЛБИК НА МОБИЛЬНЫХ
   ============================================================ */

/* Планшет — 2 колонки (нормально) */
@media (max-width: 1024px) and (min-width: 769px) {
  .rv-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Мобильный — 1 колонка (столбик) */
@media (max-width: 768px) {
  .rv-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .rv-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 16px !important;
  }
}

/* Маленький мобильный */
@media (max-width: 480px) {
  .rv-cards-grid {
    gap: 14px !important;
  }
  
  .rv-card {
    padding: 16px 14px !important;
  }
  
  .rv-card__text {
    font-size: 13px !important;
  }
  
  .rv-card__name {
    font-size: 15px !important;
  }
  
  .rv-card__project {
    font-size: 12px !important;
  }
}