:root {
  --sub-ink: var(--color-ink, #17202c);
  --sub-muted: var(--color-muted, #687385);
  --sub-line: var(--color-line, #d9e0e8);
  --sub-soft: var(--color-soft, #f4f7fa);
  --sub-navy: var(--color-navy, #0f2f57);
  --sub-blue: var(--color-blue, #1d6fb8);
  --sub-white: #fff;
  --sub-shadow: var(--shadow, 0 18px 45px rgba(15, 47, 87, .13));
  --sub-wrap: var(--wrap, 1320px);
}

.wrap {
  width: min(var(--sub-wrap), calc(100% - 48px));
  margin-inline: auto;
}

.sub-visual {
  position: relative;
  min-height: 160px;
  padding-top: 42px;
  overflow: hidden;
  color: var(--sub-white);
  background: #071d45;
}

.sub-visual-media,
.sub-visual-overlay {
  position: absolute;
  inset: 0;
}

.sub-visual-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sub-visual-overlay {
  background: linear-gradient(90deg, rgba(3, 15, 35, .86) 0%, rgba(7, 29, 69, .62) 46%, rgba(7, 29, 69, .26) 100%);
}

.sub-visual-inner {
  position: relative;
  z-index: 1;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 21px 0 19px;
}

.sub-kicker,
.content-head .eyebrow {
  margin: 0 0 12px;
  color: #78b9ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sub-visual h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.sub-visual-inner > p:not(.sub-kicker) {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.breadcrumb a:hover,
.breadcrumb strong {
  color: #fff;
}

.breadcrumb span::before,
.breadcrumb strong::before {
  content: '/';
  margin-right: 8px;
  color: rgba(255, 255, 255, .42);
}

.sub-main {
  padding: 72px 0 96px;
  background: var(--sub-white);
}

.sub-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.lnb {
  position: sticky;
  top: 108px;
  border-top: 2px solid var(--sub-navy);
}

.lnb h2 {
  margin: 0;
  padding: 24px 0 18px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.lnb nav {
  border-top: 1px solid var(--sub-line);
}

.lnb a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 15px 0;
  border-bottom: 1px solid var(--sub-line);
  color: #334155;
  font-weight: 800;
  transition: color .18s ease, padding .18s ease;
}

.lnb a em {
  color: var(--sub-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
}

.lnb a:hover,
.lnb a.active {
  color: var(--sub-blue);
  padding-left: 10px;
}

.lnb a.active em {
  color: var(--sub-blue);
}

.sub-content {
  min-width: 0;
}

.content-head {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--sub-line);
}

.content-head h2 {
  max-width: 780px;
  margin: 0;
  color: var(--sub-ink);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.18;
  letter-spacing: -.02em;
}

.content-head p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--sub-muted);
  font-size: 18px;
}

.content-section {
  padding-top: 42px;
}

.content-section + .content-section {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--sub-line);
}

.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr);
  gap: 42px;
  align-items: center;
}

.content-split.reverse > :first-child {
  order: 2;
}

.content-media,
.sub-page-image {
  overflow: hidden;
  border-radius: 8px;
  background: var(--sub-soft);
  box-shadow: var(--sub-shadow);
}

.content-media img,
.sub-page-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.prose h3 {
  margin: 0 0 16px;
  color: var(--sub-ink);
  font-size: 28px;
  line-height: 1.28;
  letter-spacing: -.02em;
}

.prose p {
  margin: 0 0 14px;
  color: #4b5565;
  font-size: 17px;
}

.content-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--sub-line);
  border-radius: 8px;
  background: #fff;
}

.content-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--sub-blue);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
}

.content-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.content-card p {
  margin: 0;
  color: var(--sub-muted);
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--sub-navy);
}

.content-table th,
.content-table td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--sub-line);
  text-align: left;
  vertical-align: top;
}

.content-table th {
  width: 180px;
  color: var(--sub-navy);
  background: #f8fafc;
}

.board-list,
.board-view {
  border-top: 2px solid var(--sub-navy);
}

