/* =========================================================
   청년환생교육원 SYSTEM PAGE CSS
   - 외부 폰트 호출 없음: Pretendard는 사용자의 PC/프로젝트에 설치된 폰트를 사용합니다.
   - 강제 우선순위 선언 없음: 선택자 우선순위를 기준으로 정리했습니다.
   - HTML 구조: refactored_system.html
   - JS 구조: system.js
   ========================================================= */

/* ---------------------------------------------------------
   01. Design Tokens / Reset
   --------------------------------------------------------- */
:root {
  --color-navy: #2a3b57;
  --color-navy-dark: #18374f;
  --color-brown: #7a4b4b;
  --color-brown-soft: #d07a8d;
  --color-blue-gray: #8fa3b8;
  --color-bg: #f9f9f9;
  --color-text: #1d2635;
  --color-soft-text: rgba(29, 38, 53, 0.68);
  --color-line: rgba(0, 0, 0, 0.16);
  --color-white: #ffffff;

  --header-height: 82px;
  --container-width: min(calc(100% - 48px), 1872px);
  --card-width: min(calc(100% - 48px), 1080px);

  --shadow-card: 0 16px 34px rgba(15, 23, 42, 0.13);
  --shadow-pink-card:
    0 20px 48px rgba(190, 142, 154, 0.22), 0 0 90px rgba(237, 188, 200, 0.28);

  --pink-bg-side: rgba(239, 173, 190, 0.66);
  --pink-bg-top: #faeef2;
  --pink-bg-mid: #f2bdcc;
  --pink-text: #9a6876;
  --pink-accent: #d07a8d;
  --pink-line: rgba(226, 190, 198, 0.62);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-text);
  background: transparent;
  font-family:
    "Pretendard",
    "Pretendard Variable",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  word-break: keep-all;
  overflow-x: hidden;
  letter-spacing: -0.04em;
  transition: color 0.9s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      circle at 50% 12%,
      rgba(255, 255, 255, 0.84),
      transparent 27%
    ),
    linear-gradient(
      90deg,
      var(--pink-bg-side) 0%,
      rgba(249, 249, 249, 0.1) 18%,
      rgba(249, 249, 249, 0.1) 82%,
      var(--pink-bg-side) 100%
    ),
    linear-gradient(
      180deg,
      var(--pink-bg-top) 0%,
      #f6d0db 20%,
      var(--pink-bg-mid) 52%,
      #f6d3dd 80%,
      var(--pink-bg-top) 100%
    );
  transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-flower-mode::before {
  opacity: 1;
}

/* ---------------------------------------------------------
   02. Header / Navigation
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition:
    background 0.9s ease,
    border-color 0.9s ease,
    box-shadow 0.9s ease;
}

.site-header__inner {
  width: var(--container-width);
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
}

.site-header__brand {
  grid-column: 2 / span 4;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-navy-dark);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.9s ease;
}

.site-header__logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 32px;
}

.site-nav {
  grid-column: 8 / span 5;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  width: 94px;
  height: var(--header-height);
  display: grid;
  place-items: center;
  color: #000000;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition:
    color 0.22s ease,
    font-weight 0.22s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 15px;
  width: 88px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-navy-dark);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center center;
  transition: transform 0.24s ease;
}

.site-nav a.is-active {
  color: var(--color-navy-dark);
  font-weight: 800;
}

.site-nav a.is-active::after {
  transform: translateX(-50%) scaleX(1);
}

.site-nav:hover a.is-active:not(:hover) {
  color: #000000;
  font-weight: 500;
}

.site-nav:hover a.is-active:not(:hover)::after {
  transform: translateX(-50%) scaleX(0);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-navy-dark);
  font-weight: 800;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

body.is-flower-mode .site-header {
  background: rgba(255, 245, 248, 0.96);
  border-bottom-color: rgba(214, 176, 184, 0.28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

body.is-flower-mode .site-header__brand,
body.is-flower-mode .site-nav a {
  color: rgba(136, 103, 112, 0.84);
}

body.is-flower-mode .site-nav a.is-active,
body.is-flower-mode .site-nav a:hover,
body.is-flower-mode .site-nav a:focus-visible {
  color: var(--pink-text);
}

body.is-flower-mode .site-nav a::after {
  background: #db879a;
}

.closing-note {
  margin-top: 60px;
  padding-top: 0;
  border-top: 0;
  color: rgba(0, 0, 0, 0.76);
  font-size: 24px;
  font-weight: 800;
  line-height: 2;
  letter-spacing: -0.045em;
  text-align: center;
}

/* ---------------------------------------------------------
   03. Page Frame / Hero
   --------------------------------------------------------- */
