@media (max-width: 1100px) {
  .header__inner {
    width: 90vw;
  }
}

@media (max-width: 980px) {

  .site-nav ul {
    gap: 16px;
    font-size: 14px;
  }

  .header__inner {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .header__actions {
    order: 3;
  }

  .hero__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__content,
  .hero__media {
    order: initial;
  }

  .hero__content {
    align-items: center;
    justify-items: center;
    text-align: center;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__features {
    justify-items: center;
  }

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

  .hero__figure {
    width: min(420px, 80vw);
    max-width: 420px;
    margin-left: 0;
  }

  .hero__clouds {
    transform: scale(0.85);
  }

  .cloud--one { left: 12%; top: 10%; }
  .cloud--two { top: 28%; right: 14%; }
  .cloud--three { bottom: 18%; left: 22%; }
  .cloud--four { top: 48%; right: 10%; }

  .hero__clouds .cloud:nth-child(5),
  .hero__clouds .cloud:nth-child(6) {
    display: none;
  }

  .course-summary {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .course-summary__aside {
    justify-items: center;
  }

  .course-levels {
    grid-template-columns: 1fr;
  }

  .level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  section {
    padding: 72px 0;
  }
}

@media (max-width: 900px) {
  /* Hero */
  .hero .container,
  .hero__inner,
  .hero__content {
    max-width: 680px;
    margin-inline: auto;
  }

  .hero__content {
    align-items: center;
    justify-items: center;
    text-align: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__figure {
    margin-left: 0 !important;
  }

  .hero__figure img {
    margin-left: 0 !important;
  }

  /* Наші курси */
  .courses .container {
    max-width: 680px;
    margin-inline: auto;
  }

  .course-tabs {
    justify-content: center;
  }

  .course-summary {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .level-group {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .level-grid {
    justify-items: center;
  }
}

@media (max-width: 640px) {
  .site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .hero__figure {
    width: min(360px, 90vw);
    max-width: 360px;
    margin-left: 0;
  }

  .hero__clouds {
    transform: scale(0.7);
  }

  .cloud--one { left: 16%; top: 14%; }
  .cloud--two { top: 36%; right: 18%; }
  .cloud--three { bottom: 14%; left: 28%; }

  .hero__clouds .cloud:nth-child(4) {
    display: none;
  }

  .course-levels {
    grid-template-columns: 1fr;
  }

  .level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .level-btn {
    padding: 14px;
  }

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

  .header__actions {
    flex-direction: column;
  }
}

/* Додаткові стилі можна додавати тут для дрібніших breakpoint'ів */

