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

  .gnb {
    gap: 22px;
    font-size: 16px;
  }

  .logo-city {
    font-size: 25px;
  }

  .logo-service {
    font-size: 21px;
  }

  .gnb-dropdown-panel {
    left: clamp(0px, var(--gnb-dropdown-left, 360px), calc(100% - 424px));
  }

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

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

  .map-workspace {
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .map-detail-card {
    grid-column: 1 / -1;
    margin: 0;
    border-radius: 0;
  }

  .preview-shell {
    display: flex;
    height: 100vh;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .preview-nav {
    flex: 0 0 auto;
    max-height: none;
    overflow: hidden;
    padding: 20px 16px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .preview-nav p {
    margin-bottom: 14px;
  }

  .preview-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .preview-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }

  .preview-stage {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(var(--container), calc(100% - 40px));
  }

  .site-header {
    height: var(--header-height);
  }

  .gnb {
    display: none;
  }

  .gnb-dropdown {
    display: none;
  }

  .utility-link,
  .header-actions > .login-pill {
    display: none;
  }

  .logo-city {
    font-size: 22px;
  }

  .logo-service {
    font-size: 18px;
  }

  .page-visual {
    padding: 0 20px;
  }

  .page-visual-inner {
    min-height: 260px;
    border-radius: 0 0 42px 42px;
  }

  .page-main {
    padding-block: 74px 110px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    min-height: 470px;
  }

  .hero-copy {
    padding: 54px 36px;
  }

  .hero-visual {
    display: none;
  }

  .quick-filter {
    grid-template-columns: 1fr 1fr;
  }

  .quick-submit {
    min-height: 72px;
  }

  .frequent-section,
  .map-preview,
  .program-strip,
  .news-layout,
  .intro-layout,
  .split-layout,
  .smart-intro-card,
  .auth-layout,
  .reservation-layout,
  .detail-layout,
  .mypage-layout {
    grid-template-columns: 1fr;
  }

  .smart-intro-photo {
    min-height: 240px;
    margin: -34px 24px 0;
  }

  .help-box {
    max-width: 360px;
  }

  .card-grid.three,
  .card-grid.two,
  .service-route-grid,
  .summary-stats,
  .sitemap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-side,
  .reservation-summary,
  .mypage-side {
    position: static;
  }

  .mypage-layout,
  .mypage-side,
  .mypage-content {
    min-width: 0;
    max-width: 100%;
  }

  .mypage-content {
    width: 100%;
  }

  .mypage .table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }

  .mypage .board-table {
    width: 100%;
    min-width: 0;
  }

  .board-list-head {
    display: grid;
    gap: 24px;
    align-items: stretch;
  }

  .board-list-head .content-toolbar {
    width: 100%;
    min-width: 0;
  }

  .board-list-page .table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }

  .board-list-page .board-table {
    width: 100%;
    min-width: 0;
  }

  .find-page .email-inputs {
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) minmax(0, 160px);
  }

  .find-page .email-inputs select {
    min-width: 0;
  }

  .reservation-complete-info {
    width: 100%;
    max-width: 100%;
  }

  .depth-three {
    right: 24px;
    left: auto;
  }

  .map-workspace {
    grid-template-columns: 1fr;
  }

  .map-canvas-large {
    min-height: 520px;
  }

  .map-list {
    max-height: none;
  }

  .preview-stage {
    padding: 12px;
  }

  .preview-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .site-header .site-logo {
    height: 20px;
  }

  .site-header .logo-header-mark {
    width: 61.43px;
    height: 20px;
  }

  .site-header .logo-header-city {
    width: 63.19px;
    height: 20px;
  }

  .site-header .logo-header-service {
    width: 111.5px;
    height: 20px;
  }

  .site-header .logo-divider {
    height: 14px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: max-content;
    color: #09090b;
  }

  .hero-character {
    display: block;
    position: absolute;
    right: 63px;
    bottom: 248px;
    z-index: 1;
    width: 185px;
    height: 180px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .header-inner {
    gap: 10px;
  }

  .site-logo {
    gap: 7px;
  }

  .logo-mark {
    width: 14px;
    height: 14px;
  }

  .logo-city {
    font-size: 19px;
  }

  .logo-service {
    font-size: 16px;
  }

  .login-pill {
    display: none;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .home-hero,
  .page-visual {
    padding-inline: 0;
  }

  .hero-panel,
  .page-visual-inner {
    border-radius: 0 0 30px 30px;
  }

  .hero-copy {
    padding: 46px 24px 68px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-actions,
  .carousel-controls,
  .section-heading.inline,
  .profile-panel,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-filter,
  .service-grid,
  .smart-target-grid,
  .card-grid.three,
  .card-grid.two,
  .service-route-grid,
  .summary-stats,
  .feature-grid,
  .process-list,
  .facility-stats,
  .sitemap-grid,
  .form-grid.two,
  .info-grid,
  .step-indicator {
    grid-template-columns: 1fr;
  }

  .quick-filter {
    margin-top: -28px;
  }

  .frequent-section {
    margin-top: 40px;
  }

  .map-preview-band {
    margin-top: 70px;
    padding-block: 70px;
  }

  .content-section + .content-section {
    margin-top: 70px;
  }

  .smart-intro-page .page-main {
    padding-block: 64px;
  }

  .smart-intro-page .page-visual {
    padding: 0 20px 32px;
  }

  /* 배경은 figma-match.css의 모바일 공통 규칙(.page-visual-inner.container)이 담당한다.
     여기서는 이 페이지만의 크기/모양만 지정할 것. */
  .smart-intro-page .page-visual-inner.container {
    width: 100%;
    min-height: 200px;
    border-radius: 32px;
    background-color: transparent;
  }

  .smart-intro-page .page-visual h1 {
    max-width: 280px;
  }

  .smart-intro-page .content-section + .content-section {
    margin-top: 64px;
  }

  .smart-intro-section {
    gap: 32px;
  }

  .smart-intro-heading h2 {
    font-size: 32px;
    line-height: 1.5;
  }

  .smart-intro-heading span {
    display: none;
  }

  .smart-intro-page .smart-intro-heading span {
    display: block;
    width: 65px;
    height: 40px;
  }

  /* 모바일에서는 카드(.smart-intro-card)를 테두리·배경을 가진 하나의
     컨테이너로 삼고, 그 안에 글(.smart-intro-copy)과 사진(.smart-intro-photo)을
     세로로 쌓는다. 사진이 카드 안쪽 아래에 들어오도록 하기 위함. */
  .smart-intro-page .smart-intro-card {
    min-height: 0;
    padding: 32px;
    border: 2px solid #6eba2c;
    border-radius: 32px 48px 32px 32px;
    background-color: #ffffff;
    background-image: url("../images/ui/smart-intro-copy-bg.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow: hidden;
  }

  /* 글 상자의 테두리·배경·패딩은 카드로 옮겼으므로 여기서는 비운다. */
  .smart-intro-copy {
    min-height: 0;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .smart-intro-copy h3 {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 25px;
    line-height: 1.5;
  }

  .smart-intro-copy h3 br {
    display: block;
  }

  .smart-intro-copy h3 .smart-intro-title-body {
    display: block;
  }

  .smart-intro-copy p {
    font-size: 17px;
    line-height: 1.5;
  }

  .smart-intro-copy p + p {
    margin-top: 16px;
  }

  .smart-intro-photo {
    min-height: 0;
    margin-inline: 0;
  }

  /* 사진은 카드 안쪽 아래에 둥근 사각형(알약 아님)으로 배치한다. */
  .smart-intro-page .smart-intro-photo {
    position: static;
    z-index: auto;
    width: 100%;
    height: 80px;
    min-height: 0;
    aspect-ratio: 5 / 2;
    margin: 24px 0 0;
    border-radius: 999px;
    background-position: center;
  }

  .leaf-title {
    margin-bottom: 20px;
    font-size: 25px;
    line-height: 1.5;
  }

  .smart-target-grid article {
    min-height: 0;
    gap: 20px;
    padding: 30px 32px 24px;
    border-radius: 32px;
    font-size: 19px;
    line-height: 1.5;
    font-weight: 400;
  }

  .target-icon {
    width: 100px;
    height: 100px;
  }

  .target-icon::before {
    inset: 31px;
  }

  .smart-business-lead {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 400;
  }

  .smart-business-list {
    gap: 8px;
    padding: 24px 32px;
    border-radius: 32px;
    line-height: 1.5;
  }

  .section-heading h2,
  .page-visual h1 {
    font-size: 34px;
  }

  .page-visual-inner {
    min-height: 220px;
  }

  .breadcrumbs {
    flex-wrap: wrap;
    margin-bottom: 18px;
    font-size: 13px;
  }

  .content-toolbar,
  .search-input-row,
  .large-search-form div,
  .verify-row,
  .auth-links {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-panel,
  .form-panel,
  .terms-panel,
  .detail-article,
  .board-detail,
  .terms-doc,
  .result-panel {
    padding: 24px;
  }

  .map-sidebar,
  .map-detail-card {
    padding: 20px;
  }

  .map-canvas-large,
  .mini-map {
    min-height: 360px;
  }

  .top-button {
    right: 16px;
    bottom: 24px;
  }

  .site-footer {
    padding-block: 82px 56px;
  }

  .footer-links {
    gap: 14px;
    margin-top: 34px;
  }

  .preview-actions {
    width: 100%;
    justify-content: space-between;
  }

  .viewport-controls {
    max-width: 100%;
    overflow-x: auto;
  }

  .viewport-button {
    min-width: 58px;
  }

  .preview-shell {
    display: flex;
    height: 100vh;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .preview-nav {
    flex: 0 0 auto;
    max-height: none;
    overflow: hidden;
    padding: 18px 12px 10px;
  }

  .preview-nav h1 {
    font-size: 22px;
  }

  .preview-nav p {
    margin: 4px 0 12px;
    font-size: 12px;
  }

  .preview-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .preview-card {
    flex: 0 0 226px;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 10px;
    scroll-snap-align: start;
  }

  .preview-no {
    width: 34px;
    height: 34px;
  }

  .preview-stage {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    gap: 8px;
    padding: 10px;
  }

  .preview-bar {
    align-items: stretch;
    gap: 8px;
  }

  .preview-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .preview-meta span {
    font-size: 12px;
  }

  .current-open {
    min-width: 58px;
    justify-content: center;
    padding-inline: 10px;
  }

  .frame-wrap {
    justify-content: center;
    padding: 8px;
  }
}