.board-list .board-row,
.board-view .board-head,
.board-view .board-body {
  padding: 20px 0;
  border-bottom: 1px solid var(--sub-line);
}

.board-row a {
  font-weight: 800;
}

.board-meta {
  margin-top: 6px;
  color: var(--sub-muted);
  font-size: 14px;
}

.btn-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--sub-navy);
  border-radius: 999px;
  color: #fff;
  background: var(--sub-navy);
  font-weight: 900;
}

.btn-sub.btn-line {
  color: var(--sub-navy);
  background: #fff;
}

@media (max-width: 1024px) {
  .sub-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 36px;
  }

  .content-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sub-visual {
    min-height: 120px;
    padding-top: 32px;
  }

  .sub-visual-inner {
    min-height: 88px;
    padding: 15px 0;
  }

  .sub-visual-inner > p:not(.sub-kicker) {
    font-size: 16px;
  }

  .sub-main {
    padding: 38px 0 72px;
  }

  .sub-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .lnb {
    position: static;
    border-top: 0;
  }

  .lnb h2 {
    padding: 0 0 14px;
    font-size: 20px;
  }

  .lnb nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    border-top: 0;
    scrollbar-width: thin;
  }

  .lnb a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--sub-line);
    border-radius: 999px;
    background: #fff;
  }

  .lnb a em {
    display: none;
  }

  .lnb a:hover,
  .lnb a.active {
    padding-left: 16px;
    color: #fff;
    border-color: var(--sub-blue);
    background: var(--sub-blue);
  }

  .content-head {
    padding-bottom: 28px;
  }

  .content-card-grid {
    grid-template-columns: 1fr;
  }

  .content-table th,
  .content-table td {
    display: block;
    width: 100%;
  }

  .content-table td {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 32px, var(--sub-wrap));
  }

  .sub-visual h1 {
    font-size: 32px;
  }

  .breadcrumb {
    font-size: 13px;
  }

  .content-head p:not(.eyebrow),
  .prose p {
    font-size: 16px;
  }

  .content-media img,
  .sub-page-image img {
    min-height: 230px;
  }
}
/* Purpose page */
.purpose-page .content-head {
  max-width: 860px;
}

.purpose-intro {
  padding-top: 36px;
}

.purpose-visual-card {
  display: grid;
  grid-template-columns: minmax(340px, .92fr) minmax(0, 1.08fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--sub-line);
  border-radius: 8px;
  background: #fff;
}

.purpose-visual {
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  background: #e9eef4;
}

.purpose-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purpose-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 48px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef5fb 100%);
}

.purpose-summary span,
.section-title-row .eyebrow,
.purpose-flow-head .eyebrow,
.purpose-notice .eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--sub-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.purpose-summary h3,
.section-title-row h3,
.purpose-flow-head h3,
.purpose-notice h3 {
  margin: 0;
  color: var(--sub-ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.purpose-summary p,
.purpose-flow-head p {
  margin: 20px 0 0;
  color: var(--sub-muted);
  font-size: 17px;
  line-height: 1.85;
  word-break: keep-all;
}

.section-title-row {
  margin-bottom: 24px;
}

.purpose-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--sub-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.purpose-card {
  min-height: 230px;
  padding: 30px 26px;
  border-right: 1px solid var(--sub-line);
}

.purpose-card:last-child {
  border-right: 0;
}

.purpose-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(0, 91, 172, .1);
  color: var(--sub-blue);
  font-size: 15px;
  font-weight: 900;
}

.purpose-card h4 {
  margin: 0 0 12px;
  color: var(--sub-ink);
  font-size: 22px;
  line-height: 1.35;
  word-break: keep-all;
}

.purpose-card p {
  margin: 0;
  color: var(--sub-muted);
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
}

.purpose-flow-section {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 44px;
  align-items: start;
}

.purpose-flow {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: purpose-step;
}

.purpose-flow li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px 24px;
  padding: 24px 26px;
  border: 1px solid var(--sub-line);
  border-radius: 8px;
  background: #fff;
}