main {
  width: 100%;
  margin: 0;
  padding: var(--header-height) 0 130px;
}

.page-hero,
.system-card,
.page-footer {
  position: relative;
  z-index: 1;
}

.page-hero {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  padding: clamp(90px, 11vw, 150px) 24px;
  text-align: center;
}

.page-hero > .reveal {
  width: min(100%, 900px);
}

.page-hero__label {
  margin: 0 0 26px;
  color: rgba(104, 115, 139, 0.9);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(66px, 10vw, 146px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.12em;
}

.page-hero p:last-child {
  width: min(100%, 780px);
  margin: 50px auto 0;
  color: rgba(29, 38, 53, 0.68);
  font-size: clamp(23px, 1.8vw, 28px);
  font-weight: 500;
  line-height: 2.05;
  letter-spacing: -0.045em;
}

/* ---------------------------------------------------------
   04. System Card / Card Header
   --------------------------------------------------------- */
.system-card {
  width: var(--card-width);
  margin: 0 auto;
  padding: 60px 96px 0px;
  background: var(--color-white);
  border: 0;
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  transition:
    background 0.9s ease,
    box-shadow 0.9s ease,
    border-color 0.9s ease;
}

.system-card__head {
  padding-bottom: 120px;
  text-align: center;
  border-bottom: 1px solid var(--color-line);
  scroll-margin-top: 104px;
}

.section-label {
  margin: 0 0 24px;
  color: rgba(0, 0, 0, 0.54);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.system-card__head .section-label {
  color: var(--color-navy);
  font-size: 17px;
  letter-spacing: -0.045em;
  text-transform: none;
}

.system-card__head h2,
.flower-intro h2 {
  margin: 0;
  color: var(--color-navy);
  font-size: 64px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.085em;
}

.system-card__head p,
.flower-intro p {
  max-width: 820px;
  margin: 42px auto 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 18px;
  font-weight: 500;
  line-height: 2.2;
  letter-spacing: -0.045em;
}

.notice-time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.notice-time-card,
.roll-call-card,
.example-table,
.dialogue-panel,
.flower-note-box,
.settlement-example-card {
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 24px;
  background: rgba(42, 59, 87, 0.035);
}

.notice-time-card {
  min-height: 190px;
  padding: 36px 24px;
  text-align: center;
}

.notice-time-card span,
.roll-call-card span {
  display: block;
  color: var(--color-brown);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.notice-time-card strong,
.roll-call-card strong {
  display: block;
  margin-top: 16px;
  color: var(--color-navy);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.notice-time-card p,
.roll-call-card p {
  margin: 16px 0 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
}

/* ---------------------------------------------------------
   05. General System Sections
   --------------------------------------------------------- */
.system-section {
  position: relative;
  padding: 84px 0 92px;
  border-bottom: 1px solid var(--color-line);
  scroll-margin-top: 104px;
}

.system-section:last-child {
  border-bottom: 0;
}

.system-section::before {
  content: attr(data-no);
  position: absolute;
  right: 8px;
  top: 82px;
  color: rgba(42, 59, 87, 0.15);
  font-size: 76px;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
  pointer-events: none;
}

.system-section h3 {
  max-width: calc(100% - 110px);
  margin: 0;
  color: var(--color-navy);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.065em;
}

.system-section p,
.system-section li {
  color: rgba(0, 0, 0, 0.62);
  font-size: 19px;
  font-weight: 500;
  line-height: 2.15;
  letter-spacing: -0.045em;
}

.system-section p {
  margin: 34px 0 0;
}

.system-section strong {
  color: rgba(0, 0, 0, 0.78);
  font-weight: 800;
}

.section-lead {
  max-width: 820px;
}

.roll-call-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.roll-call-card {
  padding: 36px;
}

.rule-list,
.condition-list {
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-line);
}

.rule-list li,
.condition-list li {
  position: relative;
  padding: 28px 0 28px 34px;
  border-bottom: 1px solid var(--color-line);
}

.rule-list li::before,
.condition-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 44px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-blue-gray);
}

.subheading {
  margin: 48px 0 0;
  color: var(--color-navy);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.example-table {
  margin-top: 42px;
  overflow: hidden;
}

.example-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  border-bottom: 1px solid rgba(0, 0, 0, 0.13);
}

.example-row:last-child {
  border-bottom: 0;
}

.example-row b,
.example-row span {
  padding: 24px 28px;
  color: rgba(0, 0, 0, 0.62);
  font-size: 18px;
  font-weight: 500;
  line-height: 2;
}

.example-row b {
  color: var(--color-brown);
  font-weight: 700;
}

/* ---------------------------------------------------------
   06. Flower Card Game / Pink Mode Sections
   --------------------------------------------------------- */
.flower-intro {
  padding: 120px 0 76px;
  text-align: center;
  border-bottom: 1px solid var(--color-line);
  scroll-margin-top: 104px;
}

.flower-intro .section-label,
.system-section--flower .section-label,
.system-section--flower h3,
.system-section--flower .section-lead strong,
.system-section--flower .subheading,
.system-section--flower .example-row b,
.system-section--flower .condition-list b {
  color: var(--color-brown);
}

.system-section--flower::before {
  color: rgba(122, 75, 75, 0.17);
}

.flower-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.flower-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  padding: 20px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(122, 75, 75, 0.18);
  border-radius: 18px;
  background: rgba(255, 244, 247, 0.62);
}

