/*
Theme Name: HEON'S RACING
Theme URI: https://heonsracing.com
Author: HEON'S RACING
Description: 헌스레이싱 전용 테마. 카트 렌탈·선수 지원·취미반 프로그램 소개, 서킷 예약 캘린더, 회원 등급별 가격이 적용되는 WooCommerce 상점, 정산서 발행을 위한 커스텀 테마입니다.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heonsracing
*/

/* ============================================================
   HEON'S RACING — Design System
   Dark carbon / racing-red. Mobile-first, no build step.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* palette */
  --bg:            #08090b;
  --bg-2:          #0d0f13;
  --surface:       #12151b;
  --surface-2:     #191d25;
  --line:          rgba(255, 255, 255, .09);
  --line-2:        rgba(255, 255, 255, .16);

  --txt:           #f2f4f7;
  --txt-2:         #a8b0bd;
  --txt-3:         #6b7381;

  --accent:        #ff2d20;
  --accent-hi:     #ff5a4f;
  --accent-dim:    rgba(255, 45, 32, .14);
  --gold:          #f0c14b;

  --ok:            #35d07f;
  --warn:          #ffb020;
  --bad:           #ff4d4f;
  --off:           #565e6b;

  /* type */
  --ff: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
        "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-mono: "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, monospace;

  --fs-display: clamp(2.75rem, 8.5vw, 6.5rem);
  --fs-h1:      clamp(2rem, 5.2vw, 3.5rem);
  --fs-h2:      clamp(1.6rem, 3.6vw, 2.5rem);
  --fs-h3:      clamp(1.15rem, 2vw, 1.5rem);
  --fs-body:    clamp(.95rem, 1.05vw, 1.0625rem);
  --fs-sm:      .875rem;
  --fs-xs:      .75rem;

  /* space */
  --gut: 20px;
  --sp-section: clamp(64px, 9vw, 130px);
  --r: 4px;
  --r-lg: 10px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .45s;

  --header-h: 68px;

  /* 브라우저 기본 UI(select 팝업 목록, 스크롤바, 날짜 선택기 등)를
     다크 모드로 렌더링. 이게 없으면 select 목록이 OS 기본 흰 배경으로
     떠서 거의 흰 글씨와 겹쳐 안 보입니다. */
  color-scheme: dark;
}

@media (min-width: 900px) { :root { --gut: 40px; --header-h: 80px; } }

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--ff);
  font-size: var(--fs-body);
  line-height: 1.7;
  letter-spacing: -.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

/* 드롭다운(select) 펼친 목록의 배경/글자색을 명시.
   color-scheme 만으로 처리되지 않는 브라우저를 위한 이중 안전장치입니다. */
select { background-color: var(--surface); color: var(--txt); }
select option, select optgroup {
  background-color: #14171e; color: var(--txt);
}
select option:checked { background-color: #23282f; color: #fff; }
h1, h2, h3, h4, p, ul, ol, figure, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
::selection { background: var(--accent); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #2a3038; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #39414c; }

/* ---------- 3. Layout ---------- */
.container { width: min(1320px, 100%); margin-inline: auto; padding-inline: var(--gut); }
.container--narrow { width: min(880px, 100%); }
.section { padding-block: var(--sp-section); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.section--alt { background: var(--bg-2); }
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.stack > * + * { margin-top: var(--gap, 16px); }

/* ---------- 4. Type utilities ---------- */
.display {
  font-size: var(--fs-display);
  line-height: .92;
  letter-spacing: -.04em;
  font-weight: 800;
  text-transform: uppercase;
}
.h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.h2 { font-size: var(--fs-h2); line-height: 1.14; letter-spacing: -.025em; font-weight: 800; }
.h3 { font-size: var(--fs-h3); line-height: 1.3;  letter-spacing: -.02em;  font-weight: 700; }
.lead { font-size: clamp(1rem, 1.5vw, 1.1875rem); color: var(--txt-2); line-height: 1.75; }
.muted { color: var(--txt-2); }
.dim { color: var(--txt-3); }
.mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); flex: none;
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .h2 { margin-top: 14px; }
.section-head .lead { margin-top: 16px; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--txt); --btn-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent); }
.btn--primary:hover { --btn-bg: var(--accent-hi); --btn-bd: var(--accent-hi); }
.btn--ghost:hover { --btn-bd: var(--txt); background: rgba(255,255,255,.05); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: var(--fs-xs); }
.btn--lg { min-height: 58px; padding: 0 34px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .38; pointer-events: none; transform: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--txt); padding-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
  transition: color .3s var(--ease), border-color .3s var(--ease), gap .3s var(--ease);
}
.link-more::after { content: "→"; transition: transform .3s var(--ease); }
.link-more:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }

/* ---------- 6. Badges / chips / tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 3px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
  background: rgba(255,255,255,.08); color: var(--txt-2); border: 1px solid var(--line);
}
.badge--accent { background: var(--accent-dim); color: var(--accent-hi); border-color: rgba(255,45,32,.35); }
.badge--team   { background: rgba(53,208,127,.12); color: var(--ok); border-color: rgba(53,208,127,.35); }
.badge--mech   { background: rgba(255,176,32,.12); color: var(--warn); border-color: rgba(255,176,32,.35); }
.badge--gold   { background: rgba(240,193,75,.12); color: var(--gold); border-color: rgba(240,193,75,.35); }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot--ok { background: var(--ok); }
.dot--warn { background: var(--warn); }
.dot--bad { background: var(--bad); }
.dot--off { background: var(--off); }

/* ---------- 7. Surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  position: relative;
}
.panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 30px);
}
.hr { height: 1px; background: var(--line); border: 0; margin-block: 24px; }

/* diagonal red hairline used as a motif */