.purpose-flow li span {
  grid-row: span 2;
  color: var(--sub-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.purpose-flow li strong {
  color: var(--sub-ink);
  font-size: 22px;
  line-height: 1.35;
}

.purpose-flow li p {
  margin: 0;
  color: var(--sub-muted);
  line-height: 1.75;
  word-break: keep-all;
}

.purpose-notice {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 34px;
  align-items: start;
  padding: 34px;
  border: 1px solid rgba(0, 91, 172, .22);
  border-radius: 8px;
  background: #f5f9fd;
}

.purpose-notice ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.purpose-notice li {
  position: relative;
  padding-left: 18px;
  color: var(--sub-muted);
  line-height: 1.75;
  word-break: keep-all;
}

.purpose-notice li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--sub-blue);
}

@media (max-width: 1180px) {
  .purpose-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .purpose-card:nth-child(2n) {
    border-right: 0;
  }

  .purpose-card:nth-child(n+3) {
    border-top: 1px solid var(--sub-line);
  }
}

@media (max-width: 920px) {
  .purpose-visual-card,
  .purpose-flow-section,
  .purpose-notice {
    grid-template-columns: 1fr;
  }

  .purpose-visual {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .purpose-summary,
  .purpose-card,
  .purpose-notice {
    padding: 24px;
  }

  .purpose-card-grid {
    grid-template-columns: 1fr;
  }

  .purpose-card,
  .purpose-card:nth-child(2n) {
    border-right: 0;
  }

  .purpose-card + .purpose-card {
    border-top: 1px solid var(--sub-line);
  }

  .purpose-flow li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .purpose-flow li span {
    grid-row: auto;
  }
}
/* History page */
.history-page .content-head {
  max-width: 900px;
}

.history-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 22px;
  padding-top: 36px;
}

.history-highlight,
.history-status-card {
  border: 1px solid var(--sub-line);
  border-radius: 8px;
  background: #fff;
}

.history-highlight {
  padding: 42px 46px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef5fb 100%);
}

.history-highlight span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 38px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--sub-blue);
  color: #fff;
  font-weight: 900;
}

.history-highlight h3 {
  margin: 0;
  color: var(--sub-ink);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.history-highlight p,
.history-status-card p,
.history-plan-grid p {
  margin: 18px 0 0;
  color: var(--sub-muted);
  font-size: 16px;
  line-height: 1.8;
  word-break: keep-all;
}

.history-status-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border-color: rgba(0, 91, 172, .22);
  background: #f5f9fd;
}

.history-status-card strong {
  color: var(--sub-blue);
  font-size: 22px;
}

.history-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--sub-ink);
}

.history-timeline li {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 34px;
  padding: 30px 0;
  border-bottom: 1px solid var(--sub-line);
}

.history-timeline time {
  color: var(--sub-blue);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
}

.history-timeline strong {
  display: block;
  color: var(--sub-ink);
  font-size: 24px;
  line-height: 1.35;
  word-break: keep-all;
}

.history-timeline p {
  margin: 10px 0 0;
  color: var(--sub-muted);
  font-size: 16px;
  line-height: 1.8;
  word-break: keep-all;
}

.history-timeline .is-pending time,
.history-timeline .is-pending strong {
  color: #7a8796;
}

.history-plan {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 36px;
  align-items: start;
  padding: 34px;
  border: 1px solid rgba(0, 91, 172, .18);
  border-radius: 8px;
  background: #f8fafc;
}

.history-plan-head .eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--sub-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-plan-head h3 {
  margin: 0;
  color: var(--sub-ink);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.2;
  word-break: keep-all;
}

.history-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.history-plan-grid article {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--sub-line);
  border-radius: 8px;
  background: #fff;
}

.history-plan-grid strong {
  color: var(--sub-blue);
  font-size: 20px;
}