.flower-card::after {
  content: attr(data-hanja);
  position: absolute;
  right: 8px;
  bottom: -10px;
  z-index: 0;
  color: rgba(194, 153, 167, 0.22);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 66px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.flower-card strong,
.flower-card span {
  position: relative;
  z-index: 1;
}

.flower-card strong {
  color: var(--color-brown);
  font-size: 19px;
  font-weight: 800;
}

.flower-card span {
  margin-top: 14px;
  color: rgba(122, 75, 75, 0.74);
  font-size: 16px;
  font-weight: 600;
}

.flower-note-box {
  margin-top: 24px;
  padding: 28px 34px;
  background: rgba(255, 255, 255, 0.5);
}

.flower-note-box p {
  margin: 0;
  color: rgba(122, 75, 75, 0.78);
  font-size: 18px;
  line-height: 2;
}

.flower-note-box p + p {
  margin-top: 10px;
}

.settlement-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.settlement-example-card {
  min-height: 170px;
  padding: 36px;
}

.settlement-example-label {
  display: block;
  color: #c97a77;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.settlement-example-card strong {
  display: block;
  margin-top: 16px;
  color: #8c5050;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.06em;
}

.settlement-example-card p {
  margin: 16px 0 0;
}

.settlement-note {
  margin-top: 34px;
}

/* ---------------------------------------------------------
   07. Dialogue / 까돌이 AI 대화 예시
   --------------------------------------------------------- */
.dialogue-panel {
  margin-top: 48px;
  padding: 36px;
}

.panel-title {
  margin: 0 0 28px;
  color: var(--color-navy);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.055em;
}

.dialogue-chat {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.chat-bubble {
  max-width: 78%;
  padding: 22px 26px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  color: rgba(0, 0, 0, 0.62);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: -0.045em;
}

.chat-bubble--user {
  justify-self: end;
  background: rgba(143, 163, 184, 0.18);
}

@media (max-width: 760px) {
  .dialogue-panel {
    padding: 26px;
  }

  .panel-title {
    font-size: 22px;
  }

  .chat-bubble {
    max-width: 100%;
    font-size: 16px;
  }
}

/* ---------------------------------------------------------
   16. Footer
   --------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 28px 0 30px;
  background: #2f4368;
}

.footer__layout {
  width: fit-content;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  color: #ffffff;
}

.footer__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.footer__mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.footer__brand-text {
  min-width: 0;
  text-align: left;
}

.footer__brand-text strong {
  display: block;
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.footer__brand-text span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.footer__note {
  width: 900px;
  max-width: 100%;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.025em;
  text-align: left;
  word-break: keep-all;
}

@media (max-width: 760px) {
  .footer {
    padding: 28px 0 32px;
  }

  .footer__layout {
    max-width: calc(100% - 24px);
  }

  .footer__top {
    gap: 10px;
  }

  .footer__mark {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .footer__brand-text strong {
    font-size: 16px;
  }

  .footer__brand-text span {
    font-size: 12px;
  }

  .footer__note {
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.75;
  }
}

/* ---------------------------------------------------------
   08. Flower Mode Color Overrides
   --------------------------------------------------------- */
body.is-flower-mode .system-card {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(255, 247, 249, 0.99)
    ),
    #fff8fa;
  border-color: var(--pink-line);
  box-shadow: var(--shadow-pink-card);
}

body.is-flower-mode .system-card__head,
body.is-flower-mode .system-section,
body.is-flower-mode .flower-intro,
body.is-flower-mode .rule-list,
body.is-flower-mode .condition-list,
body.is-flower-mode .rule-list li,
body.is-flower-mode .condition-list li,
body.is-flower-mode .example-row {
  border-color: var(--pink-line);
}

body.is-flower-mode .section-label {
  color: rgba(208, 121, 142, 0.98);
}

body.is-flower-mode .page-hero h1,
body.is-flower-mode .system-card__head h2,
body.is-flower-mode .system-section h3,
body.is-flower-mode .notice-time-card strong,
body.is-flower-mode .roll-call-card strong,
body.is-flower-mode .panel-title,
body.is-flower-mode strong {
  color: var(--pink-text);
}

body.is-flower-mode .page-hero p:last-child,
body.is-flower-mode .system-card__head p,
body.is-flower-mode .system-section p,
body.is-flower-mode .system-section li,
body.is-flower-mode .example-row span,
body.is-flower-mode .chat-bubble,
body.is-flower-mode .settlement-note {
  color: rgba(127, 109, 114, 0.9);
}

body.is-flower-mode .system-section--flower .section-label,
body.is-flower-mode .system-section--flower h3,
body.is-flower-mode .flower-intro h2,
body.is-flower-mode .condition-list b,
body.is-flower-mode .example-row b,
body.is-flower-mode .flower-card strong,
body.is-flower-mode .settlement-example-label {
  color: var(--pink-accent);
}

body.is-flower-mode .system-section--flower::before {
  color: rgba(216, 164, 177, 0.6);
}

body.is-flower-mode .notice-time-card,
body.is-flower-mode .roll-call-card,
body.is-flower-mode .example-table,
body.is-flower-mode .dialogue-panel,
body.is-flower-mode .flower-card,
body.is-flower-mode .flower-note-box,
body.is-flower-mode .settlement-example-card,
body.is-flower-mode .chat-bubble {
  background: rgba(255, 243, 246, 0.95);
  border-color: var(--pink-line);
}

body.is-flower-mode .flower-card::after {
  color: rgba(218, 180, 192, 0.28);
}

body.is-flower-mode .chat-bubble--user {
  background: rgba(252, 228, 234, 0.98);
}

/* ---------------------------------------------------------
   09. Reveal Motion
   - 기본은 보이게
   - JS가 정상 실행될 때만 대기 상태를 붙여 애니메이션 처리
   --------------------------------------------------------- */

.reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

/* JS가 붙이는 대기 상태 */
.reveal.is-reveal-pending {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  filter: blur(14px);
  transition:
    opacity 0.95s ease var(--reveal-delay, 0ms),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    filter 0.95s ease var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

/* 화면에 들어오면 표시 */
.reveal.is-reveal-pending.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

/* ---------------------------------------------------------
   17. Responsive / Header / Mobile Menu
   - 모바일: 320px ~ 767px
   - 태블릿: 768px ~ 1023px
   - 노트북: 1024px ~ 1439px
   - 데스크탑: 1440px 이상
   --------------------------------------------------------- */

/* =========================================================
   Header Fix
   - 현재 HTML의 .header 계열 class 기준
   ========================================================= */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition:
    background 0.9s ease,
    border-color 0.9s ease,
    box-shadow 0.9s ease;
}

.header__inner {
  width: var(--container-width);
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
}

.header__logo {
  grid-column: 2 / span 4;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-navy-dark);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.9s ease;
}

