/* ============================================================
   SUPPORT-MOBILE.CSS — адаптивная версия страницы «Поддержка сайтов»
   Подключается ПОСЛЕ direct-mobile.css
   Переопределяет только специфику support.php
   ============================================================ */


/* ============================================================
   ПЛАНШЕТ (≤ 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 — возвращаем 2 колонки, уменьшаем виджет ── */
  .support-hero__inner {
    grid-template-columns: 1fr 300px !important;
    gap: 32px !important;
  }
  .support-hero__visual {
    max-width: 300px !important;
    margin: 0 !important;
  }
  .support-hero__title { font-size: 36px; }

  /* Уменьшаем dashboard внутри */
  .sp-dashboard { padding: 16px; border-radius: 16px; }
  .sp-dash__header { margin-bottom: 12px; }
  .sp-dash__avatar { width: 32px; height: 32px; font-size: 13px; }
  .sp-dash__title { font-size: 12px; }
  .sp-dash__sub { font-size: 10px; }

  /* ── Hero — статичный показ ── */
  .support-hero__lead,
  .support-hero__stats,
  .support-hero__buttons {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }

  /* ── Отключаем тяжёлые анимации ── */
  .support-hero .calculator-hero__badge {
    animation: none !important;
    transform: none !important;
  }
  .support-hero .calculator-hero__badge::before { animation: none !important; }
  .support-hero .calculator-hero__badge-dot { animation: none !important; }
  .promo-card--edits::before,
  .promo-card--security::before,
  .promo-card--backup::before,
  .promo-card--updates::before { animation: none !important; }
  .btn-pr { animation: none !important; transform: none !important; }
  .sp-badge-wrap * { animation: none !important; }
  .splan-card { animation: none !important; transform: none !important; }
  .splan-card__icon { animation: none !important; }
  .splan-card__shine { animation: none !important; }
  .sp-dashboard { animation: none !important; transform: none !important; }

  /* ── splan тарифы — выравниваем все карточки ── */
  .splan-grid { align-items: stretch; }
  .splan-card--featured { transform: none !important; }

  /* ── Кейсы — 3 в ряд ── */
  .cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  /* Уменьшаем внутренние элементы кейсов */
  .case-card__inner { padding: 16px 14px; }
  .case-metric__val { font-size: 22px; }
  .case-card__desc { font-size: 12px; line-height: 1.5; }

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

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


/* ============================================================
   768px
   ============================================================ */
