/* ==========================================================================
   Адаптив: 992 / 768 / 480
   ========================================================================== */

@media (max-width: 992px) {
  .section { padding: 72px 0; }
  .quiz-section, .cta { padding: 72px 0; }
  .hero__facts-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .terms-grid { grid-template-columns: 1fr; }
  .docs__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .header-main { height: 64px; gap: 12px; }
  .brand img { width: 40px; height: 40px; }

  .topbar__inner { justify-content: flex-start; }
  .topbar__max { width: 100%; justify-content: center; }

  .hero__grid { padding: 48px 20px; }
  .hero__lead { font-size: 16px; }
  .hero__facts-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  .section-head { grid-template-columns: 1fr; }
  .section-heading { font-size: 30px; }
  .quiz-intro h2, .cta h2 { font-size: 30px; }

  .spec-table__head { display: none; }
  .spec-row { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
  .spec-row__left h3 { font-size: 18px; }

  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table thead { display: none; }
  .price-table tbody tr { padding: 16px; border-bottom: 1px solid var(--border); }
  .price-table tbody tr:last-child { border-bottom: none; }
  .price-table tbody tr:hover { background: inherit; }
  .price-table th, .price-table td { padding: 6px 0; display: flex; justify-content: space-between; gap: 16px; }
  .price-table td::before, .price-table tbody th::before { content: attr(data-label); color: var(--fg-2); font-weight: 400; text-align: left; }
  .price-table tbody th { font-size: 20px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px dashed var(--border); margin-bottom: 8px; }
  .price-table tbody th::before { align-self: center; }
  .price-table .price { text-align: right; }

  .work-card { padding: 16px; }
  .work-card__photos { gap: 6px; }

  .quiz-card { padding: 20px; }
  .quiz-step h3 { font-size: 22px; }

  .workshop img { aspect-ratio: 4/3; }
  .docs { padding: 20px; }
  .cta__grid { grid-template-columns: 1fr; }

  .footer__nav { gap: 16px; }
  .footer__contacts address { grid-template-columns: 1fr; }
  .footer__addr { grid-column: auto; }

  .legal__title { font-size: 26px; }
  .legal h2 { font-size: 19px; margin-top: 32px; }

  .thanks-title { font-size: 32px; }
  .thanks-features { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  :root { --rail-px: 16px; }
  .section { padding: 56px 0; }
  .quiz-section, .cta { padding: 56px 0; }
  .topbar__phone, .topbar__mail { font-size: 13px; }
  .hero__title { font-size: 30px; }
  .hero__facts-grid { grid-template-columns: 1fr; }
  .hero__facts b { font-size: 22px; }
  .hero__media-head, .hero__media-foot { font-size: 11px; padding: 12px; }
  .section-heading { font-size: 26px; }
  .quiz-intro h2, .cta h2 { font-size: 26px; }
  .section-lead { font-size: 16px; }
  .spec-row__left { gap: 12px; }
  .spec-row__left h3 { font-size: 17px; }
  .work-card__photos img { aspect-ratio: 1/1; }
  .terms__big { font-size: 32px; }
  .faq summary { font-size: 17px; }
  .btn--lg { padding: 12px 20px; font-size: 14px; }
  .footer__bottom { font-size: 13px; }
  .lightbox__close, .lightbox__nav { width: 40px; height: 40px; font-size: 18px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}