/* ---------- 8. Placeholder media (swap for real photos later) ---------- */
.media {
  position: relative; overflow: hidden; background: #0f1216;
  isolation: isolate;
}
.media > img { width: 100%; height: 100%; object-fit: cover; }
.media::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(255,45,32,.26), transparent 62%),
    radial-gradient(90% 80% at 90% 90%, rgba(120,140,175,.13), transparent 58%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #191e26, #0a0c10 72%);
  transition: transform .8s var(--ease);
}
.media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.022) 0 6px, transparent 6px 12px);
}
/* 실제 사진이 깔린 경우: placeholder 그라디언트를 끄고,
   위에 얹히는 문구가 읽히도록 옅은 스크림만 남깁니다. */
.media[data-img] { background-size: cover; background-position: center; background-repeat: no-repeat; }
.media[data-img]::before { display: none; }
.media[data-img]::after {
  background: linear-gradient(180deg, rgba(6,7,10,.10) 0%, rgba(6,7,10,.20) 45%, rgba(6,7,10,.55) 100%);
}
.media[data-img] .media__glyph { display: none; }   /* 사진 위 큰 아이콘은 노이즈라 숨김 */
.media[data-img] .media__no { color: rgba(255,255,255,.42); text-shadow: 0 2px 14px rgba(0,0,0,.6); }
/* subtle variants only — the set has to read as one dark, restrained family */
.media--v2::before { filter: hue-rotate(-10deg) saturate(.9) brightness(1.04); }
.media--v3::before { filter: hue-rotate(16deg) saturate(.42) brightness(.96); }
.media--v4::before { filter: saturate(.28) brightness(.9); }
.media--v5::before { filter: hue-rotate(-4deg) saturate(1.06) brightness(1.08); }
.media--v6::before { filter: grayscale(.88) brightness(.86); }

/* kerb stripe strip (red/white curb) */
.kerb {
  height: 6px;
  background: repeating-linear-gradient(115deg, var(--accent) 0 16px, #f2f4f7 16px 32px);
  opacity: .9;
}
.kerb--thin { height: 3px; }

/* watermark glyph inside media */
.media__glyph {
  position: absolute; z-index: 2; right: -6%; bottom: -12%;
  width: min(62%, 300px); opacity: .15; color: #fff; pointer-events: none;
}
.media__no {
  position: absolute; z-index: 2; left: 16px; top: 10px;
  font-family: var(--ff-mono); font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; font-style: italic; color: rgba(255,255,255,.17); line-height: 1;
}

/* ---------- 9. Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}

/* 로그인하면 워드프레스가 상단에 관리자 바를 띄웁니다(데스크톱 32px / 모바일 46px).
   고정 헤더를 그만큼 내려주지 않으면 둘이 겹쳐 보입니다. */
.admin-bar .hdr { top: 32px; }
.admin-bar .drawer { top: calc(var(--header-h) + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .hdr { top: 46px; }
  .admin-bar .drawer { top: calc(var(--header-h) + 46px); }
}
.hdr.is-stuck, .hdr.is-open, body:not(.has-hero) .hdr {
  background: rgba(8,9,11,.95);
  backdrop-filter: blur(20px) saturate(115%);
  border-bottom-color: var(--line);
}
.hdr__inner {
  width: min(1320px, 100%); margin-inline: auto; padding-inline: var(--gut);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }

/* .hdr / .ftr 로 한 단계 더 좁힌 이유:
   WooCommerce 의 woocommerce-layout.css 에 아래 규칙이 있습니다.
       .woocommerce img, .woocommerce-page img { height: auto; max-width: 100% }
   .woocommerce-page 는 <body> 에 붙으므로 선택자 점수가 .brand__logo 보다 높아,
   상점·장바구니·내 계정 화면에서만 로고가 원본 600px 로 튀어버립니다. */
.hdr .brand__logo,
.ftr .brand__logo {
  height: 30px; width: auto; flex: none;
  transition: opacity .25s var(--ease);
}
@media (min-width: 900px) { .hdr .brand__logo { height: 36px; } }
.brand:hover .brand__logo { opacity: .82; }
.ftr .brand__logo--ftr { height: 34px; }
@media (min-width: 900px) { .ftr .brand__logo--ftr { height: 40px; } }

.nav { display: none; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--txt-2); transition: color .25s var(--ease);
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--txt); }
.nav__link[aria-current="page"] { color: var(--txt); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--accent);
}
.nav__caret { width: 8px; height: 8px; opacity: .6; }

.nav__item { position: relative; }
.nav__sub {
  position: absolute; top: 100%; left: 0; min-width: 232px;
  background: rgba(13,15,19,.97); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.8);
}
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__sub a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; font-size: var(--fs-sm); color: var(--txt-2);
  border-radius: 3px; transition: background .2s, color .2s;
}
.nav__sub a:hover { background: rgba(255,255,255,.06); color: var(--txt); }
.nav__sub a[aria-current="page"] {
  background: rgba(255,45,32,.11); color: var(--txt);
  box-shadow: inset 2px 0 0 var(--accent);
}
.nav__sub a span:first-child { font-size: var(--fs-sm); letter-spacing: -.01em; }
.nav__sub a span + span {
  font-family: var(--ff-mono); font-size: 11px; color: var(--txt-3); letter-spacing: .08em;
}