@media (max-width: 768px) {

  /* ── Hero ── */
  .support-hero { padding: 90px 0 48px; }
  .support-hero__inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    text-align: center;
  }
  .support-hero__title { font-size: 24px; text-align: center; }
  .support-hero__lead { font-size: 14px; text-align: center; margin-left: auto; margin-right: auto; }

  /* Badge */
  .support-hero .calculator-hero__badge { font-size: 11px; padding: 7px 12px; }
  .sp-badge-wrap { justify-content: center; }
  .sp-badge { font-size: 12px; padding: 8px 14px; }

  /* Статистика — 3 колонки в ряд */
  .support-hero__stats {
    display: grid !important;
    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: 20px; }
  .stat-label { font-size: 10px; }

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

  /* Dashboard — компактный */
  .support-hero__visual { max-width: 100% !important; margin: 0 auto !important; }
  .sp-floats { display: none; }
  .sp-dashboard { padding: 14px; border-radius: 14px; }
  .sp-dash__uptime-block { margin-bottom: 12px; }
  .sp-dash__metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sp-dash__metric-val { font-size: 16px; }
  .sp-dash__metric-label { font-size: 10px; }
  .sp-dash__feed { display: none; } /* лента событий скрыта — экономим место */
  .sp-dash__footer { display: none; }

  /* ── Типографика секций ── */
  .calculator-section { padding: 48px 0 40px; }
  .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; }

  /* ── Услуги (promo-grid) — 1 колонка ── */
  .promo-grid { grid-template-columns: 1fr; gap: 14px; }
  .promo-card { padding: 20px 16px 18px; }
  .promo-card__name { font-size: 15px; }
  .promo-card__desc { font-size: 13px; }
  .promo-card__tags span { font-size: 11px; padding: 3px 8px; }
  .promo-card__btn { width: 100%; text-align: center; font-size: 13px; }

  /* ── Процесс ── */
  .sp-process-steps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sp-process-step { padding: 16px 14px; text-align: center; flex-direction: column; }
  .sp-process-step__num { margin: 0 auto 8px; }
  .sp-process-step__title { font-size: 14px; }
  .sp-process-step__text { font-size: 12.5px; }

  /* ── Кейсы — 1 колонка ── */
  .cases-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .case-card__inner { padding: 16px 14px; }
  .case-metric__val { font-size: 24px; }
  .case-card__desc { font-size: 13px; }

  /* Скидочная полоса */
  .disc-strip__inner { flex-direction: column; text-align: center; gap: 10px; align-items: center; }
  .disc-strip__btn { width: 100%; text-align: center; }

  /* ── Тарифы splan-grid — на всю ширину ── */
  .splan-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    gap: 14px;
  }
  .splan-card--featured { transform: none !important; }
  .splan-card { padding: 20px 20px 18px; border-radius: 14px; }
  .splan-card__icon { width: 40px; height: 40px; }
  .splan-card__name { font-size: 16px; }
  .splan-card__sub { font-size: 12px; }
  .splan-card__price { font-size: 28px; }
  .splan-card__period { font-size: 12px; }
  .splan-card__list { columns: 2; gap: 8px; }
  .splan-card__list li { font-size: 13px; break-inside: avoid; }
  .splan-card__btn { width: 100%; text-align: center; font-size: 14px; padding: 12px; }

  /* Budget strip */
  .budget-strip { padding: 20px; }
  .budget-strip__inner { flex-direction: column; text-align: center; gap: 10px; align-items: center; }
  .budget-strip__btn { width: 100%; text-align: center; }

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

  /* ── CTA ── */
  .cta-section { padding: 52px 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 ── */
  #side-nav { display: none; }
}


/* ============================================================
   640px
   ============================================================ */
@media (max-width: 640px) {

  .support-hero__title {
    font-size: 28px;
  }

  /* Promo-карточки поддержки — теги короче */
  .promo-card--edits .promo-card__tags span,
  .promo-card--security .promo-card__tags span,
  .promo-card--backup .promo-card__tags span,
  .promo-card--updates .promo-card__tags span {
    font-size: 10px;
    padding: 3px 7px;
  }

}


/* ============================================================
   480px
   ============================================================ */