.header__logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 40px;
}

.header__nav {
  grid-column: 8 / span 5;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 30px;
}

.header__nav a {
  position: relative;
  width: 94px;
  height: var(--header-height);
  display: grid;
  place-items: center;
  color: #000000;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition:
    color 0.22s ease,
    font-weight 0.22s ease;
}

.header__nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 15px;
  width: 88px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-navy-dark);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center center;
  transition: transform 0.24s ease;
}

.header__nav a.is-active {
  color: var(--color-navy-dark);
  font-weight: 800;
}

.header__nav a.is-active::after {
  transform: translateX(-50%) scaleX(1);
}

.header__nav:hover a.is-active:not(:hover) {
  color: #000000;
  font-weight: 500;
}

.header__nav:hover a.is-active:not(:hover)::after {
  transform: translateX(-50%) scaleX(0);
}

.header__nav a:hover,
.header__nav a:focus-visible {
  color: var(--color-navy-dark);
  font-weight: 800;
}

.header__nav a:hover::after,
.header__nav a:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

body.is-flower-mode .header {
  background: rgba(255, 245, 248, 0.96);
  border-bottom-color: rgba(214, 176, 184, 0.28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

body.is-flower-mode .header__logo,
body.is-flower-mode .header__nav a {
  color: rgba(136, 103, 112, 0.84);
}

body.is-flower-mode .header__nav a.is-active,
body.is-flower-mode .header__nav a:hover,
body.is-flower-mode .header__nav a:focus-visible {
  color: var(--pink-text);
}

body.is-flower-mode .header__nav a::after {
  background: #db879a;
}

.mobile-menu-button {
  display: none;
}

.mobile-menu {
  display: none;
}

body.mobile-menu-open {
  overflow: hidden;
}

/* =========================================================
   데스크탑: 1440px 이상
   ========================================================= */

@media (min-width: 1440px) {
  :root {
    --header-height: 82px;
    --container-width: min(calc(100% - 48px), 1872px);
    --card-width: min(calc(100% - 48px), 1080px);
  }

  .system-card {
    padding: 170px 96px 120px;
  }

  .notice-time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .roll-call-grid,
  .settlement-example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flower-card-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* =========================================================
   노트북: 1024px ~ 1439px
   ========================================================= */

@media (min-width: 1024px) and (max-width: 1439px) {
  :root {
    --header-height: 78px;
    --container-width: min(calc(100% - 44px), 1180px);
    --card-width: min(calc(100% - 44px), 1040px);
  }

  .header__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 20px;
  }

  .header__logo {
    grid-column: 1 / span 5;
    font-size: 23px;
  }

  .header__nav {
    grid-column: 7 / span 6;
    gap: 18px;
  }

  .header__nav a {
    width: 82px;
    font-size: 17px;
  }

  .page-hero {
    min-height: 820px;
  }

  .page-hero h1 {
    font-size: clamp(76px, 9vw, 124px);
  }

  .page-hero p:last-child {
    font-size: 24px;
  }

  .system-card {
    padding: 150px 80px 110px;
  }

  .system-card__head {
    padding-bottom: 104px;
  }

  .system-card__head h2,
  .flower-intro h2 {
    font-size: 58px;
  }

  .system-section {
    padding: 78px 0 86px;
  }

  .system-section h3 {
    font-size: 38px;
  }

  .notice-time-grid {
    gap: 20px;
  }

  .notice-time-card {
    padding: 32px 22px;
  }

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

  .flower-card::after {
    font-size: 58px;
  }
}

/* =========================================================
   태블릿: 768px ~ 1023px
   ========================================================= */

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --header-height: 74px;
    --container-width: min(calc(100% - 40px), 920px);
    --card-width: min(calc(100% - 40px), 920px);
  }

  .header__inner {
    width: var(--container-width);
    grid-template-columns: repeat(8, minmax(0, 1fr));
    column-gap: 18px;
  }

  .header__logo {
    grid-column: 1 / span 4;
    font-size: 21px;
    letter-spacing: 0.03em;
  }

  .header__logo-img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .header__nav {
    grid-column: 5 / span 4;
    gap: 10px;
  }

  .header__nav a {
    width: 70px;
    height: var(--header-height);
    font-size: 16px;
  }

  .header__nav a::after {
    width: 62px;
    bottom: 13px;
  }

  main {
    padding-bottom: 100px;
  }

  .page-hero {
    min-height: 740px;
    padding: 120px 24px;
  }

  .page-hero__label {
    font-size: 16px;
    letter-spacing: 0.24em;
  }

  .page-hero h1 {
    white-space: normal;
    font-size: clamp(66px, 10vw, 96px);
  }

  .page-hero p:last-child {
    font-size: 20px;
    line-height: 2;
  }

  .system-card {
    padding: 120px 56px 96px;
    border-radius: 24px;
  }

  .system-card__head {
    padding-bottom: 90px;
  }

  .system-card__head h2,
  .flower-intro h2 {
    font-size: 52px;
  }

  .system-card__head p,
  .flower-intro p {
    font-size: 17px;
    line-height: 2.05;
  }

  .notice-time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .notice-time-card {
    min-height: 170px;
    padding: 28px 18px;
  }

  .notice-time-card span,
  .roll-call-card span {
    font-size: 15px;
  }

  .notice-time-card strong,
  .roll-call-card strong {
    font-size: 28px;
  }

  .notice-time-card p,
  .roll-call-card p {
    font-size: 15px;
  }

  .system-section {
    padding: 74px 0 82px;
  }

  .system-section::before {
    right: 0;
    top: 72px;
    font-size: 64px;
  }

  .system-section h3 {
    max-width: calc(100% - 84px);
    font-size: 36px;
  }

  .system-section p,
  .system-section li {
    font-size: 17px;
    line-height: 2.05;
  }

  .roll-call-grid,
  .settlement-example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .roll-call-card,
  .settlement-example-card,
  .dialogue-panel {
    padding: 30px;
  }

  .flower-intro {
    padding: 100px 0 70px;
  }

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

  .flower-card {
    aspect-ratio: 1 / 0.94;
  }

  .flower-note-box {
    padding: 26px 30px;
  }

  .example-row {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .example-row b,
  .example-row span {
    padding: 20px 22px;
    font-size: 16px;
  }

  .condition-list li,
  .rule-list li {
    padding: 24px 0 24px 30px;
  }

  .chat-bubble {
    max-width: 88%;
    font-size: 17px;
  }
}

/* =========================================================
   모바일 / 스마트폰: 320px ~ 767px
   ========================================================= */

@media (min-width: 320px) and (max-width: 767px) {
  :root {
    --header-height: 70px;
    --container-width: min(calc(100% - 32px), 520px);
    --card-width: min(calc(100% - 24px), 520px);
  }

  .header__inner {
    width: var(--container-width);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header__logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .header__logo-img {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
  }

  .header__nav {
    display: none;
  }

  .mobile-menu-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-grid;
    place-items: center;
    gap: 5px;
    padding: 9px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }

  .mobile-menu-button span {
    width: 24px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--color-navy-dark);
    transition:
      transform 0.24s ease,
      opacity 0.24s ease;
  }

  body.is-flower-mode .mobile-menu-button span {
    background: var(--pink-text);
  }

  body.mobile-menu-open .mobile-menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.mobile-menu-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-menu-open .mobile-menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-menu.is-open {
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-menu__dim {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(5, 9, 16, 0.48);
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.28s ease;
  }

  .mobile-menu.is-open .mobile-menu__dim {
    opacity: 1;
  }

  .mobile-menu__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(82vw, 320px);
    height: 100%;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    box-shadow: 24px 0 50px rgba(0, 0, 0, 0.22);
    transform: translateX(-100%);
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
  }

  .mobile-menu__head {
    margin-bottom: 34px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(42, 59, 87, 0.14);
  }

  .mobile-menu__head p {
    margin: 0;
    color: var(--color-navy-dark);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.16em;
  }

  .mobile-menu__close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(42, 59, 87, 0.08);
    color: var(--color-navy-dark);
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-menu__panel a {
    position: relative;
    padding: 18px 4px;
    color: #111111;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.045em;
    text-decoration: none;
    border-bottom: 1px solid rgba(42, 59, 87, 0.1);
    transition:
      color 0.2s ease,
      padding-left 0.2s ease;
  }

  .mobile-menu__panel a:hover,
  .mobile-menu__panel a:focus-visible,
  .mobile-menu__panel a.is-active {
    padding-left: 10px;
    color: var(--color-navy-dark);
  }

  .mobile-menu__panel a.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 24px;
    border-radius: 999px;
    background: var(--color-navy-dark);
    transform: translateY(-50%);
  }

  main {
    padding-bottom: 72px;
  }

  .page-hero {
    min-height: 640px;
    padding: 96px 18px 88px;
  }

  .page-hero__label {
    margin-bottom: 18px;
    font-size: 13px;
    letter-spacing: 0.18em;
  }

  .page-hero h1 {
    white-space: normal;
    font-size: clamp(48px, 15vw, 70px);
    line-height: 0.92;
    letter-spacing: -0.1em;
  }

  .page-hero p:last-child {
    margin-top: 34px;
    font-size: 16px;
    line-height: 1.95;
  }

  .page-hero p:last-child br {
    display: none;
  }

  .system-card {
    width: var(--card-width);
    padding: 82px 22px 72px;
    border-radius: 22px;
  }

  .system-card__head {
    padding-bottom: 70px;
  }

  .section-label {
    margin-bottom: 18px;
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .system-card__head .section-label {
    font-size: 14px;
  }

  .system-card__head h2,
  .flower-intro h2 {
    font-size: clamp(38px, 12vw, 52px);
    line-height: 1.12;
  }

  .system-card__head p,
  .flower-intro p {
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.95;
  }

  .notice-time-grid,
  .roll-call-grid,
  .settlement-example-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 34px;
  }

  .notice-time-card,
  .roll-call-card,
  .settlement-example-card,
  .dialogue-panel,
  .flower-note-box {
    padding: 24px 22px;
    border-radius: 18px;
  }

  .notice-time-card {
    min-height: auto;
  }

  .notice-time-card span,
  .roll-call-card span {
    font-size: 14px;
  }

  .notice-time-card strong,
  .roll-call-card strong,
  .settlement-example-card strong {
    margin-top: 10px;
    font-size: 26px;
  }

  .notice-time-card p,
  .roll-call-card p,
  .settlement-example-card p,
  .flower-note-box p {
    font-size: 15px;
    line-height: 1.85;
  }

  .system-section {
    padding: 64px 0 72px;
  }

  .system-section::before {
    right: 0;
    top: 64px;
    font-size: 52px;
  }

  .system-section h3 {
    max-width: calc(100% - 62px);
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.18;
  }

  .system-section p,
  .system-section li {
    font-size: 15px;
    line-height: 1.95;
  }

  .system-section p {
    margin-top: 26px;
  }

  .section-lead {
    max-width: 100%;
  }

  .rule-list,
  .condition-list {
    margin-top: 34px;
  }

  .rule-list li,
  .condition-list li {
    padding: 22px 0 22px 28px;
  }

  .rule-list li::before,
  .condition-list li::before {
    top: 34px;
    width: 7px;
    height: 7px;
  }

  .subheading {
    margin-top: 38px;
    font-size: 20px;
  }

  .example-table {
    margin-top: 34px;
    border-radius: 18px;
  }

  .example-row {
    grid-template-columns: 1fr;
  }

  .example-row b,
  .example-row span {
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.8;
  }

  .example-row b {
    padding-bottom: 0;
  }

  .flower-intro {
    padding: 84px 0 60px;
  }

  .flower-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
  }

  .flower-card {
    aspect-ratio: 1 / 1.05;
    padding: 18px 10px 14px;
    border-radius: 16px;
  }

  .flower-card::after {
    right: 6px;
    bottom: -8px;
    font-size: 52px;
  }

  .flower-card strong {
    font-size: 17px;
  }

  .flower-card span {
    margin-top: 10px;
    font-size: 14px;
  }

  .condition-list li {
    display: block;
  }

  .settlement-example-label {
    font-size: 14px;
  }

  .dialogue-panel {
    margin-top: 34px;
  }

  .panel-title {
    margin-bottom: 20px;
    font-size: 22px;
  }

  .dialogue-chat {
    gap: 14px;
    margin-top: 24px;
  }

  .chat-bubble {
    max-width: 100%;
    padding: 18px 20px;
    font-size: 15px;
    line-height: 1.85;
  }

  .closing-note {
    margin-top: 52px;
    font-size: 18px;
    line-height: 1.9;
  }

  .footer {
    padding: 28px 0 32px;
  }

  .footer__layout {
    max-width: calc(100% - 24px);
  }

  .footer__top {
    gap: 10px;
  }

  .footer__mark {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .footer__brand-text strong {
    font-size: 16px;
  }

  .footer__brand-text span {
    font-size: 12px;
  }

  .footer__note {
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.75;
  }
}