.hdr__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 1080px) {
  .nav { display: block; }
  .hdr__tools { margin-left: 20px; }
}

.lang {
  display: inline-flex; align-items: center; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 3px;
}
.lang button {
  padding: 6px 10px; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  color: var(--txt-3); transition: background .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: var(--txt); color: #0b0c0f; }
.lang button:not([aria-pressed="true"]):hover { color: var(--txt); background: rgba(255,255,255,.07); }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 3px; color: var(--txt-2);
  transition: color .2s, background .2s, border-color .2s;
  position: relative;
}
.icon-btn:hover { color: var(--txt); background: rgba(255,255,255,.06); border-color: var(--line); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn__count {
  position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px;
  display: grid; place-items: center; padding: 0 4px;
  background: var(--accent); color: #fff; border-radius: 9px;
  font-size: 10px; font-weight: 800; font-family: var(--ff-mono);
}
.burger { display: grid; }
@media (min-width: 1080px) { .burger { display: none; } }

/* mobile drawer */
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 89;
  background: rgba(8,9,11,.98); backdrop-filter: blur(16px);
  padding: 24px var(--gut) 48px; overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .42s var(--ease), visibility .42s;
}
.drawer.is-open { transform: none; visibility: visible; }
@media (min-width: 1080px) { .drawer { display: none; } }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 18px 2px;
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); text-align: left;
}
.drawer__link[aria-current="page"] { color: var(--accent); }
.drawer__caret { width: 16px; height: 16px; transition: transform .3s var(--ease); color: var(--txt-3); }
.drawer__link[aria-expanded="true"] .drawer__caret { transform: rotate(180deg); }
.drawer__sub { display: none; padding: 6px 0 14px 14px; border-bottom: 1px solid var(--line); }
.drawer__sub.is-open { display: block; }
.drawer__sub a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; color: var(--txt-2); font-size: 1rem; font-weight: 600;
}
.drawer__sub a:hover { color: var(--accent); }
.drawer__meta { font-family: var(--ff-mono); font-size: 11px; color: var(--txt-3); font-weight: 700; }
.drawer__foot { margin-top: 32px; display: grid; gap: 12px; }

/* ---------- 10. Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-top: var(--header-h); overflow: hidden;
  /* static base — reads as asphalt + speed lines at any animation phase */
  background:
    radial-gradient(58% 46% at 76% 16%, rgba(255,45,32,.20), transparent 66%),
    radial-gradient(72% 58% at 6% 96%, rgba(255,45,32,.16), transparent 68%),
    radial-gradient(50% 44% at 92% 88%, rgba(52,96,220,.16), transparent 66%),
    repeating-linear-gradient(112deg, rgba(255,255,255,.042) 0 1px, transparent 1px 30px),
    linear-gradient(168deg, #14181f 0%, #0b0e13 46%, #07080b 100%);
}
/* animated fallback layer — visible until a real hero video is dropped in */
.hero::before {
  content: ""; position: absolute; inset: -20%; z-index: 0;
  background:
    radial-gradient(45% 55% at 20% 30%, rgba(255,45,32,.30), transparent 60%),
    radial-gradient(40% 50% at 80% 60%, rgba(40,90,255,.20), transparent 60%),
    repeating-linear-gradient(100deg, rgba(255,255,255,.045) 0 1px, transparent 1px 26px);
  animation: drift 26s linear infinite alternate;
}
@keyframes drift { from { transform: translate3d(-3%, -2%, 0) scale(1.05); } to { transform: translate3d(3%, 2%, 0) scale(1.15); } }
.hero__bg { position: absolute; inset: 0; z-index: 1; }
.hero__bg video, .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(8,9,11,.85) 0%, rgba(8,9,11,.25) 35%, rgba(8,9,11,.75) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8,9,11,.8), transparent 70%);
}
.hero__inner { position: relative; z-index: 3; width: 100%; padding-bottom: clamp(40px, 6vw, 76px); }
.hero__title { margin-top: 18px; }
.hero__title em { font-style: italic; color: var(--accent); }
.hero__sub { margin-top: 22px; max-width: 56ch; }
.hero__cta { margin-top: 34px; }

.hero__strip {
  position: relative; z-index: 4;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(8,9,11,.6); backdrop-filter: blur(8px);
}
.hero__strip-inner {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line);
}
@media (min-width: 760px) { .hero__strip-inner { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 18px clamp(14px, 2vw, 26px); }
.stat__k { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--txt-3); }
.stat__v { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.stat__v small { font-size: .7em; color: var(--txt-2); font-weight: 600; }

.scroll-cue {
  position: absolute; z-index: 2; right: var(--gut); bottom: clamp(40px, 6vw, 76px);
  display: none; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--txt-3); align-items: center; gap: 12px;
}
@media (min-width: 900px) { .scroll-cue { display: flex; } }
.scroll-cue::after {
  content: ""; width: 1px; height: 56px;
  background: linear-gradient(var(--accent), transparent);
}