@media (max-width: 920px) {
  .history-overview,
  .history-plan {
    grid-template-columns: 1fr;
  }

  .history-timeline li {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .history-highlight,
  .history-status-card,
  .history-plan,
  .history-plan-grid article {
    padding: 24px;
  }

  .history-plan-grid {
    grid-template-columns: 1fr;
  }

  .history-timeline time,
  .history-timeline strong {
    font-size: 21px;
  }
}
/* Location page */
.location-page .content-head {
  max-width: 920px;
}

.location-map-section {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: 28px;
  align-items: stretch;
  padding-top: 36px;
}

.location-map-card,
.location-info-panel,
.location-guide-section {
  border: 1px solid var(--sub-line);
  border-radius: 8px;
  background: #fff;
}

.location-map-card {
  overflow: hidden;
}

.location-map-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  border-bottom: 1px solid var(--sub-line);
}

.location-map-head .eyebrow,
.location-info-panel > span,
.location-guide-head .eyebrow {
  display: block;
  margin: 0 0 10px;
  color: var(--sub-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.location-map-head h3,
.location-info-panel h3,
.location-guide-head h3,
.location-photo-section .section-title-row h3 {
  margin: 0;
  color: var(--sub-ink);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.2;
  word-break: keep-all;
}

.location-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--sub-line);
  border-radius: 999px;
  color: var(--sub-ink);
  font-weight: 800;
  white-space: nowrap;
}

.kakao-map-wrap {
  position: relative;
  width: 100%;
  min-height: 430px;
  overflow: hidden;
  background: #edf2f7;
}

.kakao-map-wrap .root_daum_roughmap,
.kakao-map-wrap .root_daum_roughmap .wrap_map,
.kakao-map-wrap .root_daum_roughmap .wrap_controllers,
.kakao-map-wrap .root_daum_roughmap_landing {
  width: 100% !important;
  max-width: 100% !important;
}

.kakao-map-wrap .root_daum_roughmap .wrap_map {
  height: 430px !important;
}

.location-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef5fb 100%);
}

.location-info-panel dl {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
}

.location-info-panel dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(13, 42, 73, .12);
}

.location-info-panel dt {
  color: var(--sub-blue);
  font-weight: 900;
}

.location-info-panel dd {
  margin: 0;
  color: var(--sub-ink);
  font-weight: 800;
  line-height: 1.6;
  word-break: keep-all;
}

.location-info-panel p {
  margin: 24px 0 0;
  color: var(--sub-muted);
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}

.location-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.location-photo-grid figure {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e9eef4;
}

.location-photo-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-photo-grid figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(9, 31, 58, .86);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.location-guide-section {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 34px;
  padding: 34px;
  background: #f8fafc;
}

.location-guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-guide-list li {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--sub-line);
  border-radius: 8px;
  background: #fff;
}

.location-guide-list span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--sub-blue);
  font-size: 18px;
  font-weight: 900;
}

.location-guide-list strong {
  display: block;
  color: var(--sub-ink);
  font-size: 21px;
  line-height: 1.35;
}

.location-guide-list p {
  margin: 10px 0 0;
  color: var(--sub-muted);
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

@media (max-width: 1080px) {
  .location-map-section,
  .location-guide-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .location-map-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .kakao-map-wrap,
  .kakao-map-wrap .root_daum_roughmap .wrap_map {
    min-height: 320px;
    height: 320px !important;
  }

  .location-info-panel,
  .location-guide-section {
    padding: 24px;
  }

  .location-info-panel dl div,
  .location-photo-grid,
  .location-guide-list {
    grid-template-columns: 1fr;
  }

  .location-photo-grid figure {
    min-height: 260px;
  }
}
/* Sub content width alignment lock */
.sub-layout {
  grid-template-columns: 280px minmax(0, calc(var(--sub-wrap) - 336px));
  gap: 56px;
}

.sub-content {
  width: 100%;
  max-width: calc(var(--sub-wrap) - 336px);
  min-width: 0;
  align-self: start;
}

.sub-content > .content-head,
.sub-content > .content-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.sub-content > .content-section {
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
}

.sub-content > .content-section:first-child {
  padding-top: 0;
}

@media (max-width: 1024px) {
  .sub-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 36px;
  }

  .sub-content {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .sub-layout {
    grid-template-columns: 1fr;
  }
}
/* Contact form page */
.contact-form-page .content-head {
  max-width: 920px;
}

.contact-form-section {
  display: grid;
  grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr);
  gap: 34px;
  align-items: start;
}