/* =========================================================
   아주 작은 모바일 보정: 320px ~ 374px
   ========================================================= */

@media (min-width: 320px) and (max-width: 374px) {
  :root {
    --container-width: min(calc(100% - 24px), 340px);
    --card-width: min(calc(100% - 20px), 340px);
  }

  .header__logo span {
    display: none;
  }

  .mobile-menu__panel {
    width: min(86vw, 300px);
    padding: 26px 20px;
  }

  .page-hero h1 {
    font-size: 44px;
  }

  .system-card {
    padding: 72px 18px 64px;
  }

  .system-card__head h2,
  .flower-intro h2 {
    font-size: 34px;
  }

  .system-section h3 {
    font-size: 28px;
  }

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

/* ---------------------------------------------------------
   Flower Card Mobile Friendly Layout
   - 모바일에서 꽃놀이패 카드를 세로 리스트형으로 정리
   - 기존 색감과 분위기는 유지
   --------------------------------------------------------- */

@media (max-width: 767px) {
  .flower-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }

  .flower-card {
    aspect-ratio: auto;
    min-height: 86px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "name number";
    align-items: center;
    justify-content: stretch;
    border-radius: 18px;
    text-align: left;
  }

  .flower-card::after {
    right: 16px;
    bottom: -14px;
    font-size: 58px;
    opacity: 0.72;
  }

  .flower-card strong {
    grid-area: name;
    font-size: 18px;
    line-height: 1.2;
  }

  .flower-card span {
    grid-area: number;
    min-width: 62px;
    margin-top: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: rgba(122, 75, 75, 0.72);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
  }
}

