@media (max-width: 1180px) {
  .pricing-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .panel-grid-3,
  .panel-grid-2,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--text);
  }

  .main-nav.mobile-open {
    display: flex;
    position: absolute;
    top: 78px;
    left: 14px;
    right: 14px;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
  }

  .hero-section,
  .content-section,
  .cta-section {
    padding: 76px 0;
  }

  .hero-section-home,
  .hero-section-programs {
    min-height: auto;
  }

  .flow-track {
    grid-template-columns: 1fr;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .narrow-head h2,
  .cta-panel h2 {
    font-size: clamp(1.9rem, 8vw, 2.9rem);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .nav-wrap {
    min-height: 74px;
  }

  .brand-mark {
    font-size: 1.58rem;
  }

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

  .btn {
    width: 100%;
  }

  .academy-panel,
  .program-card,
  .pricing-panel,
  .faq-item,
  .feature-block,
  .cta-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cta-panel {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .price-main {
    font-size: 2.45rem;
  }

  .footer-bottom p {
    font-size: 0.88rem;
  }
}