.contact-form-intro,
.contact-form {
  border: 1px solid var(--sub-line);
  border-radius: 8px;
  background: #fff;
}

.contact-form-intro {
  position: sticky;
  top: 108px;
  padding: 34px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef5fb 100%);
}

.contact-form-intro .eyebrow {
  margin: 0 0 12px;
  color: var(--sub-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-form-intro h3 {
  margin: 0;
  color: var(--sub-ink);
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.2;
  word-break: keep-all;
}

.contact-form-intro ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact-form-intro li {
  position: relative;
  padding-left: 18px;
  color: var(--sub-muted);
  line-height: 1.7;
  word-break: keep-all;
}

.contact-form-intro li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--sub-blue);
}

.contact-form {
  display: grid;
  gap: 22px;
  padding: 34px;
}

.form-hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-grid {
  display: grid;
  gap: 18px;
}

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

.form-field {
  display: grid;
  gap: 10px;
}

.form-field span {
  color: var(--sub-ink);
  font-size: 15px;
  font-weight: 900;
}

.form-field b {
  color: var(--sub-blue);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--sub-line);
  border-radius: 6px;
  background: #fff;
  color: var(--sub-ink);
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field textarea {
  min-height: 180px;
  padding: 16px;
  resize: vertical;
  line-height: 1.7;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--sub-blue);
  box-shadow: 0 0 0 4px rgba(0, 91, 172, .12);
}

.privacy-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(0, 91, 172, .18);
  border-radius: 8px;
  background: #f5f9fd;
  color: var(--sub-muted);
  line-height: 1.65;
  word-break: keep-all;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--sub-blue);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--sub-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 91, 172, .24);
  background: #003f86;
}

.form-actions p {
  margin: 0;
  color: var(--sub-muted);
  font-size: 14px;
  line-height: 1.6;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.contact-modal.is-open {
  display: flex;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 24, .58);
  backdrop-filter: blur(6px);
}

.contact-modal-panel {
  position: relative;
  width: min(100%, 440px);
  padding: 38px 34px 32px;
  border-radius: 12px;
  background: #fff;
  color: var(--sub-ink);
  text-align: center;
  box-shadow: 0 28px 80px rgba(5, 13, 24, .28);
  animation: contactModalIn .28s ease both;
}

.contact-modal-icon {
  display: inline-flex;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(0, 91, 172, .1);
  position: relative;
}

.contact-modal-icon::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 17px;
  width: 16px;
  height: 26px;
  border: solid var(--sub-blue);
  border-width: 0 5px 5px 0;
  transform: rotate(45deg);
}

.contact-modal-error .contact-modal-icon {
  background: rgba(190, 42, 42, .1);
}

.contact-modal-error .contact-modal-icon::before,
.contact-modal-error .contact-modal-icon::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 28px;
  width: 26px;
  height: 4px;
  border: 0;
  background: #be2a2a;
}

.contact-modal-error .contact-modal-icon::before {
  transform: rotate(45deg);
}

.contact-modal-error .contact-modal-icon::after {
  transform: rotate(-45deg);
}

.contact-modal-panel h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.contact-modal-panel p {
  margin: 14px 0 26px;
  color: var(--sub-muted);
  line-height: 1.7;
  word-break: keep-all;
}

.contact-modal-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--sub-blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

@keyframes contactModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1024px) {
  .contact-form-section {
    grid-template-columns: 1fr;
  }

  .contact-form-intro {
    position: static;
  }
}

@media (max-width: 640px) {
  .contact-form,
  .contact-form-intro {
    padding: 24px;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .contact-submit {
    width: 100%;
  }
}