/* ============================
   Responsive — Mobile & Tablet
   ============================ */

/* ===== LARGE DESKTOP (< 1200px) ===== */
@media (max-width: 1200px) {
  .hero-inner {
    gap: var(--space-2xl);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

/* ===== TABLET (< 992px) ===== */
@media (max-width: 992px) {
  .nav {
    display: none;
    position: fixed;
    top: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 120px;
    align-items: center;
    overflow-y: auto;
    gap: var(--space-xl);
    z-index: var(--z-overlay);
    opacity: 0;
    transition: opacity var(--transition-base);
  }

  .nav.active {
    display: flex;
    opacity: 1;
  }

  .nav-link {
    font-size: var(--fs-xl);
  }

  .menu-toggle {
    display: flex;
    z-index: calc(var(--z-overlay) + 1);
  }

  .header-cta-btn {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    order: 1;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-features {
    justify-items: center;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-visual {
    order: 0;
    max-width: 500px;
    margin: 0 auto;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Native horizontal scroll for Process on tablet */
  .process-wrapper {
    height: auto;
  }
  
  .process-sticky {
    position: relative;
    height: auto;
    display: block;
    overflow: visible;
  }
  
  .container-process-sticky {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: max(var(--container-padding), calc(50vw - 480px)); /* max width 960/2 */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-xl);
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .container-process-sticky::-webkit-scrollbar {
    display: none;
  }
  
  .process-horizontal-track {
    gap: var(--space-md);
    padding-right: var(--container-padding);
  }
  
  .process-step-horizontal {
    width: 320px;
    scroll-snap-align: center;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .contact-content {
    text-align: center;
  }

  .contact-form-wrapper {
    padding: var(--space-xl);
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-messengers {
    flex-direction: column;
    width: 100%;
  }

  .contact-messengers .btn {
    width: 100%;
  }

  .contact-text {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-info {
    align-items: center;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }
}

/* ===== MOBILE (< 768px) ===== */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(3rem, 6vw, 5rem) 0;
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: var(--space-3xl);
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .floating-card {
    display: none;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .process-step-number {
    width: 48px;
    height: 48px;
    font-size: var(--fs-base);
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .advantage-card {
    padding: var(--space-xl);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column {
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .hero-bg-glow {
    width: 300px;
    height: 300px;
  }
}

/* ===== SMALL MOBILE (< 480px) ===== */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-lg {
    padding: 16px 30px;
  }

  .contact-form-wrapper {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
  }

  .card {
    padding: var(--space-xl);
  }

  .process-step-horizontal {
    width: 280px;
  }
}
