@media (max-width: 1440px) {
  .container,
  .narrow {
    width: min(1160px, calc(100% - 48px));
  }
}

@media (max-width: 1200px) {
  .container,
  .narrow {
    width: min(1040px, calc(100% - 40px));
  }

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

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

@media (max-width: 992px) {
  .section-pad {
    padding: 72px 0;
  }

  .hero {
    padding: 86px 0 72px;
  }

  .hero-grid,
  .split,
  .two-col,
  .content-grid,
  .contact-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 680px;
    margin-inline: auto;
  }

  .cards-grid,
  .news-grid,
  .feature-list,
  .advantage-grid,
  .values-grid,
  .info-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .article-layout .sidebar-card {
    position: static;
  }

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

@media (max-width: 768px) {
  .container,
  .narrow {
    width: min(100% - 32px, 720px);
  }

  .navbar {
    min-height: 68px;
  }

  .brand span:last-child {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: fixed;
    inset: 68px 16px auto 16px;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(248, 251, 255, 0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link,
  .nav-cta {
    justify-content: center;
    width: 100%;
    margin-left: 0;
    min-height: 46px;
  }

  .hero,
  .page-hero {
    text-align: left;
  }

  .hero-tags,
  .keyword-row {
    justify-content: flex-start;
  }

  .section-head {
    text-align: left;
  }

  .cards-grid,
  .news-grid,
  .feature-list,
  .advantage-grid,
  .values-grid,
  .info-grid,
  .case-grid,
  .solution-grid,
  .faq-grid,
  .stat-grid,
  .stats-band .stat-grid {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 26px;
  }

  .service-number {
    font-size: 30px;
  }

  .detail-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 430px) {
  .container,
  .narrow {
    width: min(100% - 28px, 430px);
  }

  h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  h2 {
    font-size: 28px;
  }

  .brand span:last-child {
    max-width: 176px;
  }

  .hero-actions,
  .contact-strip .split {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .service-card,
  .solution-card,
  .info-card,
  .case-card,
  .news-card,
  .process-card,
  .value-card,
  .stat-card,
  .contact-form,
  .contact-info,
  .article,
  .sidebar-card,
  .problem-panel,
  .solution-panel {
    border-radius: 22px;
    padding: 22px;
  }

  .hero-tags span,
  .audience-grid span,
  .keyword-row span,
  .badge {
    font-size: 14px;
  }
}

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

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .brand span:last-child {
    max-width: 148px;
    font-size: 15px;
  }

  .section-pad {
    padding: 62px 0;
  }

  .hero {
    padding: 72px 0 60px;
  }

  .page-hero {
    padding: 72px 0 56px;
  }
}

@media (max-width: 360px) {
  .container,
  .narrow {
    width: min(100% - 20px, 360px);
  }

  .brand span:last-child {
    max-width: 130px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  .nav-menu {
    inset-inline: 10px;
  }

  .service-card,
  .solution-card,
  .info-card,
  .case-card,
  .news-card,
  .process-card,
  .value-card,
  .stat-card,
  .contact-form,
  .contact-info,
  .article,
  .sidebar-card,
  .problem-panel,
  .solution-panel {
    padding: 18px;
  }
}
