/* 공통 반응형 스타일: 모든 페이지에서 마지막에 불러옵니다. */

@media (max-width: 1040px) {
  .nav-wrap {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .brand {
    padding-left: 20px;
  }

  .nav-links {
    gap: 4px;
    padding-left: 34px;
  }

  .nav-links a {
    padding: 0 9px;
    font-size: 11px;
  }

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

  .price-card:last-child {
    grid-column: 1 / -1;
    min-height: 390px;
  }

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

@media (max-width: 820px) {
  .site-header {
    padding-top: 0;
  }

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

  .nav-wrap {
    grid-template-columns: 1fr;
    border-radius: 0 0 10px 10px;
  }

  .brand {
    min-height: 64px;
    justify-content: center;
  }

  .brand::after {
    display: none;
  }

  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 8px 10px;
    border-top: 1px solid var(--line);
    scrollbar-width: thin;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

  .page-content {
    padding-top: 10px;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(270px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .price-card,
  .price-card:last-child {
    grid-column: auto;
    min-height: 450px;
    scroll-snap-align: start;
  }

  .calculator,
  .cta {
    grid-template-columns: 1fr;
  }

  .quick-consult {
    top: auto;
    right: 12px;
    bottom: 66px;
    transform: none;
  }

  .quick-consult a {
    width: 56px;
    min-height: 56px;
    border-radius: 50%;
    font-size: 10px;
  }
}

@media (max-width: 580px) {
  .shell {
    width: min(100% - 16px, var(--container));
  }

  .brand {
    justify-content: flex-start;
    padding: 0 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .hero-panel {
    min-height: auto;
    padding: 25px 20px;
  }

  .hero-panel h1 {
    font-size: 28px;
  }

  .section-panel,
  .check-panel {
    padding: 18px 14px;
  }

  .option-grid,
  .extra-grid,
  .steps,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .cta {
    padding: 18px;
  }

  .cta-actions,
  .cta-actions .button {
    width: 100%;
  }

  .footer-links {
    gap: 14px 20px;
  }

  .footer-copy {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Blue palette refresh based on title.png */
:root {
  --bg: #22262c;
  --bg-deep: #151920;
  --header: #121921;
  --panel: #121921;
  --panel-deep: #20252d;
  --line: rgba(178, 205, 235, 0.14);
  --text: #fff;
  --muted: #c0c7d2;
  --muted-2: #8d96a5;
  --accent: #0087ff;
  --accent-2: #23b7ff;
  --accent-soft: rgba(0, 135, 255, 0.18);
  --brand-blue: #008dff;
  --brand-blue-deep: #004ed0;
  --brand-blue-soft: rgba(0, 141, 255, 0.18);
  --shadow: 0 22px 54px rgba(3, 6, 12, 0.34);
  --shadow-soft: 0 14px 34px rgba(3, 6, 12, 0.24);
}

body {
  /* background:
    linear-gradient(rgba(44, 47, 51, 0.88), rgba(28, 32, 39, 0.94)),
    radial-gradient(circle at 14% 9%, rgba(0, 141, 255, 0.28), transparent 25%),
    radial-gradient(
      circle at 86% 26%,
      rgba(235, 242, 255, 0.13),
      transparent 24%
    ),
    linear-gradient(135deg, #5a5d61 0%, #2b3038 42%, #161a22 100%); */
}

body::before {
  /* opacity: 0.28;
  background-image:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.035),
      transparent
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 88px
    ); */
}

.nav-wrap {
  border-color: rgba(184, 211, 243, 0.16);
  background: #0e1319;
  box-shadow:
    0 18px 42px rgba(3, 6, 12, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brand {
  min-width: 0;
  min-height: 72px;
  padding: 0 22px;
  /* background: */
  /* linear-gradient(110deg, rgba(19, 23, 31, 0.92), rgba(55, 61, 70, 0.74)); */
}

.brand::after {
  background: linear-gradient(
    110deg,
    rgba(19, 23, 31, 0.9),
    rgba(55, 61, 70, 0.7)
  );
}

.brand-logo {
  width: auto;
  max-width: min(258px, 44vw);
  height: clamp(50px, 5.8vw, 74px);
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.18))
    drop-shadow(0 12px 16px rgba(0, 0, 0, 0.38));
}

.nav-links a {
  letter-spacing: 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: #2a79e0;
}

.home-hero,
.hero-panel,
.portfolio-intro,
.inquiry-hero,
.support-hero,
.home-contact-panel,
.portfolio-cta,
.cta,
.cta-panel {
  border-color: rgba(186, 214, 247, 0.17);
  background: #121921;
  box-shadow:
    0 18px 42px rgba(3, 6, 12, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-slide,
.hero-slide:nth-child(2),
.hero-slide:nth-child(3) {
  background: #0a1a2a;
}

.content-panel,
.section-panel,
.check-panel,
.price-card,
.portfolio-card,
.portfolio-toolbar,
.portfolio-board,
.notice-banner,
.faq-panel,
.contact-panel,
.inquiry-panel,
.hero-side-card,
.topic-box,
.prep-card,
.guide-step,
.mini-card,
.step,
details {
  border-color: rgba(186, 214, 247, 0.13);
}

.button,
.price-button,
.support-submit,
.cta-button {
  color: #fff;
  background: #2a79e0;
  box-shadow:
    0 10px 24px rgba(0, 94, 220, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button.secondary {
  border-color: rgb(62 99 143);
  color: #fff;
  background: rgb(13 25 39);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-actions .button:first-child {
  color: #fff;
  background: #2a79e0;
  text-shadow: none;
}

:is(
  .hero-copy h1,
  .hero-copy h2,
  .home-section-head h2,
  .featured-content h3,
  .home-contact-panel h2,
  .portfolio-intro h1,
  .portfolio-cta h2,
  .modal-content h2,
  .hero-panel h1,
  .price-card h2,
  .panel-title,
  .section-head h2,
  .cta h2,
  .inquiry-hero h1,
  .hero-side-card h2,
  .notice-body h2,
  .guide-head h2,
  .cta-panel h2,
  .support-hero h1,
  .section-heading h2
) {
  color: #f7f9ff;
  background: none;
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0;
  filter: none;
  text-shadow: none;
}

:is(
  .hero-copy h1,
  .hero-copy h2,
  .home-section-head h2,
  .featured-content h3,
  .home-contact-panel h2,
  .portfolio-intro h1,
  .portfolio-cta h2,
  .modal-content h2,
  .hero-panel h1,
  .price-card h2,
  .panel-title,
  .section-head h2,
  .cta h2,
  .inquiry-hero h1,
  .hero-side-card h2,
  .notice-body h2,
  .guide-head h2,
  .cta-panel h2,
  .support-hero h1,
  .section-heading h2
)::after {
  content: none;
}

:is(
  .hero-copy h1,
  .hero-copy h2,
  .home-section-head h2,
  .featured-content h3,
  .home-contact-panel h2,
  .portfolio-intro h1,
  .portfolio-cta h2,
  .modal-content h2,
  .hero-panel h1,
  .price-card h2,
  .panel-title,
  .section-head h2,
  .cta h2,
  .inquiry-hero h1,
  .hero-side-card h2,
  .notice-body h2,
  .guide-head h2,
  .cta-panel h2,
  .support-hero h1,
  .section-heading h2
)::before {
  -webkit-text-fill-color: initial;
}

.panel-title {
  align-items: center;
  gap: 10px;
}

.panel-title::before {
  flex: 0 0 auto;
  width: 5px;
  height: 22px;
  border-radius: 999px;
  background: #2a79e0;
  box-shadow:
    0 0 14px rgba(0, 141, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

:is(
  .portfolio-card-title h2,
  .portfolio-card-head h3,
  .calc-options h3,
  .calc-result h3,
  .mini-card h3,
  .step h3,
  .guide-step h3,
  .prep-card strong,
  .faq-item summary strong
) {
  color: #f8fbff;
  text-shadow: none;
}

:is(
  .portfolio-card-title h2,
  .portfolio-card-head h3,
  .calc-options h3,
  .calc-result h3,
  .mini-card h3,
  .step h3,
  .guide-step h3,
  .prep-card strong,
  .faq-item summary strong
)::after {
  content: none;
}

.portfolio-card-title span,
.portfolio-card-head span,
.project-category,
.section-kicker,
.hero-kicker,
.portfolio-kicker,
.support-kicker,
.eyebrow,
.topic-caption,
.mini-kicker,
.guide-kicker,
.modal-category {
  color: #5e89bc;
  letter-spacing: 0;
  text-shadow: none;
}

@media (max-width: 820px) {
  .brand {
    min-height: 70px;
  }

  .brand-logo {
    max-width: min(320px, 76vw);
    height: clamp(50px, 12vw, 70px);
  }
}