@media (max-width: 480px) {

  /* ── Контейнер ── */
  .container { padding: 0 16px; }

  /* ── Hero ── */
  .support-hero { padding: 72px 0 32px; }
  .support-hero__title { font-size: 22px; min-height: auto; }
  .support-hero__lead  { font-size: 13px; text-align: center; margin-left: auto; margin-right: auto; }

  /* Badge */
  .sp-badge { font-size: 11px; padding: 7px 12px 7px 9px; gap: 7px; }
  .sp-badge__shield { width: 22px; height: 22px; }
  .sp-badge__tag    { font-size: 9px; }

  /* Статистика — вертикально */
  .support-hero__stats {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }
  .stat-item {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    border-right: none;
    padding: 0;
  }
  .stat-num   { font-size: 20px; }
  .stat-label { font-size: 10px; }

  /* Hero dot */
  .direct-stat-dot--blue { width: 6px; height: 6px; }

  /* Кнопки — стопкой, полная ширина */
  .support-hero__buttons {
    flex-direction: column !important;
    align-items: stretch;
    gap: 10px;
  }
  .support-hero__buttons .btn-pr {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 12px 16px;
    animation: none !important;
  }

  /* Dashboard — компактный */
  .sp-dashboard { padding: 14px; border-radius: 16px; animation: none !important; }
  .sp-dash__header { margin-bottom: 10px; }
  .sp-dash__avatar { width: 28px; height: 28px; font-size: 12px; animation: none !important; }
  .sp-dash__title  { font-size: 11px; }
  .sp-dash__sub    { font-size: 10px; }
  .sp-dash__status { font-size: 10px; padding: 3px 8px; }

  /* Uptime блок */
  .sp-dash__uptime-val { font-size: 20px; }
  .sp-dash__uptime-segments { height: 20px; }
  .sp-dash__uptime-label,
  .sp-dash__uptime-hint { font-size: 10px; }

  /* Метрики — 2 колонки (3-я на всю ширину) */
  .sp-dash__metrics { grid-template-columns: 1fr 1fr; gap: 7px; }
  .sp-dash__metric:last-child { grid-column: 1 / -1; }
  .sp-dash__metric-icon  { font-size: 15px; }
  .sp-dash__metric-val   { font-size: 16px; }
  .sp-dash__metric-label { font-size: 9px; }

  /* Feed и footer скрыты */
  .sp-dash__feed   { display: none; }
  .sp-dash__footer { display: none; }

  /* ── Секции ── */
  .calculator-section { padding: 40px 0 32px; }

  /* ── Услуги (promo-grid) ── */
  .promo-grid { gap: 10px; }
  .promo-card { padding: 16px 14px 14px; animation: none !important; }
  .promo-card__top { gap: 10px; }
  .promo-card__icon-wrap { width: 44px; height: 44px; }
  .promo-card__name { font-size: 14px; }
  .promo-card__desc { font-size: 12.5px; }
  .promo-card__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .promo-card__btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: 12px;
    padding: 9px 14px;
  }

  /* ── Тарифы splan ── */
  .splan-grid { gap: 10px; }
  .splan-card { padding: 16px 14px; animation: none !important; }
  .splan-card__icon  { width: 36px; height: 36px; animation: none !important; }
  .splan-card__name  { font-size: 15px; }
  .splan-card__price { font-size: 24px; }
  .splan-card__list  { columns: 1; gap: 6px; }
  .splan-card__list li { font-size: 12px; }
  .splan-card__btn   { width: 100%; text-align: center; font-size: 13px; padding: 10px; }

  /* ── Процесс — 1 колонка ── */
  .sp-process-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sp-process-step {
    flex-direction: row;
    text-align: left;
    padding: 12px 12px;
    gap: 10px;
    align-items: flex-start;
  }
  .sp-process-step__num {
    flex-shrink: 0;
    margin: 0;
    width: 32px; height: 32px;
    font-size: 12px;
  }
  .sp-process-step__body { text-align: left; }
  .sp-process-step__title { font-size: 13px; }
  .sp-process-step__text  { font-size: 12px; }

  /* ── Кейсы ── */
  .cases-grid { gap: 10px !important; }
  .case-card__inner  { padding: 14px 12px; }
  .case-metric__val  { font-size: 20px; }
  .case-card__desc   { font-size: 12px; }

  /* ── Скидочная полоса ── */
  .disc-strip-section .disc-strip { padding-left: 14px; padding-right: 14px; border-radius: 12px; }
  .disc-strip__perks { flex-wrap: wrap; gap: 7px; }
  .disc-perk { font-size: 11px; padding: 5px 10px; animation: none; }

  /* ── Budget-strip ── */
  .budget-strip { padding: 16px; }

  /* ── DR-FAQ ── */
  .dr-faq-item__q { padding: 12px 12px; gap: 8px; }
  .dr-faq-item__text { font-size: 12.5px; }
  .dr-faq-item__icon-wrap { width: 28px; height: 28px; border-radius: 7px; }
  .dr-faq-item__a-inner { padding: 0 12px 12px; font-size: 12px; flex-direction: column; gap: 8px; }
  .dr-faq-item__stat { padding: 8px 10px; min-width: 70px; }
  .dr-faq-item__stat-num { font-size: 15px; }

  /* ── CTA ── */
  .cta-section { padding: 40px 0; }
  .cta-contacts { flex-direction: column; align-items: center; gap: 10px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form__full { grid-column: 1; }

  /* ── Footer — 1 колонка ── */
  .footer__grid { grid-template-columns: 1fr; gap: 20px; }
  .footer__col--about,
  .footer__col--last { grid-column: 1; }
}


/* ============================================================
   360px
   ============================================================ */
@media (max-width: 360px) {

  .support-hero__title {
    font-size: 20px;
  }

  .support-hero {
    padding: 80px 0 24px;
  }

  /* Badge без искр */
  .support-hero .calculator-hero__badge-spark {
    display: none;
  }

}
