/* ============================================================
   RESPONSIVE — mobile-first breakpoints
   ============================================================ */

/* ── Tablet (≤ 1024px) ──────────────────────────────────── */
@media (max-width: 1024px) {
  .services__intro {
    flex-direction: column;
    gap: 2rem;
  }

  .services__sub {
    max-width: none;
  }

  /* Catalog */
  .catalog__intro {
    flex-direction: column;
    gap: 2rem;
  }

  .catalog__intro-right {
    align-items: flex-start;
    max-width: none;
  }

  .catalog__sub {
    text-align: left;
  }

  /* 2 cards visible on tablet */
  .server-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

/* ── Mobile landscape / small tablet (≤ 900px) ──────────── */
@media (max-width: 900px) {
  /* Hero */
  .hero__visual {
    width: 100%;
    height: 45%;
    top: 0;
    bottom: auto;
    opacity: .35;
  }

  .hero__server-frame {
    margin-top: 2rem;
  }

  .hero__content {
    max-width: 100%;
  }

/* Hero stats */
  .hero__stats {
    gap: 0;
    flex-wrap: wrap;
  }

  .hero__stat {
    padding-right: 1.75rem;
    margin-right: 1.75rem;
  }

  /* Catalog */
  .catalog {
    padding: 5.5rem 2rem;
  }

  .catalog__scroll-hint {
    display: none;
  }

  /* Navbar */
  .navbar {
    padding: 1.2rem 2rem;
  }

  /* Hero */
  .hero {
    padding: 0 2rem 4.5rem;
  }

  .hero__heading {
    font-size: clamp(3rem, 12vw, 5.5rem);
  }

  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Services */
  .services {
    padding: 5.5rem 2rem;
  }

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

  .service-card,
  .service-card:last-child {
    padding: 2.5rem 0 3.5rem;
    margin-top: 0;
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
  }

  .service-card:last-child {
    border-bottom: none;
  }

  /* Process */
  .process {
    padding: 5.5rem 2rem;
  }

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

  .process__step,
  .process__step:not(:first-child) {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 2.5rem 0;
  }

  .process__step:last-child {
    border-bottom: none;
  }

  /* CTA */
  .cta {
    grid-template-columns: 1fr;
    padding: 5.5rem 2rem;
    gap: 3rem;
  }

  .cta__right {
    align-items: flex-start;
  }

  /* Footer */
  .footer {
    padding: 4rem 2rem 3rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer__nav {
    gap: 3rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ── Mobile portrait (≤ 560px) ──────────────────────────── */
@media (max-width: 560px) {
  /* Hero stats: 2×2 grid on small screens */
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .hero__stat {
    padding: 1.25rem 0;
    margin-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .hero__stat:nth-child(odd) {
    padding-right: 1.5rem;
    border-right: 1px solid var(--border-light);
  }

  .hero__stat:nth-last-child(-n+2) {
    border-bottom: none;
  }

  /* Catalog: 1 card visible */
  .server-card {
    flex: 0 0 calc(100% - 0px);
  }

  .catalog__toggle-btn {
    padding: .6rem 1rem;
    font-size: .7rem;
  }

  .navbar__links {
    display: none;
  }

  .footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}