/* 더 작은 모바일 보정 */
@media (max-width: 374px) {
  .flower-card {
    min-height: 78px;
    padding: 16px 16px;
  }

  .flower-card::after {
    right: 12px;
    bottom: -12px;
    font-size: 50px;
  }

  .flower-card strong {
    font-size: 17px;
  }

  .flower-card span {
    min-width: 56px;
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* ---------------------------------------------------------
   Mobile Header / Menu
   - 현재 HTML class 이름 기준
   - 모바일에서 햄버거 메뉴 출력
   --------------------------------------------------------- */

.mobile-menu-button {
  display: none;
}

.mobile-menu {
  display: none;
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (min-width: 320px) and (max-width: 767px) {
  .site-header {
    height: var(--header-height);
  }

  .header-inner {
    width: var(--container-width);
    height: var(--header-height);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--color-navy-dark);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
    text-decoration: none;
  }

  .brand-logo {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    object-fit: contain;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-grid;
    place-items: center;
    gap: 5px;
    padding: 9px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }

  .mobile-menu-button span {
    width: 24px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--color-navy-dark);
    transition:
      transform 0.24s ease,
      opacity 0.24s ease;
  }

  body.mobile-menu-open .mobile-menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.mobile-menu-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-menu-open .mobile-menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-menu.is-open {
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-menu__dim {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(5, 9, 16, 0.48);
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.28s ease;
  }

  .mobile-menu.is-open .mobile-menu__dim {
    opacity: 1;
  }

  .mobile-menu__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(82vw, 320px);
    height: 100%;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    box-shadow: 24px 0 50px rgba(0, 0, 0, 0.22);
    transform: translateX(-100%);
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
  }

  .mobile-menu__head {
    margin-bottom: 34px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(42, 59, 87, 0.14);
  }

  .mobile-menu__head p {
    margin: 0;
    color: var(--color-navy-dark);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.16em;
  }

  .mobile-menu__close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(42, 59, 87, 0.08);
    color: var(--color-navy-dark);
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-menu__panel a {
    position: relative;
    padding: 18px 4px;
    color: #111;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.045em;
    text-decoration: none;
    border-bottom: 1px solid rgba(42, 59, 87, 0.1);
  }

  .mobile-menu__panel a.is-active {
    padding-left: 10px;
    color: var(--color-navy-dark);
  }

  .mobile-menu__panel a.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 24px;
    border-radius: 999px;
    background: var(--color-navy-dark);
    transform: translateY(-50%);
  }
}

