@media (max-width: 1024px) {
  .hero-container,
  .why-us-grid,
  .contact-grid,
  .split-hero {
    grid-template-columns: 1fr;
  }

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

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

  .hero-left {
    text-align: center;
  }

  .hero-actions,
  .hero-pills {
    justify-content: center;
  }

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

  .carousel-item {
    flex: 0 0 210px;
    height: 263px;
  }

  .testimonial-marquee {
    gap: 16px;
  }

  .testimonial-card {
    padding: 22px;
  }

  .testimonial-avatar {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }

  @keyframes scroll-marquee {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-210px * 6 - 12px * 5));
    }
  }
}

@media (max-width: 840px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .quote-btn {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .filter-bar {
    gap: 10px;
    margin-bottom: 40px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .carousel-item {
    flex: 0 0 180px;
    height: 225px;
  }

  @keyframes scroll-marquee {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-180px * 6 - 12px * 5));
    }
  }
}

@media (max-width: 768px) {
  .container,
  .testimonials .container {
    width: min(91%, 680px);
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2,
  .why-us-content h2,
  .contact-info h2 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
  }

  .section-heading p,
  .why-us-content p,
  .contact-info p {
    line-height: 1.65;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .announcement-bar {
    padding: 8px 0;
    font-size: 0.78rem;
  }

  .marquee-track {
    animation-duration: 28s;
  }

  .marquee-content {
    min-width: 120vw;
    padding: 0 28px;
  }

  .marquee-content span {
    margin-right: 2.25rem;
  }

  header {
    padding: 12px 0;
  }

  header.scrolled {
    padding: 9px 0;
  }

  .logo img {
    width: 96px;
  }

  .hero {
    min-height: auto;
    padding: 0;
  }

  .hero-carousel-track {
    animation-duration: 20s;
  }

  .hero-slide {
    min-height: auto;
    padding: 108px 0 68px;
  }

  .hero-slider-dots {
    bottom: 18px;
    gap: 7px;
  }

  .hero-slider-dots span {
    width: 7px;
    height: 7px;
    animation-duration: 20s;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    gap: 34px;
    text-align: center;
  }

  .hero-left {
    display: contents;
  }

  .hero-left .eyebrow,
  .hero-left h1,
  .hero-text,
  .hero-pills {
    order: 1;
    width: 100%;
  }

  .hero-right {
    order: 2;
    width: 100%;
  }

  .hero-actions {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero-left h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
    line-height: 0.98;
    letter-spacing: 0.02em;
  }

  .hero-text {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .hero-pills {
    gap: 9px;
    margin: 20px 0 24px;
  }

  .hero-pills span {
    padding: 8px 11px;
    font-size: 0.78rem;
  }

  .hero-actions {
    gap: 12px;
  }

  .btn {
    padding: 12px 20px;
  }

  .hero-card {
    max-width: 360px;
    padding: 12px;
    border-radius: 22px;
  }

  .hero-card img {
    border-radius: 18px;
  }

  .service-card,
  .choose-card,
  .panel-card,
  .contact-form,
  .contact-info {
    padding: 24px;
    border-radius: 18px;
  }

  .service-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    font-size: 1.1rem;
  }

  .service-card h3,
  .choose-card h3,
  .panel-card h3,
  .testimonial-card h3,
  .footer h3 {
    font-size: 1.05rem;
  }

  .page-hero,
  .portfolio-page,
  .contact-page,
  .services-page,
  .testimonials-page {
    padding-top: 108px;
  }

  .split-copy h1,
  .portfolio-page h1,
  .contact-page h1,
  .services-page h1,
  .testimonials-page h1,
  .testimonials-page .section-heading h1 {
    font-size: clamp(2.55rem, 12vw, 3.7rem);
    line-height: 1;
  }

  .testimonial-marquee {
    grid-template-columns: 1fr;
    max-width: 520px;
    height: min(660px, 78vh);
    gap: 0;
    border-radius: 16px;
  }

  .testimonial-column:nth-child(n + 2) {
    display: none;
  }

  .testimonial-track {
    animation-duration: 34s;
  }

  .testimonial-group {
    gap: 14px;
    padding-bottom: 14px;
  }

  .testimonial-card {
    gap: 12px;
    padding: 20px;
    border-radius: 14px;
  }

  .testimonial-card p {
    line-height: 1.65;
    font-size: 0.9rem;
  }

  .testimonial-avatar {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    font-size: 0.82rem;
  }

  .contact-grid {
    gap: 20px;
  }

  .whatsapp {
    right: 14px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  .whatsapp img {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 62px 0;
  }

  .hero-slide {
    padding-top: 102px;
  }

  .service-grid,
  .portfolio-grid,
  .choose-grid,
  .service-page-grid,
  .testimonial-page-grid,
  .stats-grid,
  .input-row {
    grid-template-columns: 1fr;
  }

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

  .testimonial-marquee {
    grid-template-columns: 1fr;
    height: min(620px, 76vh);
  }

  .testimonial-column:nth-child(n + 2) {
    display: none;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
    gap: 20px;
  }

  .footer-bottom {
    justify-items: start;
  }

  .carousel-item {
    flex: 0 0 150px;
    height: 195px;
  }

  @keyframes scroll-marquee {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-150px * 6 - 12px * 5));
    }
  }

  .carousel-overlay {
    gap: 6px;
  }

  .carousel-overlay i {
    font-size: 1.4rem;
  }

  .carousel-overlay span {
    font-size: 0.85rem;
  }
}

@media (max-width: 560px) {
  .hero-left h1 {
    font-size: clamp(2.45rem, 13vw, 3.15rem);
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .service-card,
  .contact-form,
  .contact-info,
  .testimonial-card {
    padding: 24px;
  }

  .testimonial-marquee {
    height: min(560px, 74vh);
  }

  .testimonial-card-header {
    align-items: flex-start;
  }

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

  .page-hero,
  .portfolio-page,
  .contact-page,
  .services-page,
  .testimonials-page {
    padding-top: 96px;
  }

  .split-image,
  .split-image img {
    min-height: 320px;
  }

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

  .carousel-item {
    flex: 0 0 135px;
    height: 173px;
  }

  @keyframes scroll-marquee {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-135px * 6 - 12px * 5));
    }
  }

  .filter-bar {
    gap: 8px;
    margin-bottom: 30px;
  }

  .filter-btn {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
}
