@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer__cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer__cta-actions { width: auto; justify-content: flex-end; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .vm-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1.2fr 0.8fr; }
  .services-list-grid { grid-template-columns: repeat(2, 1fr); }
  .project-gallery { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(4, 1fr); }
  .step-connector {
    display: block; height: 2px; background: rgba(6,95,133,0.35);
    align-self: center; margin-top: -3rem;
  }
}

@media (min-width: 1024px) {
  .navbar__mobile { display: none; }
  .mobile-nav { display: none !important; }
  .nav-menu { display: flex; }
  .nav-cta { display: flex; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .service-layout { grid-template-columns: 1fr 320px; }
  .blog-article__layout { grid-template-columns: 1fr 320px; }
  .blog-article__layout .blog-sidebar { position: sticky; top: calc(var(--header-height) + 1rem); align-self: start; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card--featured { grid-column: 1 / -1; flex-direction: row; }
  .blog-card--featured .blog-card__media { flex: 0 0 48%; aspect-ratio: auto; min-height: 280px; }
  .blog-card--featured .blog-card__body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2rem; }
  .service-sidebar { position: sticky; top: calc(var(--header-height) + 1rem); align-self: start; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.35fr 1fr 1fr 1.25fr; gap: 2.5rem; }
  .footer__grid > .footer__col:nth-child(2) .footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
  }
  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1280px) {
  .container { padding: 0 2rem; }
}

@media (max-width: 1023px) {
  :root { --header-height: 64px; }
  .navbar { padding: 0.55rem 0; }
  .logo img { height: 42px; }
  .header.hidden { transform: none; }
  .floating-actions {
    bottom: 0; right: 0; left: 0; flex-direction: row;
    background: rgba(10,43,83,.96);
    backdrop-filter: blur(12px);
    padding: 0.65rem 1rem; gap: 0.65rem;
    box-shadow: 0 -6px 24px rgba(0,0,0,.25);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .fab {
    flex: 1; width: auto; height: 46px;
    border-radius: 12px;
    box-shadow: none;
  }
  .fab:hover { transform: none; }
  .fab-label { display: none; }
  .back-to-top { bottom: 76px; left: 16px; width: 44px; height: 44px; }
  body { padding-bottom: 68px; }
  .mega-menu { display: none; }
}

@media (max-width: 767px) {
  section { padding: 3.5rem 0; }
  .service-list-card { flex-direction: column; }
  .project-nav { flex-direction: column; }

  /* Blog — mobil */
  .blog-index,
  .blog-article { padding-bottom: 0; }
  .blog-index .section-header h2,
  .blog-index .section-header p {
    text-align: left;
  }
  .blog-grid { gap: 1.25rem; }
  .blog-card__body { padding: 1.1rem 1.15rem 1.3rem; }
  .blog-card__title {
    font-size: 1.05rem;
    line-height: 1.4;
    word-break: break-word;
  }
  .blog-card__excerpt { font-size: .9rem; }
  .blog-card__category {
    left: .75rem;
    top: .75rem;
    font-size: .7rem;
    max-width: calc(100% - 1.5rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .blog-article__main {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-md);
  }
  .blog-article__figure {
    margin: 0 0 1.15rem;
    border-radius: var(--radius-sm);
  }
  .blog-article__content.service-content {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .blog-article__content.service-content h2 {
    font-size: 1.15rem;
    margin: 1.5rem 0 .75rem;
    line-height: 1.35;
  }
  .blog-article__content.service-content h3 {
    font-size: 1.02rem;
    margin: 1.25rem 0 .6rem;
    line-height: 1.35;
  }
  .blog-article__content.service-content p,
  .blog-article__content.service-content li {
    font-size: .95rem;
  }
  .blog-article__content.service-content ul {
    margin-left: 1rem;
    padding-left: .35rem;
  }
  .blog-article__content.service-content p:first-of-type {
    font-size: 1rem;
  }
  .blog-article__cta {
    margin-top: 1.5rem;
    padding: 1.1rem;
  }
  .blog-article__cta .btn-primary { width: 100%; justify-content: center; }
  .blog-article__footer {
    flex-direction: column;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }
  .blog-article__footer .btn-primary,
  .blog-article__footer .btn-outline-dark {
    width: 100%;
    justify-content: center;
  }
  .blog-sidebar {
    display: grid;
    gap: 1rem;
    margin-top: .5rem;
  }
  .blog-sidebar .sidebar-card { padding: 1.15rem; }
  .blog-sidebar .blog-sidebar__posts a {
    display: block;
    word-break: break-word;
    line-height: 1.4;
  }
  .blog-article .page-hero {
    padding: 6.5rem 0 2.75rem;
  }
  .blog-article .page-hero h1 {
    font-size: clamp(1.35rem, 5.2vw, 1.85rem);
    line-height: 1.25;
    word-break: break-word;
  }
  .blog-article .page-hero p {
    font-size: .95rem;
    line-height: 1.55;
  }
  .blog-article .breadcrumb {
    font-size: .78rem;
    line-height: 1.45;
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
  }
  .blog-index .page-hero {
    padding: 6.5rem 0 2.75rem;
  }
  .blog-index .page-hero h1 {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
  }
}

@media (max-width: 480px) {
  .blog-card__media { aspect-ratio: 16 / 11; }
  .blog-article__main { padding: 1rem .85rem; }
  .container { padding: 0 1rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .blog-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .blog-card--featured { flex-direction: column; }
  .blog-card--featured .blog-card__media {
    flex: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .blog-card--featured .blog-card__body { padding: 1.5rem; }
  .blog-article__layout { gap: 1.5rem; }
}
