/* ============================================
   Responsive — 480 / 640 / 768 / 1024 / 1200
   ============================================ */

@media (max-width: 1200px) {
  .grid--4,
  .segments-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .site-footer__col:nth-child(4) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .services-grid,
  .feature-grid,
  .split,
  .contact-grid,
  .solutions-ia__grid,
  .cta__inner,
  .cases-grid,
  .blog-grid,
  .reasons-grid,
  .testimonials-grid,
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .split__media {
    aspect-ratio: auto;
  }

  .hero__inner--split {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }

  .hero__content {
    max-width: 680px;
  }

  .hero__figure {
    max-width: 720px;
    margin-inline: auto;
    aspect-ratio: 16 / 10;
  }

  .hero__overlay {
    background: linear-gradient(180deg, rgba(7, 11, 24, 0.88) 0%, rgba(7, 11, 24, 0.62) 52%, rgba(7, 11, 24, 0.42) 100%);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 68px;
  }

  .section {
    padding-block: var(--sp-8);
  }

  .grid--4,
  .grid--3,
  .grid--2,
  .services-grid,
  .feature-grid,
  .split,
  .contact-grid,
  .solutions-ia__grid,
  .cta__inner,
  .cases-grid,
  .blog-grid,
  .reasons-grid,
  .testimonials-grid,
  .segments-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: calc(var(--header-h) + var(--sp-6)) var(--sp-7);
  }

  .hero__inner--split {
    gap: var(--sp-6);
  }

  .hero__title {
    font-size: clamp(2rem, 9vw, 3rem);
    max-width: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__proof {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .hero__trust {
    gap: 0.6rem;
    padding-top: var(--sp-4);
  }

  .hero__trust-item {
    white-space: normal;
    font-size: 0.8125rem;
  }

  .hero__figure {
    aspect-ratio: 16 / 11;
    border-radius: 16px;
  }

  .hero__badge {
    font-size: 0.72rem;
    padding: 0.45rem 0.7rem;
  }

  .hero__badge--top {
    top: 0.75rem;
    left: 0.75rem;
  }

  .hero__badge--bottom {
    bottom: 0.75rem;
    right: 0.75rem;
  }

  .hero__scroll {
    display: none;
  }

  .cta__card {
    padding: var(--sp-6);
  }

  .timeline::before {
    left: 23px;
  }

  .timeline__item {
    grid-template-columns: 48px 1fr;
  }

  .timeline__num {
    width: 48px;
    height: 48px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .site-footer__col:nth-child(4) {
    grid-column: auto;
  }

  .error-page__actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 1.25rem;
  }

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

  .split--reverse .split__media {
    order: 0;
  }
}

@media (min-width: 1921px) {
  .container--wide {
    max-width: 1600px;
  }
}