/* ---------------------------------------------------------
   Mobile Menu Direct Open Fix
   - body.mobile-menu-open 또는 .mobile-menu.is-open 상태에서 메뉴 표시
   --------------------------------------------------------- */

@media (max-width: 1023px) {
  .header__nav {
    display: none;
  }

  .mobile-menu-button {
    position: relative;
    z-index: 4000;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-grid;
    place-items: center;
    gap: 5px;
    padding: 9px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
  }

  .mobile-menu-button span {
    width: 24px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--color-navy-dark);
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 3500;
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-menu.is-open,
  body.mobile-menu-open .mobile-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu__dim {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(5, 9, 16, 0.48);
    opacity: 0;
    cursor: pointer;
  }

  .mobile-menu.is-open .mobile-menu__dim,
  body.mobile-menu-open .mobile-menu__dim {
    opacity: 1;
  }

  .mobile-menu__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(82vw, 320px);
    height: 100%;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    box-shadow: 24px 0 50px rgba(0, 0, 0, 0.22);
    transform: translateX(-100%);
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-menu.is-open .mobile-menu__panel,
  body.mobile-menu-open .mobile-menu__panel {
    transform: translateX(0);
  }

  .mobile-menu__head {
    margin-bottom: 34px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(42, 59, 87, 0.14);
  }

  .mobile-menu__head p {
    margin: 0;
    color: var(--color-navy-dark);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.16em;
  }

  .mobile-menu__close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(42, 59, 87, 0.08);
    color: var(--color-navy-dark);
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-menu__panel a {
    position: relative;
    padding: 18px 4px;
    color: #111111;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.045em;
    text-decoration: none;
    border-bottom: 1px solid rgba(42, 59, 87, 0.1);
  }

  .mobile-menu__panel a.is-active {
    padding-left: 10px;
    color: var(--color-navy-dark);
  }

  body.mobile-menu-open .mobile-menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.mobile-menu-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-menu-open .mobile-menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
