/* =========================================================
   components.css : 버튼 · 헤더 · 푸터 · 카드 · 폼 · 게시판 · 아코디언 · 팝업
   ========================================================= */

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font-sans); border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--c-navy); color: #fff; }
.btn--primary:hover { background: var(--c-navy-soft); box-shadow: var(--shadow-m); }
.btn--outline { background: rgba(255, 255, 255, 0.85); color: var(--c-navy); border-color: var(--c-navy); }
.btn--outline:hover { background: var(--c-navy); color: #fff; }
.btn--white { background: #fff; color: var(--c-navy); }
.btn--white:hover { background: var(--c-icon-bg); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn--ghost-light:hover { background: #fff; color: var(--c-navy); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 52px; padding: 0 30px; font-size: 16px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.link-more {
  display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--font-sans); color: var(--c-ink);
}
.link-more .icon { width: 1em; height: 1em; transition: transform 0.2s; }
.link-more:hover .icon { transform: translateX(3px); }

/* ---------- 헤더 ---------- */
.ts-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent; transition: box-shadow 0.25s, border-color 0.25s;
}
.ts-header.is-scrolled { box-shadow: 0 4px 18px rgba(27, 46, 92, 0.1); border-color: var(--c-line); }
.ts-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 12px; }

.ts-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-navy); }
.ts-logo__mark { width: 38px; height: 38px; flex: none; }
.ts-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.ts-logo__text strong { font: 600 22px/1.1 var(--font-sans); letter-spacing: -0.03em; }
.ts-logo__text em { font: 500 8px/1.3 var(--font-en); letter-spacing: 0.26em; margin-top: 4px; font-style: normal; }
.ts-logo--light { color: #fff; }

.ts-burger {
  position: relative; z-index: 130; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; color: var(--c-navy); margin-right: -8px;
}
.ts-burger .icon { width: 26px; height: 26px; grid-area: 1/1; }
.ts-burger .icon--close { display: none; }
.is-menu-open .ts-burger .icon--menu { display: none; }
.is-menu-open .ts-burger .icon--close { display: block; }

.ts-header__util { display: none; }

/* 모바일 메뉴 패널 */
.ts-gnb {
  position: fixed; inset: 0 0 0 auto; z-index: 120; width: min(86vw, 360px);
  background: #fff; padding: calc(var(--header-h) + 12px) 20px 24px;
  display: flex; flex-direction: column; gap: 20px; overflow-y: auto;
  clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path 0.3s ease, visibility 0.3s;
  box-shadow: -12px 0 40px rgba(19, 35, 74, 0.18);
}
.is-menu-open .ts-gnb { clip-path: inset(0); visibility: visible; }
.ts-dim { position: fixed; inset: 0; z-index: 95; background: rgba(19, 35, 74, 0.45); }

.ts-gnb__list { display: flex; flex-direction: column; }
.ts-gnb__item { position: relative; border-bottom: 1px solid var(--c-line); display: flex; flex-wrap: wrap; align-items: center; }
.ts-gnb__link { flex: 1; padding: 16px 4px; font: 600 17px/1.3 var(--font-sans); color: var(--c-ink); }
.ts-gnb__item.is-current > .ts-gnb__link { color: var(--c-navy); }
.ts-gnb__toggle { width: 44px; height: 44px; display: grid; place-items: center; color: var(--c-muted); }
.ts-gnb__toggle .icon { transition: transform 0.2s; }
.ts-gnb__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.ts-gnb__sub { display: none; width: 100%; padding: 0 0 12px 12px; }
.ts-gnb__item.is-open .ts-gnb__sub { display: block; }
.ts-gnb__sub a { display: block; padding: 10px 8px; font-size: 15px; color: var(--c-text); border-radius: 8px; }
.ts-gnb__sub a:hover { background: var(--c-icon-bg); color: var(--c-navy); }
.ts-gnb__sub small { color: var(--c-muted); font-size: 12px; margin-left: 4px; }
.ts-gnb__foot { margin-top: auto; display: grid; gap: 12px; }
.ts-gnb__sub-title, .ts-mega__aside { display: none; }

.ts-tel { display: inline-flex; align-items: center; gap: 10px; color: var(--c-navy); }
.ts-tel .icon { width: 26px; height: 26px; }
.ts-tel span { display: flex; flex-direction: column; line-height: 1.2; }
.ts-tel strong { font: 700 20px/1.2 var(--font-sans); letter-spacing: -0.01em; }
.ts-tel small { font-size: 11px; color: var(--c-muted); margin-top: 2px; }
.ts-tel--panel { padding: 14px 16px; border-radius: 14px; background: var(--c-icon-bg); }

@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  /* backdrop-filter 는 fixed 자식의 기준 박스를 바꾸므로 모바일 메뉴가 없는 PC에서만 사용 */
  .ts-header { background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .ts-burger, .ts-dim, .ts-gnb__toggle, .ts-gnb__foot { display: none !important; }
  .ts-gnb {
    position: static; inset: auto; width: auto; padding: 0; background: none; box-shadow: none;
    clip-path: none; visibility: visible; overflow: visible; flex-direction: row; flex: 1; justify-content: center;
  }
  .ts-gnb__list { flex-direction: row; gap: clamp(14px, 1.7vw, 30px); }
  .ts-gnb__item { border: 0; position: static; }
  .ts-gnb__link { flex: none; position: relative; padding: 26px 2px; font-size: 15px; white-space: nowrap; }
  .ts-gnb__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: var(--c-navy);
    transform: scaleX(0); transition: transform 0.25s;
  }
  .ts-gnb__item:hover > .ts-gnb__link::after,
  .ts-gnb__item:focus-within > .ts-gnb__link::after,
  .ts-gnb__item.is-current > .ts-gnb__link::after { transform: scaleX(1); }

  /* ── 메가메뉴: 상위 메뉴에 올리면 전체 폭 패널이 열리고, 모든 하위 메뉴가 열(column)로 한꺼번에 보임 ── */
  .ts-header { --mega-h: 232px; }
  .ts-header__inner { position: relative; }
  .ts-header::after {                       /* 전체 폭 패널 배경 */
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--mega-h);
    background: rgba(255, 255, 255, 0.985); border-top: 1px solid var(--c-line); box-shadow: 0 22px 36px rgba(19, 35, 74, 0.12);
    opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.22s ease, transform 0.28s ease, visibility 0.22s;
  }
  .ts-header.is-mega::after { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .ts-gnb__sub {
    display: block; position: absolute; top: calc(100% + 26px); left: 24px;
    width: 156px; min-width: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
    transform: translateY(12px); opacity: 0; visibility: hidden;
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;       /* 닫힐 때: 지연 없이 빠르게 */
  }
  /* 열마다 위치·폭을 따로 지정(긴 메뉴명이 한 줄로 보이도록). 안내 카드(246px)와 겹치지 않는 범위: 마지막 열 끝 ≤ 904px */
  .ts-gnb__sub[data-col="0"] { --col: 0; left: 24px;  width: 156px; }
  .ts-gnb__sub[data-col="1"] { --col: 1; left: 204px; width: 184px; }
  .ts-gnb__sub[data-col="2"] { --col: 2; left: 412px; width: 148px; }
  .ts-gnb__sub[data-col="3"] { --col: 3; left: 580px; width: 148px; }
  .ts-gnb__sub[data-col="4"] { --col: 4; left: 748px; width: 148px; }
  .is-mega .ts-gnb__sub {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.25s ease calc(var(--col, 0) * 45ms), transform 0.32s ease calc(var(--col, 0) * 45ms), visibility 0.25s;   /* 열릴 때: 열마다 차례로 */
  }
  .ts-gnb__sub-title {
    display: block; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--c-navy);
    font: 700 15px/1.3 var(--font-sans); color: var(--c-navy); letter-spacing: -0.01em; transition: color 0.2s, border-color 0.2s;
  }
  .ts-gnb__item:hover > .ts-gnb__sub .ts-gnb__sub-title,
  .ts-gnb__item:focus-within > .ts-gnb__sub .ts-gnb__sub-title { color: var(--c-accent-text); border-color: var(--c-accent); }
  .ts-gnb__sub a { position: relative; display: block; padding: 8px 14px 8px 0; font-size: 14.5px; color: var(--c-text); border-radius: 0; transition: color 0.2s, padding 0.2s; }
  .ts-gnb__sub a::after { content: "›"; position: absolute; right: 2px; top: 50%; transform: translate(-6px, -52%); opacity: 0; transition: opacity 0.2s, transform 0.2s; color: var(--c-accent-text); font-size: 18px; }
  .ts-gnb__sub a:hover, .ts-gnb__sub a:focus-visible { background: none; color: var(--c-navy); padding-left: 6px; }
  .ts-gnb__sub a:hover::after, .ts-gnb__sub a:focus-visible::after { opacity: 1; transform: translate(0, -52%); }
  .ts-gnb__sub a[aria-current="page"] { color: var(--c-navy); font-weight: 700; }

  /* 오른쪽 안내 카드 (1200px 이상) */
  .ts-mega__aside {
    display: none; position: absolute; right: 24px; top: calc(100% + 20px); width: 246px; padding: 20px 20px 18px; border-radius: 16px; color: #fff;
    background: linear-gradient(135deg, var(--c-navy) 0%, #2a4380 100%); box-shadow: var(--shadow-m);
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
  }
  .is-mega .ts-mega__aside { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease 0.15s, transform 0.35s ease 0.15s, visibility 0.3s; }
  .ts-mega__eyebrow { font: 600 10px/1 var(--font-en); letter-spacing: 0.3em; text-transform: uppercase; color: #aebde0; margin-bottom: 8px; }
  .ts-mega__title { font: 700 17px/1.45 var(--font-serif); margin-bottom: 12px; }
  .ts-mega__tel { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #fff; }
  .ts-mega__tel .icon { width: 18px; height: 18px; }
  .ts-mega__tel strong { font: 700 18px/1 var(--font-sans); letter-spacing: -0.01em; }
  .ts-header__util { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }
  .ts-header__util .ts-tel { display: none; }
}
@media (min-width: 1200px) {
  .ts-mega__aside { display: block; }
  .ts-header__util .ts-tel { display: inline-flex; }
  .ts-header__util .ts-tel strong { font-size: 20px; }
  .ts-gnb__link { font-size: 16px; }
}

/* ---------- 푸터 ---------- */
.ts-footer { position: relative; background: linear-gradient(180deg, var(--c-navy) 0%, var(--c-navy-deep) 100%); color: #d6def0; overflow: hidden; }
.ts-footer__inner { position: relative; display: grid; gap: 24px; padding-block: 36px; }
.ts-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 0; margin-bottom: 14px; }
.ts-footer__nav li + li::before { content: "|"; margin: 0 12px; color: rgba(255, 255, 255, 0.35); }
.ts-footer__nav a { font-size: 13px; color: #fff; }
.ts-footer__nav a:hover, .ts-footer__legal a:hover { text-decoration: underline; }
.ts-footer__addr { display: grid; gap: 4px; font-size: 13px; color: #c3cde6; }
.ts-footer__sample { font-size: 12px; color: #aab6d3; }
.ts-footer__side { display: grid; gap: 10px; justify-items: start; }
.ts-sns { display: flex; gap: 10px; }
.ts-sns a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; transition: background 0.2s; }
.ts-sns a:hover { background: rgba(255, 255, 255, 0.16); }
.ts-sns .icon { width: 19px; height: 19px; }
.ts-footer__copy { font-size: 12px; color: #aab6d3; }
.ts-footer__legal { display: flex; gap: 14px; font-size: 12px; }
.ts-footer__legal a { color: #fff; }
.ts-footer__script { font: 400 34px/1 var(--font-script); color: rgba(255, 255, 255, 0.55); }
.ts-footer__brand .ts-logo__mark { width: 40px; height: 40px; }
@media (min-width: 768px) {
  .ts-footer__inner { grid-template-columns: auto 1fr; align-items: center; column-gap: 40px; }
  .ts-footer__side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; justify-items: start; }
  .ts-footer__script { position: absolute; right: 24px; bottom: 28px; }
}
@media (min-width: 1024px) {
  .ts-footer__inner { grid-template-columns: auto 1fr auto; padding-block: 30px; }
  .ts-footer__side { grid-column: auto; grid-auto-flow: row; justify-items: end; text-align: right; }
  .ts-footer__script { position: static; justify-self: end; grid-column: 3; margin-right: 56px; }
  .ts-footer__legal { justify-content: flex-end; }
}
body { padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) { body { padding-bottom: 0; } }

/* 모바일 하단 고정 바 / 맨 위로 */
.ts-mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 -6px 18px rgba(27, 46, 92, 0.1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.ts-mbar__btn { min-height: var(--mbar-h); display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 var(--font-sans); }
.ts-mbar__btn--tel { color: var(--c-navy); }
.ts-mbar__btn--book { background: var(--c-navy); color: #fff; }
@media (min-width: 1024px) { .ts-mbar { display: none; } }
.ts-top {
  position: fixed; right: 16px; bottom: calc(var(--mbar-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--c-navy); display: grid; place-items: center;
  box-shadow: var(--shadow-m); border: 1px solid var(--c-line);
}
@media (min-width: 1024px) { .ts-top { bottom: 28px; right: 28px; } }

/* ---------- 카드 공통 ---------- */
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-m); box-shadow: var(--shadow-s); }

/* ---------- 폼 ---------- */
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > label, .field > .label { font: 600 15px/1.3 var(--font-sans); color: var(--c-ink); }
.req { color: var(--c-accent-text); margin-left: 3px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 400 16px/1.4 var(--font-sans); color: var(--c-ink);
  background: #fff; border: 1.5px solid #cbd5e6; border-radius: 12px; transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-navy); box-shadow: 0 0 0 3px rgba(27, 46, 92, 0.14); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #c4314b; }
.field__error { font-size: 13px; color: #b3243f; min-height: 0; }
.field__hint { font-size: 13px; color: var(--c-muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--c-navy); flex: none; }
.agree-box { background: var(--c-icon-bg); border-radius: 14px; padding: 16px; display: grid; gap: 12px; }
.agree-box details summary { cursor: pointer; font-size: 14px; color: var(--c-navy); font-weight: 600; }
.agree-box details p, .agree-box details li { font-size: 13px; color: var(--c-text); margin-top: 6px; }
.captcha-slot { display: grid; place-items: center; min-height: 72px; border: 1.5px dashed #b4c1d8; border-radius: 12px; color: var(--c-muted); font-size: 13px; background: repeating-linear-gradient(45deg, #fff, #fff 8px, #f4f7fd 8px, #f4f7fd 16px); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 아코디언 / 탭 ---------- */
.accordion { border-top: 2px solid var(--c-navy); }
.accordion__item { border-bottom: 1px solid var(--c-line); background: #fff; }
.accordion__btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 16px; text-align: left; font: 600 16px/1.5 var(--font-sans); color: var(--c-ink); }
.accordion__q { font: 700 15px/1 var(--font-en); color: var(--c-accent-text); }
.accordion__btn .icon { margin-left: auto; transition: transform 0.2s; color: var(--c-muted); }
.accordion__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.accordion__panel { padding: 4px 16px 22px 44px; font-size: 15px; background: #fbfcff; }
.accordion__panel p + p { margin-top: 8px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs__btn { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #cbd5e6; background: #fff; font: 600 14px/1 var(--font-sans); color: var(--c-text); transition: all 0.2s; }
.tabs__btn:hover { border-color: var(--c-navy); color: var(--c-navy); }
.tabs__btn[aria-pressed="true"] { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }

/* ---------- 게시판 (목록 / 보기) ---------- */
.board-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.board-total { font-size: 14px; color: var(--c-muted); }
.board-total strong { color: var(--c-navy); }
.board-search { display: flex; gap: 8px; width: 100%; }
.board-search .select { width: 96px; flex: none; min-height: 42px; }
.board-search .input { min-height: 42px; flex: 1; min-width: 0; width: auto; }
@media (min-width: 640px) { .board-search { width: auto; } .board-search .input { flex: none; width: 220px; } }
.board-search .btn { min-height: 42px; padding: 0 14px; }
.board-notice { background: #fff8e1; border: 1px solid #f1d98c; color: #6a5200; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }

.board-list { border-top: 2px solid var(--c-navy); }
.board-list thead { display: none; }
.board-list tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 6px; border-bottom: 1px solid var(--c-line); background: #fff; }
.board-list td { font-size: 14px; color: var(--c-muted); }
.board-list .td-num { display: none; }
.board-list .is-notice .td-num { display: block; grid-column: 1 / -1; line-height: 1; }
.board-list .td-hit::before { content: "조회 "; }
.board-list .td-subject { grid-column: 1 / -1; font-size: 16px; color: var(--c-ink); font-weight: 500; }
.board-list .td-subject a:hover { color: var(--c-navy); text-decoration: underline; }
.board-list .is-notice .td-subject { font-weight: 700; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 700 11px/1.2 var(--font-sans); background: var(--c-icon-bg); color: var(--c-navy); margin-right: 6px; vertical-align: 2px; }
.badge--accent { background: #ffe3ea; color: #b3243f; }
@media (min-width: 768px) {
  .board-list thead { display: table-header-group; }
  .board-list table { display: table; width: 100%; }
  .board-list th:nth-child(1) { width: 70px; } .board-list th:nth-child(3) { width: 120px; } .board-list th:nth-child(4) { width: 80px; }
  .board-list tr { display: table-row; padding: 0; }
  .board-list th { padding: 14px 10px; font: 600 14px/1 var(--font-sans); background: #f1f5fc; color: var(--c-ink); border-bottom: 1px solid var(--c-line); }
  .board-list td { display: table-cell; padding: 16px 10px; border-bottom: 1px solid var(--c-line); text-align: center; background: #fff; }
  .board-list .td-num, .board-list .is-notice .td-num { display: table-cell; width: 70px; line-height: inherit; }
  .board-list .td-hit::before { content: none; }
  .board-list .td-subject { text-align: left; }
  .board-list .td-date { width: 120px; } .board-list .td-hit { width: 80px; }
}

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--c-line); background: #fff; font-size: 14px; color: var(--c-text); }
.pagination a:hover { border-color: var(--c-navy); color: var(--c-navy); }
.pagination .is-current { background: var(--c-navy); color: #fff; border-color: var(--c-navy); font-weight: 700; }

.board-view { background: #fff; border-top: 2px solid var(--c-navy); }
.board-view__head { padding: 22px 16px; border-bottom: 1px solid var(--c-line); }
.board-view__title { font: 700 clamp(20px, 2.6vw, 26px)/1.4 var(--font-sans); color: var(--c-ink); }
.board-view__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; color: var(--c-muted); }
.board-view__body { padding: 28px 16px; min-height: 220px; }
.board-view__file { padding: 14px 16px; border-top: 1px dashed var(--c-line); font-size: 14px; background: #fbfcff; }
.board-nav { border-top: 1px solid var(--c-line); }
.board-nav li { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--c-line); font-size: 14px; background: #fff; }
.board-nav b { width: 52px; color: var(--c-muted); font-weight: 600; flex: none; }
.board-nav a:hover { text-decoration: underline; }
.board-buttons { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }

/* ---------- 팝업 ---------- */
.popup { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(19, 35, 74, 0.55); }
.popup__box { width: min(92vw, 380px); background: #fff; border-radius: var(--radius-l); overflow: hidden; box-shadow: 0 24px 60px rgba(19, 35, 74, 0.35); }
.popup__body { padding: 30px 26px 22px; text-align: center; }
.popup__body .script { font-size: 34px; color: var(--c-accent); }
.popup__body h2 { font: 700 22px/1.4 var(--font-serif); color: var(--c-navy); margin: 6px 0 10px; }
.popup__body p { font-size: 15px; }
.popup__body .btn { margin-top: 18px; }
.popup__foot { display: flex; border-top: 1px solid var(--c-line); }
.popup__foot button { flex: 1; min-height: 48px; font-size: 14px; color: var(--c-muted); }
.popup__foot button + button { border-left: 1px solid var(--c-line); color: var(--c-ink); font-weight: 600; }
