@media (max-width: 1100px) {
  .hero-grid, .intro-split, .values-layout, .contact-layout, .card-grid.three, .course-grid, .course-grid.catalog, .feature-grid.three, .footer-grid, .testimonial-grid.large, .masonry-grid, .benefit-grid, .quote-grid, .timeline {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .gallery-grid, .testimonial-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .topbar-inner, .cta-box { flex-direction: column; align-items: flex-start; }
  .header-inner { position: relative; min-height: 88px; flex-direction: row; align-items: center; justify-content: flex-start; }
  .nav-toggle { display: inline-block; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); }
  .brand { align-self: center; margin-left: 0; }
  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + .5rem);
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 22px;
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-menu.open { display: flex; }
  .hero-grid, .intro-split, .values-layout, .contact-layout, .feature-grid.two, .feature-grid.three, .card-grid.three, .course-grid, .course-grid.catalog, .footer-grid, .testimonial-grid, .testimonial-grid.large, .gallery-grid, .masonry-grid, .benefit-grid, .quote-grid, .timeline {
    grid-template-columns: 1fr;
  }
  .hero-shell { padding: .8rem; border-radius: 28px; }
  .hero-copy { padding: 1rem; }
  .hero-visual {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: .5rem 0 0;
    gap: 1rem;
  }
  .desktop-card {
    position: relative;
    inset: auto;
    width: min(100%, 560px);
    height: 430px;
    margin: 0 auto;
  }
  .tablet-card { display: none; }
  .floating-card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: min(calc(100% - 2rem), 360px);
    padding: 1rem 1.1rem;
    margin: -2rem auto 0;
  }
  .hero-metrics { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }

  .course-card img { height: 360px; }
  .course-card .card-body { padding: 1.2rem; }
}


@media (max-width: 560px) {
  :root { --container: min(100% - 1.1rem, 100%); }
  .topbar { display: none; }
  .hero { padding-top: 2.4rem; }
  .hero-copy { text-align: center; }
  .hero-copy h1, .page-hero h1 { font-size: 2.2rem; }
  .hero-pills { justify-content: center; }
  .hero-actions { justify-content: center; }
  .lead-card { text-align: left; }
  .section-heading h2, .feature-panel h3, .cta-box h2, .contact-card h2, .contact-form h2 { font-size: 1.85rem; }
  .btn { width: 100%; }
  .hero-actions, .cta-actions { width: 100%; }
  .mockup-layer { border-width: 6px; }
  .desktop-card { height: 360px; border-radius: 24px; }
  .floating-card {
    width: min(calc(100% - 1.4rem), 320px);
    bottom: .75rem;
    border-radius: 18px;
  }
  .floating-card strong { font-size: 1.05rem; line-height: 1.3; }
  .hero-pills span { width: 100%; justify-content: center; }

  .course-card img { height: 400px; }
  .service-card img { height: 260px; }
}