/* page hero (inner pages) */
.phero {
  position: relative; padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(40px, 6vw, 76px); overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.phero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(255,45,32,.16), transparent 60%),
    repeating-linear-gradient(112deg, rgba(255,255,255,.028) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, #0e1116, var(--bg));
}
.phero__inner { position: relative; z-index: 1; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--txt-3); }
.crumb a:hover { color: var(--txt); }
.crumb span { opacity: .5; }

/* ---------- 11. Program cards (main 3-split) ---------- */
.progs { display: grid; gap: 14px; }
@media (min-width: 880px) { .progs { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.prog {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--surface); isolation: isolate;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.prog:hover { border-color: var(--line-2); transform: translateY(-4px); }
.prog__media { aspect-ratio: 4 / 3; }
@media (min-width: 880px) { .prog__media { aspect-ratio: 3 / 4; } }
.prog__media > * { transition: transform .7s var(--ease); }
.prog:hover .prog__media::before { transform: scale(1.07); }
.prog__body {
  position: relative; z-index: 3; padding: clamp(20px, 2.2vw, 28px);
  display: flex; flex-direction: column; gap: 12px; flex: 1;
}
@media (min-width: 880px) {
  .prog__body {
    position: absolute; inset: auto 0 0 0;
    background: linear-gradient(180deg, transparent, rgba(6,7,10,.80) 34%, rgba(6,7,10,.97));
    padding-top: 96px;
  }
}
.prog__kicker { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.prog__title { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.prog__desc { color: var(--txt-2); font-size: var(--fs-sm); line-height: 1.65; }
.prog__foot { margin-top: auto; padding-top: 6px; }
.prog__stretch { position: absolute; inset: 0; z-index: 4; }

/* ---------- 12. Calendar ---------- */
.cal { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.cal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.cal__month { font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 800; letter-spacing: -.02em; }
.cal__month small { display: block; font-size: 10px; letter-spacing: .2em; color: var(--txt-3); font-weight: 700; }
.cal__nav { display: flex; gap: 6px; }
.cal__nav button {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 3px; color: var(--txt-2);
  transition: background .2s, color .2s, border-color .2s;
}
.cal__nav button:hover:not([disabled]) { background: var(--accent); color: #fff; border-color: var(--accent); }
.cal__nav button[disabled] { opacity: .3; cursor: not-allowed; }
.cal__nav svg { width: 14px; height: 14px; }

/* minmax(0,1fr) — plain 1fr refuses to shrink below the cells' min-content
   and pushes the grid wider than the phone screen */
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__dow { border-bottom: 1px solid var(--line); }
.cal__dow span {
  padding: 9px 4px; text-align: center; font-size: 10px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--txt-3);
}
.cal__dow span:first-child { color: #ff8078; }
.cal__dow span:last-child { color: #7fa8ff; }
.cal__grid { gap: 1px; background: var(--line); padding: 1px; }

.day {
  position: relative; background: var(--surface); min-height: 62px;
  display: flex; flex-direction: column; gap: 3px;
  padding: 7px 6px; text-align: left; cursor: default;
  transition: background .2s var(--ease);
}
@media (min-width: 760px) { .day { min-height: 92px; padding: 10px 10px; gap: 6px; } }
.day__n { font-family: var(--ff-mono); font-size: var(--fs-xs); font-weight: 700; color: var(--txt-2); line-height: 1; }
@media (min-width: 760px) { .day__n { font-size: .875rem; } }
.day--sun .day__n { color: #ff8078; }
.day--sat .day__n { color: #7fa8ff; }
.day--out { background: #0b0d11; }
.day--out .day__n { opacity: .28; }
.day__meta { margin-top: auto; display: flex; align-items: center; gap: 5px; min-width: 0; }
.day__label {
  font-size: 9px; font-weight: 700; letter-spacing: .02em; color: var(--txt-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1 1 auto; min-width: 0;
}
@media (min-width: 760px) { .day__label { font-size: 10.5px; } }
.day__tag {
  align-self: flex-start; font-size: 9px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 1px 5px; border-radius: 2px;
  background: var(--accent-dim); color: var(--accent-hi);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.day--today { box-shadow: inset 0 0 0 1px var(--line-2); }
.day--today .day__n::after {
  content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); margin-left: 4px; vertical-align: middle;
}
.day--past { background: #0a0c0f; }
.day--past .day__n { opacity: .4; }
.day--bookable { cursor: pointer; }
.day--bookable:hover { background: #1b212a; }
.day--blocked, .day--closed { background: #0a0c0f; }
.day--blocked .day__n, .day--closed .day__n { color: var(--txt-3); }
.day--lead { background: repeating-linear-gradient(45deg, #0b0d11 0 5px, #0e1116 5px 10px); }
.day--sel { background: var(--accent-dim) !important; box-shadow: inset 0 0 0 2px var(--accent); }
.day--full .day__label { color: var(--bad); }
.day--few .day__label { color: var(--warn); }
.day--open .day__label { color: var(--ok); }

.cal__legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 16px;
  border-top: 1px solid var(--line); background: var(--surface-2);
  font-size: var(--fs-xs); color: var(--txt-2);
}
.cal__legend li { display: flex; align-items: center; gap: 7px; }
.cal__note {
  padding: 12px 16px; border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--txt-3); display: flex; gap: 10px; align-items: flex-start;
}
.cal__note svg { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--warn); }

/* ---------- 13. Instagram feed ---------- */
.ig-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 620px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .ig-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; } }
.ig {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 3px;
  border: 1px solid var(--line);
}
.ig__ov {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; gap: 6px;
  background: rgba(6,7,10,.72); opacity: 0; transition: opacity .35s var(--ease);
  color: #fff; font-size: var(--fs-xs); font-weight: 700; text-align: center; padding: 10px;
}
.ig:hover .ig__ov { opacity: 1; }
.ig__ov svg { width: 20px; height: 20px; margin-inline: auto; }

/* ---------- 14. Footer ---------- */
.ftr { background: #06070a; border-top: 1px solid var(--line); }
.ftr__top { padding-block: clamp(44px, 6vw, 72px); display: grid; gap: 40px; }
@media (min-width: 900px) { .ftr__top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; } }
.ftr__h { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--txt); margin-bottom: 16px; }
.ftr__list { display: grid; gap: 11px; font-size: var(--fs-sm); color: var(--txt-2); }
.ftr__list a:hover { color: var(--accent); }
.ftr__biz { font-size: var(--fs-xs); color: var(--txt-3); line-height: 1.9; }
.ftr__biz dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.ftr__biz dt { color: var(--txt-3); white-space: nowrap; }
.ftr__biz dd { margin: 0; color: var(--txt-2); }
.ftr__bot {
  border-top: 1px solid var(--line); padding-block: 20px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  font-size: var(--fs-xs); color: var(--txt-3);
}
.ftr__legal { display: flex; flex-wrap: wrap; gap: 16px; }
.ftr__legal a:hover { color: var(--txt); }
.ftr__social { display: flex; gap: 8px; }
.ftr__social a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 3px; color: var(--txt-2);
  transition: all .25s var(--ease);
}
.ftr__social a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.ftr__social svg { width: 17px; height: 17px; }

/* ---------- 15. Shop ---------- */
.shop-layout { display: grid; gap: 28px; }
@media (min-width: 1000px) { .shop-layout { grid-template-columns: 236px 1fr; gap: 40px; } }
.shop-aside { display: none; }
@media (min-width: 1000px) { .shop-aside { display: block; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.cat-list { display: grid; gap: 2px; }
.cat-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 11px 13px; border-radius: 3px; text-align: left;
  font-size: var(--fs-sm); font-weight: 600; color: var(--txt-2);
  border-left: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.cat-list button:hover { background: rgba(255,255,255,.05); color: var(--txt); }
.cat-list button[aria-pressed="true"] {
  background: rgba(255,45,32,.1); color: var(--txt); border-left-color: var(--accent); font-weight: 700;
}
.cat-list .n { font-family: var(--ff-mono); font-size: 11px; color: var(--txt-3); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .chip-scroll { display: none; } }
.chip {
  flex: none; padding: 9px 15px; border: 1px solid var(--line-2); border-radius: 100px;
  font-size: var(--fs-xs); font-weight: 700; color: var(--txt-2); white-space: nowrap;
  transition: all .2s var(--ease);
}
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

.shop-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
}
.shop-bar__count { font-size: var(--fs-sm); color: var(--txt-2); }
.shop-bar__count b { color: var(--txt); font-family: var(--ff-mono); }
.shop-bar__tools { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.field {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 3px; padding: 0 12px; min-height: 42px;
  transition: border-color .2s;
}
.field:focus-within { border-color: var(--line-2); }
.field svg { width: 15px; height: 15px; color: var(--txt-3); flex: none; }
.field input, .field select, .field textarea {
  background: none; border: 0; outline: none; width: 100%; padding: 10px 0;
  font-size: var(--fs-sm);
}
.field select { cursor: pointer; padding-right: 4px; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.7; }
.field--label { flex-direction: column; align-items: stretch; padding: 10px 12px; gap: 2px; }
.field--label > span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-3); font-weight: 700; }
.field--label input, .field--label select, .field--label textarea { padding: 2px 0; }

.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .prod-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1400px) { .prod-grid { grid-template-columns: repeat(4, 1fr); } }
.prod {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.prod:hover { border-color: var(--line-2); transform: translateY(-3px); }
.prod.is-out .prod__media { opacity: .45; }
.prod:hover .prod__media::before { transform: scale(1.06); }
.prod__media { aspect-ratio: 1; }
.prod__media .media__glyph { right: 50%; bottom: 50%; transform: translate(50%, 50%); width: 46%; opacity: .16; }
.prod__flags { position: absolute; z-index: 3; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.prod__body { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
@media (min-width: 700px) { .prod__body { padding: 18px; } }
.prod__cat {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-3); font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prod__name { font-size: var(--fs-sm); font-weight: 700; line-height: 1.4; letter-spacing: -.015em; }
@media (min-width: 700px) { .prod__name { font-size: 1rem; } }
.prod__price { margin-top: auto; padding-top: 8px; }
.prod__stretch { position: absolute; inset: 0; z-index: 4; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.price--sub { margin-top: 3px; gap: 7px; }
.price__now { font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 800; letter-spacing: -.02em; font-family: var(--ff-mono); }
.price__was { font-size: var(--fs-xs); color: var(--txt-3); text-decoration: line-through; font-family: var(--ff-mono); }
.price__off { font-size: var(--fs-xs); font-weight: 800; color: var(--accent); }
.price__tier { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }

/* product detail */
.pdp { display: grid; gap: 32px; }
@media (min-width: 940px) { .pdp { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; } }
.pdp__gallery { display: grid; gap: 10px; }
.pdp__main { aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: var(--r); }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pdp__thumb { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.pdp__thumb[aria-pressed="true"] { border-color: var(--accent); }
@media (min-width: 940px) { .pdp__info { position: sticky; top: calc(var(--header-h) + 24px); } }

.tier-table { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: var(--fs-sm); }
.tier-table th, .tier-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tier-table thead th { background: var(--surface-2); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-3); }
.tier-table tbody tr:last-child th, .tier-table tbody tr:last-child td { border-bottom: 0; }
.tier-table td { text-align: right; font-family: var(--ff-mono); font-weight: 700; }
.tier-table th { font-weight: 600; color: var(--txt-2); }
.tier-table tr.is-you { background: rgba(255,45,32,.08); }
.tier-table tr.is-you th { color: var(--txt); font-weight: 800; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 3px; }
.qty button { width: 40px; height: 46px; display: grid; place-items: center; color: var(--txt-2); }
.qty button:hover { color: var(--txt); background: rgba(255,255,255,.06); }
.qty input { width: 52px; height: 46px; text-align: center; background: none; border: 0; outline: none; font-family: var(--ff-mono); font-weight: 700; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 14px 18px; font-size: var(--fs-sm); font-weight: 700; color: var(--txt-3);
  border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s;
}
.tab[aria-selected="true"] { color: var(--txt); border-bottom-color: var(--accent); }
.tab:hover { color: var(--txt-2); }
.tabpanel { padding-top: 26px; }
.tabpanel[hidden] { display: none; }

/* ---------- 16. Booking page ---------- */
.book-layout { display: grid; gap: 24px; }
@media (min-width: 1060px) { .book-layout { grid-template-columns: 1fr 400px; gap: 32px; align-items: start; } }
@media (min-width: 1060px) { .book-side { position: sticky; top: calc(var(--header-h) + 24px); } }
.slot-list { display: grid; gap: 10px; }
.slot {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); transition: all .25s var(--ease);
}
.slot:hover:not([disabled]) { border-color: var(--line-2); background: var(--surface-2); }
.slot[aria-pressed="true"] { border-color: var(--accent); background: rgba(255,45,32,.07); }
.slot[disabled] { opacity: .4; cursor: not-allowed; }
.slot__time { font-family: var(--ff-mono); font-weight: 800; font-size: var(--fs-sm); flex: none; width: 92px; }
.slot__name { font-size: var(--fs-sm); font-weight: 700; }
.slot__meta { font-size: var(--fs-xs); color: var(--txt-3); }
.slot__price { margin-left: auto; text-align: right; flex: none; }
.slot__price b { font-family: var(--ff-mono); font-size: var(--fs-sm); }
.slot__price s { display: block; font-size: 10px; color: var(--txt-3); font-family: var(--ff-mono); }

.sum { display: grid; gap: 12px; }
.sum__row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); }
.sum__row dt { color: var(--txt-2); }
.sum__row dd { margin: 0; font-weight: 700; font-family: var(--ff-mono); text-align: right; }
.sum__total { border-top: 1px solid var(--line-2); padding-top: 14px; margin-top: 4px; align-items: baseline; }
.sum__total dt { font-weight: 800; color: var(--txt); font-size: 1rem; }
.sum__total dd { font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 800; color: var(--accent); }

.opt-row { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.opt-row:last-child { border-bottom: 0; }
.opt-row input { margin-top: 5px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.opt-row label { flex: 1; cursor: pointer; }
.opt-row .p { color: var(--txt-2); font-family: var(--ff-mono); font-size: var(--fs-xs); }
.opt-row small { display: block; color: var(--txt-3); font-size: var(--fs-xs); }

.notice {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r);
  background: rgba(255,176,32,.07); border: 1px solid rgba(255,176,32,.25);
  font-size: var(--fs-sm); color: #ffd79a;
}
.notice svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--warn); }
.notice--info { background: rgba(80,140,255,.07); border-color: rgba(80,140,255,.25); color: #b9cdff; }
.notice--info svg { color: #7fa8ff; }
.notice--ok { background: rgba(53,208,127,.08); border-color: rgba(53,208,127,.28); color: #a9edc9; }
.notice--ok svg { color: var(--ok); }

.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay {
  padding: 13px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface);
  font-size: var(--fs-xs); font-weight: 700; text-align: center; color: var(--txt-2);
  transition: all .22s var(--ease);
}
.pay[aria-pressed="true"] { border-color: var(--accent); color: var(--txt); background: rgba(255,45,32,.07); }
.pay:hover { color: var(--txt); }

/* ---------- 17. Invoice / settlement ---------- */
.inv-list { display: grid; gap: 12px; }
.inv-row {
  display: grid; gap: 12px; padding: 18px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  transition: border-color .25s var(--ease);
}
.inv-row:hover { border-color: var(--line-2); }
@media (min-width: 820px) { .inv-row { grid-template-columns: 150px minmax(0, 1fr) 136px 120px auto; } }
.inv-row__no { font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--txt-3); }
.inv-row__t { font-weight: 700; font-size: var(--fs-sm); }
.inv-row__t small { display: block; color: var(--txt-3); font-weight: 500; font-size: var(--fs-xs); }
.inv-row__amt { font-family: var(--ff-mono); font-weight: 800; }
@media (min-width: 820px) { .inv-row__amt { text-align: right; } }

.doc {
  position: relative;
  background: #fdfdfb; color: #16181d; border-radius: var(--r); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
}
.doc__wrap { overflow-x: auto; }
.doc__pad { padding: clamp(22px, 4vw, 46px); }
.doc__top { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; }
.doc__brand { display: flex; align-items: center; gap: 14px; }
.doc__logo { height: 34px; width: auto; flex: none; }
.doc__brand b { font-size: 1.0625rem; font-weight: 900; font-style: italic; letter-spacing: .02em; text-transform: uppercase; }
.doc__brand small { display: block; font-size: 9px; letter-spacing: .26em; color: #7b8290; text-transform: uppercase; }
.doc__title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; letter-spacing: -.03em; }
.doc__meta { font-size: var(--fs-xs); color: #6a7280; text-align: right; line-height: 1.9; }
.doc__meta b { color: #16181d; }
.doc__parties { display: grid; gap: 18px; margin-top: 26px; }
@media (min-width: 640px) { .doc__parties { grid-template-columns: 1fr 1fr; } }
.doc__party { border: 1px solid #e4e6ea; border-radius: 3px; padding: 14px 16px; font-size: var(--fs-xs); line-height: 1.9; color: #4b525e; }
.doc__party h4 { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #9aa1ad; margin-bottom: 6px; }
.doc__party b { color: #16181d; font-size: var(--fs-sm); }
.doc table { margin-top: 26px; font-size: var(--fs-sm); }
.doc thead th {
  background: #16181d; color: #fff; padding: 11px 12px; text-align: left;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800;
}
.doc tbody td { padding: 13px 12px; border-bottom: 1px solid #e8eaee; vertical-align: top; }
.doc tbody td small { display: block; color: #7b8290; font-size: var(--fs-xs); margin-top: 3px; }
.doc .num { text-align: right; font-family: var(--ff-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc__totals { margin-top: 20px; margin-left: auto; width: min(340px, 100%); font-size: var(--fs-sm); }
.doc__totals div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.doc__totals .grand {
  border-top: 2px solid #16181d; margin-top: 6px; padding-top: 12px;
  font-size: 1.1875rem; font-weight: 900;
}
.doc__totals .grand span:last-child { color: var(--accent); font-family: var(--ff-mono); }
.doc__foot {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid #e8eaee;
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end;
  font-size: var(--fs-xs); color: #6a7280; line-height: 1.9;
}
.seal {
  width: 104px; height: 104px; flex: none; border-radius: 50%;
  border: 2.5px solid rgba(255,45,32,.65); color: rgba(255,45,32,.78);
  display: grid; place-content: center; text-align: center; gap: 2px;
  transform: rotate(-9deg); font-weight: 900; letter-spacing: .04em;
}
.seal b { font-size: 13px; line-height: 1.15; display: block; }
.seal small { font-size: 7.5px; letter-spacing: .16em; }
.seal em { font-size: 8.5px; font-style: normal; letter-spacing: .1em; }
.doc__stamp {
  position: absolute; right: clamp(20px, 5vw, 60px); top: clamp(80px, 12vw, 150px);
  font-size: clamp(2rem, 6vw, 3.75rem); font-weight: 900; letter-spacing: -.02em;
  color: rgba(53,208,127,.16); border: 5px solid rgba(53,208,127,.16);
  padding: 6px 22px; transform: rotate(-14deg); text-transform: uppercase; pointer-events: none;
}

/* ---------- 18. Contact ---------- */
.contact-layout { display: grid; gap: 32px; }
@media (min-width: 940px) { .contact-layout { grid-template-columns: 1fr 1.15fr; gap: 56px; } }
.info-list { display: grid; gap: 2px; }
.info {
  display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.info__ico {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 3px; color: var(--accent);
}
.info__ico svg { width: 17px; height: 17px; }
.info__k { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--txt-3); font-weight: 800; }
.info__v { font-size: var(--fs-sm); margin-top: 3px; line-height: 1.6; }
.info__v a:hover { color: var(--accent); }
.map {
  aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: var(--r);
  position: relative; display: grid; place-content: center; gap: 8px; text-align: center;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 34px),
    linear-gradient(160deg, #10141a, #0a0c10);
  color: var(--txt-3); font-size: var(--fs-xs);
}
.map svg { width: 26px; height: 26px; margin-inline: auto; color: var(--accent); }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 620px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: var(--fs-sm); color: var(--txt-2); }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.req { color: var(--accent); }

/* ---------- 19. Misc blocks ---------- */
/* program detail: media + "what's included" side by side */
.pd-split { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .pd-split { grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 4vw, 60px); align-items: center; }
}

.feature-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feature-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.feature__ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 3px; background: var(--accent-dim); color: var(--accent-hi); margin-bottom: 16px; }
.feature__ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.feature p { font-size: var(--fs-sm); color: var(--txt-2); line-height: 1.7; }

.timeline { display: grid; gap: 0; }
.tl {
  display: grid; gap: 4px 22px; padding: 20px 0; border-bottom: 1px solid var(--line);
  grid-template-columns: 76px 1fr;
}
@media (min-width: 700px) { .tl { grid-template-columns: 110px 1fr; padding: 24px 0; } }
.tl__y { font-family: var(--ff-mono); font-weight: 800; color: var(--accent); font-size: var(--fs-sm); }
.tl__t { font-weight: 700; font-size: var(--fs-sm); }
.tl__d { grid-column: 2; color: var(--txt-2); font-size: var(--fs-xs); }

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 800px) { .people { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.person { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.person__media { aspect-ratio: 3/4; }
.person__body { padding: 14px 16px; }
.person__no { font-family: var(--ff-mono); font-size: 10px; color: var(--accent); font-weight: 800; letter-spacing: .1em; }
.person__n { font-weight: 800; letter-spacing: -.02em; margin-top: 3px; }
.person__r { font-size: var(--fs-xs); color: var(--txt-3); margin-top: 2px; }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; gap: 16px; align-items: center; justify-content: space-between;
  padding: 20px 2px; text-align: left; font-weight: 700; font-size: var(--fs-body); letter-spacing: -.015em;
}
.faq__q:hover { color: var(--accent); }
.faq__ico { width: 15px; height: 15px; flex: none; color: var(--txt-3); transition: transform .3s var(--ease); }
.faq__q[aria-expanded="true"] .faq__ico { transform: rotate(45deg); color: var(--accent); }
.faq__a { display: none; padding: 0 2px 22px; color: var(--txt-2); font-size: var(--fs-sm); line-height: 1.8; max-width: 78ch; }
.faq__a.is-open { display: block; }

.cta-band { position: relative; overflow: hidden; border-block: 1px solid var(--line); }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 120% at 80% 50%, rgba(255,45,32,.22), transparent 60%),
    repeating-linear-gradient(112deg, rgba(255,255,255,.03) 0 1px, transparent 1px 24px),
    linear-gradient(90deg, #0b0e13, #101419);
}
.cta-band__inner {
  position: relative; padding-block: clamp(44px, 6vw, 78px);
  display: grid; gap: 24px; align-items: center;
}
@media (min-width: 880px) { .cta-band__inner { grid-template-columns: 1fr auto; gap: 40px; } }

/* marquee ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: #0b0d11; padding: 11px 0; }
.ticker__track { display: flex; gap: 42px; width: max-content; animation: slide 34s linear infinite; }
.ticker__track span {
  display: inline-flex; align-items: center; gap: 42px;
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--txt-3); white-space: nowrap;
}
.ticker__track span::after { content: "◆"; color: var(--accent); font-size: 8px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 20. Role switcher (prototype only) ---------- */
.rolesw {
  position: fixed; z-index: 95; right: 14px; bottom: 14px;
  font-size: var(--fs-xs);
}
.rolesw__btn {
  display: flex; align-items: center; gap: 9px; padding: 10px 14px;
  background: rgba(13,15,19,.94); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-radius: 100px;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.9); font-weight: 700;
}
.rolesw__btn:hover { border-color: var(--accent); }
.rolesw__btn svg { width: 15px; height: 15px; color: var(--accent); }
.rolesw__panel {
  position: absolute; right: 0; bottom: calc(100% + 10px); width: min(304px, calc(100vw - 28px));
  background: rgba(13,15,19,.97); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px;
  box-shadow: 0 28px 56px -18px rgba(0,0,0,.95);
  display: none;
}
.rolesw__panel.is-open { display: block; }
.rolesw__h { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--txt-3); font-weight: 800; margin-bottom: 10px; }
.rolesw__opt {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 10px 11px; border-radius: 3px; border: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.rolesw__opt:hover { background: rgba(255,255,255,.05); }
.rolesw__opt[aria-pressed="true"] { border-color: var(--accent); background: rgba(255,45,32,.08); }
.rolesw__opt b { display: block; font-size: var(--fs-sm); }
.rolesw__opt small { color: var(--txt-3); font-size: 11px; }
.rolesw__note { margin-top: 10px; font-size: 10.5px; color: var(--txt-3); line-height: 1.6; }

/* ---------- 21. Toast ---------- */
.toast-wrap { position: fixed; z-index: 99; left: 50%; bottom: 80px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 28px)); }
@media (min-width: 640px) { .toast-wrap { bottom: 74px; left: auto; right: 18px; transform: none; } }
.toast {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px;
  background: rgba(18,21,27,.97); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-left: 3px solid var(--accent);
  border-radius: 3px; font-size: var(--fs-sm); box-shadow: 0 20px 44px -16px rgba(0,0,0,.9);
  animation: toastIn .34s var(--ease);
}
.toast--ok { border-left-color: var(--ok); }
.toast svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent); }
.toast--ok svg { color: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- 22. Reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .09s; } .rv-d2 { transition-delay: .18s; } .rv-d3 { transition-delay: .27s; }

/* ---------- 23. Helpers ---------- */
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200; padding: 12px 18px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: var(--fs-sm);
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* 헤더 역할 배지처럼 데스크톱에서만 보여야 하는 요소 */
.only-de { display: none; }
@media (min-width: 900px) { .only-de { display: block; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}

@media print {
  .hdr, .ftr, .rolesw, .drawer, .toast-wrap, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .doc { box-shadow: none; }
}
