@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #0b0d17;
  --panel: #151a2e;
  --lavender: #8c86c9;
  --gold: #c7a66b;
  --text: #e8e8ee;
  --muted: #9a9cb0;
  --border: #30344e;
  --width: 510px;
  font-family: Pretendard, "Malgun Gothic", sans-serif;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
h1, h2, h3, p, blockquote { margin: 0; }
h2 { margin-bottom: 17px; font-size: 24px; letter-spacing: -.04em; }
h3 { font-size: 19px; letter-spacing: -.02em; }
p { overflow-wrap: anywhere; }
.muted { color: var(--muted); }
button, input, select { font: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 15px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-weight: 650;
  line-height: 1.25;
}
button:hover, .button:hover { border-color: var(--gold); }
:focus-visible { outline: 2px solid #c5baf7; outline-offset: 3px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { background: linear-gradient(105deg, #e7cc99, var(--gold)); border-color: #d6b982; color: #171321; }
.small { min-height: 38px; padding-inline: 12px; color: #e8cf9f; border-color: #7d684b; font-size: 13px; }
.topbar { position: sticky; top: 0; z-index: 5; background: #0b0d17f2; backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.top-inner, .shell { max-width: var(--width); margin-inline: auto; }
.top-inner { display: flex; justify-content: space-between; align-items: center; min-height: 62px; padding: 0 18px; gap: 10px; }
.wordmark, .hero-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #eddbb9; }
.wordmark { font-size: 11px; letter-spacing: .17em; white-space: nowrap; }
.logo-h { display: block; height: 24px; width: auto; }
.logo-v { display: block; height: 92px; width: auto; filter: drop-shadow(0 0 18px #c7a66b40); }
.hero-watermark { position: absolute; z-index: -1; right: -18%; top: 6%; width: 78%; opacity: .05; pointer-events: none; }
.shell { background: var(--bg); border-inline: 1px solid #20243a; }
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: grid;
  align-items: end;
  background-image: linear-gradient(180deg, #151a2e38, #0b0d17 100%), var(--photo, linear-gradient(138deg, #2b2f5c 15%, #8c86c9 100%));
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(138deg, transparent 0 58px, #d9d4ff1c 59px 60px, transparent 61px 84px);
  mask-image: linear-gradient(#000, transparent 77%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 37%, #dbd2ff2d 50%, transparent 63%);
  transform: translateX(-110%);
  animation: shine 8s ease-in-out infinite;
}
@keyframes shine {
  0%, 22% { transform: translateX(-110%); }
  72%, 100% { transform: translateX(110%); }
}
.hero-inner { padding: 52px clamp(20px, 6vw, 32px) 32px; }
.hero-mark { margin-bottom: 34px; }
.slogan { color: #efd5a6; font-size: 15px; margin-bottom: 8px; }
h1 { font-size: clamp(33px, 8.5vw, 46px); line-height: 1.16; letter-spacing: -.065em; white-space: pre-line; }
.offers { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; font-size: 13px; }
.offers span { border: 1px solid #9c87b875; border-radius: 6px; padding: 5px 8px; background: #13152988; }
.offers strong { color: #eed4a8; margin-left: 3px; }
.scarcity { color: #eed4a8; margin-bottom: 14px; }
.hero .button { width: 100%; }
section, footer { padding: 27px clamp(17px, 5vw, 26px); border-top: 1px solid #24283c; }
.panel { margin: 0 0 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.stat-grid, .goal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat-grid > div, .goal-grid > div { background: var(--panel); border: 1px solid var(--border); border-radius: 9px; padding: 12px 10px; text-align: center; }
.stat-grid strong { display: block; color: var(--gold); font-size: 22px; }
.stat-grid span { font-size: 13px; color: var(--muted); }
.stats-note { margin-top: 10px; font-size: 12.5px; color: #e6c897; }
.product { padding: 16px; }
.product-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.product-top strong { color: #e6c897; white-space: nowrap; font-size: 20px; }
.price-box { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.price-box del { color: #8d8fa3; font-size: 13px; }
.offers del { color: #8d8fa3; font-size: 12px; margin-right: 3px; }
.discount { color: #ff7a6b; font-weight: 700; font-size: 15px; }
.product p, .branch-info p { margin-top: 5px; font-size: 14px; color: #c5c5d4; }
.product ul { padding-left: 19px; font-size: 14px; }
.product li::marker { color: var(--gold); }
.product .button { width: 100%; border-color: #6b5a48; }
.branch-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 8px; }
.branch-selector button { padding-inline: 5px; font-size: 13px; }
.branch-selector [aria-expanded="true"], .chips [aria-pressed="true"] { color: #f2d8a7; border-color: var(--gold); background: #24213a; }
.branch { overflow: hidden; }
.branch-image {
  height: 122px;
  background-image: linear-gradient(150deg, #21274b22, #17193599), var(--photo, repeating-linear-gradient(130deg, #484474 0 2px, #292c52 3px 24px));
  background-size: cover;
  background-position: center;
}
.branch-info { padding: 14px; }
.tags, .branch-links, .chips, footer nav { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.tags span { font-size: 12px; background: #242641; border-radius: 5px; padding: 3px 7px; }
.branch-links { color: #ecd2aa; font-size: 14px; }
.goal-grid span { display: block; color: #d3b57f; font-size: 23px; line-height: 1.15; }
.steps { list-style: none; padding: 0 0 0 10px; margin: 0; counter-reset: step; }
.steps li { position: relative; border-left: 1px solid #746043; padding: 0 0 15px 23px; counter-increment: step; }
.steps li:last-child { border-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  inset: 1px auto auto -10px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--gold);
  color: #151323;
  font-size: 12px;
  text-align: center;
  font-weight: 750;
}
blockquote, .placeholder { padding: 14px; }
.placeholder { color: var(--muted); }
details { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; padding: 11px 0; }
details p { color: var(--muted); font-size: 14px; padding: 0 0 10px; white-space: pre-line; }
#application { background: linear-gradient(#151a2e, #101323 78%); }
#application-form { display: grid; gap: 13px; margin-top: 14px; }
#application-form > label, fieldset { display: grid; gap: 5px; font-size: 14px; }
input:not([type="checkbox"]), select {
  min-height: 44px;
  width: 100%;
  min-width: 0;
  padding: 7px 10px;
  background: #0d1020;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 16px;
}
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
legend { padding: 0; }
.chips { gap: 5px; margin-top: 0; }
.chips button { min-height: 38px; font-size: 13px; padding: 6px 9px; }
.agreements { background: #101325; border: 1px solid var(--border); border-radius: 8px; padding: 9px; }
.agreements label { display: flex; align-items: center; min-height: 34px; gap: 7px; font-size: 14px; }
.agreements input { accent-color: var(--gold); width: 16px; height: 16px; }
.agreements details { font-size: 13px; margin-left: 24px; border: 0; }
.agreements summary { padding: 4px 0 7px; color: var(--muted); }
.form-actions { display: grid; gap: 7px; }
#price-message, #form-message { font-size: 14px; }
#price-message:empty, #form-message:empty { display: none; }
#form-message { color: #efd9af; }
#checkout { margin-top: 20px; }
#checkout-pay { width: 100%; margin-top: 9px; }
#payment-methods, #payment-agreement { color-scheme: light; background: #fff; border-radius: 8px; }
footer { padding-bottom: 105px; color: var(--muted); font-size: 13px; }
footer strong { color: var(--text); }
footer .biz { margin-top: 10px; line-height: 1.55; }
footer .biz:first-child { margin-top: 0; }
.policy { max-height: 420px; overflow-y: auto; padding: 4px 12px 12px 0; }
.policy h4 { margin: 14px 0 4px; color: #c9cad8; font-size: 13px; }
.policy p { margin: 0; white-space: pre-line; line-height: 1.6; }
footer .biz b { display: block; color: #c9cad8; font-weight: 600; }
footer .biz span { display: block; }
footer nav { margin-bottom: 8px; }
.mobile-bar { position: fixed; inset: auto 0 0; z-index: 4; background: #101323f2; border-top: 1px solid var(--border); backdrop-filter: blur(12px); }
.mobile-bar > div { max-width: var(--width); margin: 0 auto; padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mobile-bar strong { color: #efd4a5; }
.mobile-bar .button { flex: 0 1 60%; }
.result { max-width: var(--width); margin: 10vh auto 0; padding: 24px; }
.result h1 { font-size: 32px; }
.result p { margin: 12px 0 18px; color: var(--muted); }
.result .button { margin: 6px; }
.admin main { margin: 24px auto; padding: 16px; max-width: 1400px; }
.admin h1 { margin-bottom: 18px; font-size: 32px; }
.admin form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin label { display: flex; align-items: center; gap: 5px; }
.admin select { width: auto; }
.table-scroll { margin-top: 14px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { background: var(--panel); }
@media (min-width: 650px) {
  body:not(.admin) { background: radial-gradient(ellipse at top, #20233e 0, var(--bg) 62%); }
  .mobile-bar { display: none; }
  footer { padding-bottom: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::after { animation: none; }
}
