@media (max-width: 1439px) {
  .navigation {
    padding-left: 130px;
    padding-right: 45px;
  }
  .nav-logo {
    left: 24px;
  }
  .menu {
    gap: 30px;
  }
  .hero-copy {
    left: calc(50% + 50px);
  }
  .hero-logo {
    left: 45px;
  }
  .hero-student {
    left: 535px;
  }
  /* Keep the slide-2 logo inside the viewport down to 1024. */
  .journey-logo {
    width: 230px;
    height: 226px;
    left: 810px;
    top: 92px;
  }
  .advantages h3 {
    font-size: clamp(32px, 3vw, 45px);
  }
  .about {
    padding-bottom: 60px;
  }
  .contacts-inner {
    grid-template-columns: minmax(330px, 375px) minmax(0, 584px);
  }
}
@media (max-width: 1023px) {
  .section-container {
    width: min(680px, calc(100% - 48px));
  }
  .site-header {
    height: 100px;
    padding-top: 14px;
  }
  .navigation {
    height: 72px;
    width: calc(100% - 40px);
    padding: 0 24px;
  }
  .nav-logo {
    position: static;
    transform: none;
    width: 68px;
    height: 70px;
  }
  .menu-toggle {
    display: flex;
    width: 42px;
    height: 35px;
    border: 0;
    background: transparent;
    padding: 6px;
    flex-direction: column;
    justify-content: space-between;
    margin-left: auto;
  }
  .menu-toggle span:not(.sr-only) {
    height: 3px;
    width: 100%;
    border-radius: 5px;
    background: var(--color-primary);
  }
  .menu {
    display: none;
  }
  /* Off-canvas drawer from the left + dimmed, lightly blurred overlay. */
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgb(1 0 104 / 30%);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 280ms ease,
      visibility 0s linear 280ms;
  }
  .mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 280ms ease;
  }
  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    width: min(82vw, 340px);
    height: 100vh;
    height: 100dvh;
    padding: 18px 18px 32px;
    background: var(--color-white);
    box-shadow: 8px 0 24px rgb(1 0 104 / 18%);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 280ms ease,
      visibility 0s linear 280ms;
  }
  .mobile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 280ms ease;
  }
  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgb(39 34 135 / 12%);
  }
  /* Same crop as .nav-logo. */
  .mobile-drawer-logo {
    width: 68px;
    height: 70px;
    overflow: hidden;
  }
  .mobile-drawer-logo img {
    width: 131.2%;
    max-width: none;
    height: auto;
    aspect-ratio: 1;
    margin: -14.88% 0 0 -16.43%;
  }
  .mobile-drawer-close {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--color-primary-alt);
    cursor: pointer;
  }
  .mobile-drawer-close svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
  }
  .mobile-drawer-close:hover,
  .mobile-drawer-close:focus-visible {
    background: rgb(39 34 135 / 7%);
  }
  .mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 18px;
  }
  .mobile-drawer-nav a {
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--color-primary-alt);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    transition:
      background-color 200ms ease,
      color 200ms ease;
  }
  .mobile-drawer-nav a:hover,
  .mobile-drawer-nav a:focus-visible,
  .mobile-drawer-nav a:active {
    background: rgb(39 34 135 / 7%);
    color: var(--color-accent);
  }
  body.menu-open {
    overflow: hidden;
  }
  /* Art-directed banner: slide 1 = copy + logo left, student bottom-right;
     slide 2 mirrors it = student bottom-left, card + logo right. */
  .hero {
    height: 480px;
  }
  .hero-art,
  .journey-stage {
    left: 0;
    width: 100%;
    transform: none;
  }
  .hero-copy {
    left: 50%;
    transform: translateX(-50%);
    width: min(680px, calc(100% - 48px));
    padding: 56px 0 0;
  }
  .hero h1 {
    font-size: clamp(46px, 6.2vw, 56px);
  }
  .hero-copy p {
    margin-top: 20px;
    font-size: 24px;
  }
  .hero-logo,
  .journey-logo {
    width: clamp(130px, 16vw, 164px);
    height: auto;
    aspect-ratio: 264 / 259;
    top: auto;
    bottom: 36px;
  }
  .hero-logo {
    left: max(24px, calc((100% - 680px) / 2));
  }
  .hero-student {
    width: clamp(360px, 48vw, 470px);
    height: auto;
    aspect-ratio: 1;
    left: auto;
    right: 0;
    top: auto;
    bottom: 0;
  }
  .journey-pattern {
    left: -560px;
  }
  .journey-student {
    width: clamp(360px, 46vw, 440px);
    height: auto;
    aspect-ratio: 1;
    left: max(0px, calc((100% - 680px) / 2 - 80px));
    top: auto;
    bottom: 0;
  }
  .journey-card {
    left: auto;
    right: max(24px, calc((100% - 680px) / 2));
    top: 64px;
    width: auto;
    height: auto;
    padding: 16px 22px 18px;
    font-size: clamp(28px, 3.4vw, 34px);
  }
  .journey-logo {
    left: auto;
    right: max(24px, calc((100% - 680px) / 2));
  }
  .about {
    height: auto;
    padding: 70px 0;
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .about-media {
    height: min(654px, 110vw);
    width: min(443px, 100%);
  }
  .about-copy {
    padding: 0;
  }
  .levels {
    height: auto;
    padding-bottom: 64px;
  }
  .levels-grid {
    grid-template-columns: 1fr;
    margin-top: 35px;
  }
  .advantages {
    height: auto;
    padding: 45px 0 55px;
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 38px;
  }
  .videos {
    height: auto;
    padding: 46px 0 75px;
  }
  .videos-wave {
    height: 100%;
    width: auto;
    min-width: 100%;
    object-fit: cover;
  }
  .video-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 45px;
  }
  .contacts {
    height: auto;
    padding: 60px 0;
  }
  .contacts-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .contact-card,
  .map {
    height: auto;
    min-height: 360px;
  }
  .map {
    aspect-ratio: 584/438;
    min-height: 0;
  }
  .site-footer {
    height: auto;
    padding: 38px 0;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
  }
  .social-links {
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .section-container {
    width: calc(100% - 40px);
  }
  /* Same canvas for both slides. margin-bottom keeps About where it sat
     when the in-flow WhatsApp pill occupied this gap. */
  .hero {
    height: clamp(450px, 118vw, 500px);
    margin-bottom: 74px;
  }
  .hero-pattern {
    left: -320px;
    top: -40px;
  }
  .hero-copy {
    left: 20px;
    transform: none;
    width: calc(100% - 40px);
    padding: 28px 0 0;
  }
  .hero h1 {
    font-size: clamp(38px, 10.6vw, 46px);
  }
  .hero-copy p {
    font-size: clamp(17px, 4.6vw, 20px);
    margin-top: 12px;
  }
  .hero-logo,
  .journey-logo {
    width: clamp(84px, 24vw, 104px);
    bottom: 24px;
  }
  .hero-logo {
    left: 20px;
  }
  .hero-student {
    width: min(72vw, 330px);
    right: -5vw;
  }
  .journey-pattern {
    left: -360px;
    top: -60px;
  }
  .journey-student {
    width: min(76vw, 340px);
    left: -6vw;
  }
  .journey-card {
    right: 20px;
    top: 28px;
    padding: 12px 16px 14px;
    border-radius: 16px;
    font-size: clamp(20px, 5.6vw, 24px);
  }
  .journey-logo {
    right: 20px;
  }
  .whatsapp-floating {
    width: 176px;
    min-height: 54px;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    padding-left: 5px;
    gap: 6px;
    font-size: 15px;
  }
  .whatsapp-floating img {
    width: 45px;
    height: 45px;
  }
  .about {
    padding-top: 10px;
  }
  .about h2,
  .levels h2,
  .advantages h2,
  .videos h2 {
    font-size: 40px;
  }
  .about p {
    font-size: 20px;
    margin-top: 20px;
  }
  .levels-grid {
    gap: 16px;
  }
  .level-card {
    height: auto;
    min-height: 354px;
    padding: 25px 22px;
  }
  .level-card p {
    font-size: 18px;
  }
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .advantages article {
    height: auto;
    min-height: 180px;
    padding-bottom: 20px;
    gap: 14px;
  }
  .advantages h3 {
    font-size: 36px;
  }
  .videos-inner > p {
    font-size: 20px;
  }
  .video-card {
    height: auto;
    padding: 40px 16px 44px;
  }
  .video-card img {
    width: 96px;
    height: 96px;
  }
  .video-card h3 {
    font-size: 24px;
  }
  .contacts-pattern {
    display: none;
  }
  .contact-card {
    padding: 32px 26px;
    font-size: 18px;
  }
  .site-footer p {
    font-size: 16px;
  }
  .footer-logo {
    width: 130px;
    height: 130px;
  }
}
@media (max-width: 389px) {
  .whatsapp-floating {
    width: 164px;
    min-height: 50px;
    font-size: 14px;
  }
  .whatsapp-floating img {
    width: 42px;
    height: 42px;
  }
}
