@media screen and (max-width: 1320px) {
  /* Stack the reusable booking banner before its long heading gets squeezed. */
  .booking-banner {
    height: auto;
    padding: 48px 0;
  }
  .booking-inner {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .booking-icon img {
    width: 80px;
    height: 80px;
  }
  .booking-copy h2 {
    font-size: 30px;
  }
  .booking-banner .cta {
    width: auto;
  }
}

@media screen and (max-width: 1100px) {
  /* Stack the homepage CSD panel before the desktop columns become too narrow. */
  .whatis .wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
  .whatis-media {
    flex: none;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }
  .whatis-media img { aspect-ratio: 16 / 10; }
  .whatis-text {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    transform: none;
  }
  .whatis-text h2 {
    max-width: 100%;
    white-space: normal;
  }
  .whatis-text .rte {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
}

@media screen and (min-width: 601px) and (max-width: 1100px) {
  /* About Us fitness panel: keep the image and copy in distinct rows. */
  .about-us .hiw-steps--plain .hiw-step,
  .about-us .hiw-steps--plain .hiw-step .wrapper,
  .about-us .hiw-steps--plain .hiw-step-inner {
    height: auto;
    min-height: 0;
  }
  .about-us .hiw-steps--plain .hiw-step .wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .about-us .hiw-steps--plain .hiw-step-inner {
    order: 2;
    width: 85%;
    max-width: none;
    margin: 0 auto;
  }
  .about-us .hiw-steps--plain .hiw-step-text {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 60px 0;
    align-items: flex-start;
    text-align: left;
  }
  .about-us .hiw-steps--plain .hiw-step-text .rte {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .about-us .hiw-steps--plain .hiw-step-media {
    position: relative;
    order: 1;
    inset: auto;
    width: 100%;
    max-width: none;
    height: clamp(360px, 52vw, 520px);
    min-height: 360px;
    clip-path: none;
    background-position: center;
    background-size: cover;
  }

  .about-us .workwith-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px 24px;
  }
  .about-us .team-grid {
    width: 100%;
    margin-right: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-us .reviews .wrapper {
    width: 85%;
    max-width: none;
  }
  .about-us .review-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .organisation-benefits .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px 24px;
  }

  .what-is-training {
    height: auto;
    overflow: visible;
  }
  .what-is-training .wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }
  .what-is-training-image {
    flex: none;
    align-self: auto;
    width: 100%;
    height: clamp(380px, 52vw, 560px);
  }
  .what-is-training-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  .what-is-training .what-is-training-copy {
    position: static;
    inset: auto;
    transform: none;
    box-sizing: border-box;
    flex: none;
    width: 85%;
    max-width: none;
    margin: 0 auto;
    padding: 60px 0;
  }
}

@media screen and (max-width: 1024px) {
  :root {
    --header-height: 100px;
    --menu-width: 420px;
  }

  header {
    padding: 0 5% 0 7.5%;
  }

  header .logo img {
    width: 92px;
    height: 77px;
  }

  .burger-close {
    margin: 40px 60px 0 auto;
  }

  .burger-menu-list {
    padding-left: 40px;
  }
}

@media screen and (max-width: 960px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }

  .whatis .wrapper { flex-direction: column; gap: 40px; }
  .whatis-media { flex: none; width: 100%; }
  .whatis-media img { aspect-ratio: 16 / 10; }

  .service-grid { grid-template-columns: 1fr 1fr; gap: 34px; }

  .features-card { width: 100%; }
  .feature { flex: 1; width: auto !important; }
  .feature + .feature::before { display: none; }

  .band-content { width: 62%; min-width: 0; }

  .features-card { flex-wrap: wrap; gap: 24px; }
  .feature { flex: 0 0 100%; justify-content: flex-start; }

  .site-footer .wrapper { flex-direction: column; gap: 36px; }
  .footer-links { gap: 60px; }

  .hiw-step-text { width: 52%; }
  .hiw-step-media { width: 46%; }
  .hiw-num { font-size: 130px; }

  /* Keep the alternating How It Works panels inside their flex columns. */
  .how-it-works .hiw-step .wrapper,
  .how-it-works .hiw-step-inner { width: 85%; min-width: 0; }
  .how-it-works .hiw-step-text {
    flex: 1 1 44%;
    width: auto;
    min-width: 0;
  }
  .how-it-works .hiw-step-text h3,
  .how-it-works .hiw-step-text .rte,
  .how-it-works .hiw-step-text .rte p {
    width: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .how-it-works .hiw-step-text .rte { margin-left: 0; }
  .how-it-works .hiw-step-media { width: 54%; max-width: 54%; }

  .booking-banner { height: auto; padding: 48px 0; }
  .booking-inner { height: auto; flex-direction: column; align-items: flex-start; gap: 22px; }
  .booking-icon img { width: 80px; height: 80px; }
  .booking-copy h2 { font-size: 30px; }
  .booking-banner .cta { width: auto; }

  .team-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .workwith-item { min-width: 30%; }

  .contact .wrapper { flex-direction: column; gap: 54px; }
  .contact-form, .contact-info { width: 100%; }

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

  .what-is-intro .wrapper { width: 85%; gap: 48px; }
  .what-is-intro-image { flex-basis: 42%; }
  .what-is-intro-copy { min-width: 0; }
  .what-is-intro-copy .rte { width: auto; max-width: none; margin-left: 0; }
  .benefits-grid { gap: 24px; }
  .what-is-training .what-is-training-copy { width: 85%; margin: 0 auto; }
}

@media screen and (max-width: 800px) {
}

@media screen and (max-width: 768px) {
}

@media screen and (min-width: 601px) and (max-width: 1100px) {
  /* Homepage feature strip: wrap icon-and-copy items before they overflow. */
  .home .features-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    min-height: 0;
    padding: 24px;
  }
  .home .feature,
  .home .feature:nth-child(n) {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    padding: 16px;
    gap: 18px;
  }
  .home .feature + .feature::before {
    display: none;
  }
  .home .feature:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .home .feature-icon {
    width: 72px;
    height: 72px;
  }
  .home .feature span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .home .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 30px;
  }
  .home .service-card {
    min-width: 0;
    width: 100%;
  }
  .home .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 30px) / 2);
  }
  .home .service-body h3,
  .home .service-body p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* What Is Corporate Self Defence: keep this page's intro independent of
     homepage grid changes and stack it before its desktop columns get tight. */
  .what-is-corporate-self-defence .what-is-intro .wrapper {
    flex-direction: column;
    align-items: stretch;
    width: 85%;
    max-width: none;
    gap: 48px;
  }
  .what-is-corporate-self-defence .what-is-intro-image {
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .what-is-corporate-self-defence .what-is-intro-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .what-is-corporate-self-defence .what-is-intro-copy {
    box-sizing: border-box;
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .what-is-corporate-self-defence .what-is-intro-copy .rte {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-left: 0;
    overflow-wrap: anywhere;
  }

  /* How It Works: use two clean rows instead of the desktop overlap. */
  .how-it-works .hiw-intro {
    box-sizing: border-box;
    height: auto;
    padding: 84px 0 56px;
  }
  .how-it-works .hiw-steps {
    padding-bottom: 0;
  }

  .how-it-works .hiw-step {
    height: auto;
    min-height: 0;
    overflow: visible;
    background: #efefef;
    clip-path: none !important;
  }
  .how-it-works .hiw-step::before {
    display: none;
  }
  .how-it-works .hiw-step .wrapper.hiw-step-layout {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none !important;
  }
  .how-it-works .hiw-step .hiw-step-inner {
    position: relative;
    order: 2;
    display: block;
    box-sizing: border-box;
    width: 85%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    clip-path: none !important;
  }
  .how-it-works .hiw-step-text,
  .how-it-works .hiw-step--img-left .hiw-step-text {
    position: static;
    inset: auto;
    transform: none;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 56px 0;
    gap: 18px;
    align-items: flex-start;
    text-align: left;
  }
  .how-it-works .hiw-step-text .rte,
  .how-it-works .hiw-step--img-left .hiw-step-text .rte {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: left;
  }
  .how-it-works .hiw-step-media,
  .how-it-works .hiw-step--img-right .hiw-step-media,
  .how-it-works .hiw-step--img-left .hiw-step-media {
    position: relative;
    order: 1;
    inset: auto;
    width: 100%;
    max-width: none;
    height: clamp(360px, 52vw, 520px);
    min-width: 0;
    min-height: 360px;
    clip-path: none !important;
    background-position: center;
    background-size: cover;
  }
  .how-it-works .hiw-num {
    display: none !important;
  }
}

/* Homepage service cards: reduce columns before card content becomes cramped. */
@media screen and (min-width: 761px) and (max-width: 1320px) {
  .home .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 30px;
  }

  .home .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 30px) / 2);
  }
}

@media screen and (max-width: 760px) {
  .home .service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .home .service-card:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }
}
