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

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  .section-space {
    padding: 90px 0;
  }

  .header-shell .header-inner {
    gap: 18px;
    padding: 0 18px;
  }

  .main-nav ul {
    gap: 20px;
  }

  .hero-layout {
    grid-template-columns: 1fr minmax(380px, 500px);
    gap: 28px;
  }

  .two-col-layout,
  .education-grid,
  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .why-us-visual {
    min-height: 420px;
  }

  .industry-grid,
  .blog-grid,
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-box {
    padding: 40px 36px;
  }
}

@media (max-width: 991px) {
  .main-nav,
  .header-actions .header-whatsapp,
  .header-actions .btn {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-block;
  }

  .mobile-menu {
    display: block;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    background: rgba(7, 16, 45, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: 0.35s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .mobile-menu.is-open {
    max-height: 520px;
    padding: 16px;
  }

  .mobile-menu ul {
    display: grid;
    gap: 6px;
  }

  .mobile-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.88);
    padding: 12px 10px;
    font-weight: 600;
    border-radius: 12px;
  }

  .mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-menu-cta {
    display: grid;
    gap: 10px;
    margin-top: 14px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    padding-top: 130px;
    padding-bottom: 70px;
  }

  .hero-spacer {
    display: none;
  }

  .hero-panel {
    justify-self: stretch;
    max-width: 100%;
  }

  .feature-inline-list,
  .why-us-points,
  .education-cards,
  .process-grid,
  .industry-grid,
  .blog-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .cta-box,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-box {
    padding: 36px 28px;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .section-space {
    padding: 72px 0;
  }

  .header-shell {
    padding-top: 16px;
  }

  .header-shell .header-inner {
    min-height: 68px;
    padding: 0 16px;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .hero-layout {
    padding-top: 118px;
    padding-bottom: 56px;
  }

  .hero-panel {
    padding: 26px 22px 28px;
    border-radius: 22px;
  }

  .hero-panel h1 {
    font-size: 2.35rem;
    line-height: 1.05;
  }

  .hero-panel p,
  .section-heading p,
  .section-copy p {
    font-size: 0.96rem;
  }

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

  .hero-actions .btn,
  .cta-actions .btn,
  .mobile-menu-cta .btn {
    width: 100%;
  }

  .image-collage {
    grid-template-columns: 1fr;
  }

  .image-collage__item--large {
    min-height: 340px;
  }

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

  .service-card__image,
  .blog-card__image {
    height: 220px;
  }

  .circle-image {
    max-width: 300px;
  }

  .circle-card {
    position: relative;
    display: inline-block;
    margin: 14px 0 0;
  }

  .why-us-visual .circle-card:first-child,
  .circle-card--secondary {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }
}

@media (max-width: 575px) {
  .hero-layout {
    padding-top: 112px;
    padding-bottom: 48px;
  }

  .hero-panel {
    padding: 22px 18px 24px;
    border-radius: 20px;
  }

  .hero-panel h1 {
    font-size: 2rem;
  }

  .hero-kicker {
    font-size: 12px;
    gap: 8px;
  }

  .hero-kicker::after {
    width: 34px;
  }

  .section-heading,
  .section-heading--center {
    margin-bottom: 34px;
  }

  .service-card__body,
  .feature-inline-card,
  .industry-card,
  .education-card,
  .process-card,
  .blog-card__body {
    padding: 22px;
  }

  .cta-box {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .footer-top {
    padding: 64px 0 28px;
  }

  .footer-bottom {
    padding: 18px 0 22px;
  }
}

@media (max-width: 1199px) {
  .about-intro-ref {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-ref-left {
    min-height: 520px;
  }

  .about-ref-top,
  .about-ref-bottom {
    min-height: 250px;
  }
}

@media (max-width: 767px) {
  .about-ref-visual {
    grid-template-columns: 1fr;
  }

  .about-ref-right {
    grid-template-rows: auto;
  }

  .about-ref-left,
  .about-ref-top,
  .about-ref-bottom {
    min-height: 300px;
  }

  .about-ref-badge {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 126px;
    height: 126px;
    border-width: 8px;
  }

  .about-ref-badge span {
    font-size: 13px;
  }

  .about-ref-copy {
    padding: 30px 24px;
    border-radius: 24px;
  }

  .about-ref-copy h2 {
    font-size: 2.2rem;
    line-height: 1.06;
  }

  .about-ref-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .about-ref-copy h2 {
    font-size: 1.95rem;
  }

  .about-ref-copy p {
    font-size: 0.97rem;
  }

  .about-ref-card {
    padding: 22px 20px;
  }
}


@media (max-width: 1199px) {
  .hero-content-block h1 {
    font-size: 4.35rem;
  }
}

@media (max-width: 991px) {
  .hero-layout--left {
    padding-top: 120px;
    padding-bottom: 64px;
  }

  .hero-content-block {
    max-width: 100%;
  }

  .hero-content-block h1 {
    font-size: 3.2rem;
  }

  .hero-content-block p {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .hero-layout--left {
    padding-top: 112px;
    padding-bottom: 54px;
  }

  .hero-content-block h1 {
    font-size: 2.45rem;
    line-height: 1.02;
  }

  .hero-content-block p {
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 26px;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .hero-kicker {
    font-size: 12px;
    gap: 8px;
  }

  .hero-kicker::after {
    width: 34px;
  }
}

@media (max-width: 575px) {
  .hero-content-block h1 {
    font-size: 2.05rem;
  }
}
