/* =========================================================
 * 벚꽃 톤(분홍·보라) + 핀터레스트식 둥근 카드 레이아웃
 * ========================================================= */
:root {
  --pink-50: #fff6f9;
  --pink-100: #ffe8f0;
  --pink-200: #ffd1e1;
  --pink-400: #f59ab8;
  --pink-500: #ec6f9b;
  --lilac-100: #f1eafe;
  --lilac-200: #e2d4fc;
  --lilac-400: #b496ef;
  --lilac-600: #8a64d6;

  --bg: #fffafc;
  --surface: #ffffff;
  --text: #3a2e3f;
  --muted: #85768c;
  --line: #f3e3ec;

  --grad: linear-gradient(135deg, var(--pink-400), var(--lilac-400));
  --radius: 24px;
  --shadow: 0 2px 6px rgba(160, 90, 140, 0.06), 0 10px 30px rgba(160, 90, 140, 0.08);
  --shadow-hover: 0 6px 14px rgba(160, 90, 140, 0.1), 0 20px 44px rgba(160, 90, 140, 0.16);
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
p { margin: 0; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ── 헤더 ───────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 250, 252, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(160, 90, 140, 0.08); }
.header__inner {
  width: min(1120px, 100% - 32px); height: 100%; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--pink-100); font-size: 19px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text small { font-size: 11px; font-weight: 600; color: var(--muted); }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--pink-100); color: var(--text); }
.nav a.is-active { background: var(--text); color: #fff; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--pink-100); cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .25s, opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.header.is-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── 첫 화면 ───────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 140px; text-align: center;
  background:
    radial-gradient(600px 360px at 15% 20%, var(--pink-200), transparent 70%),
    radial-gradient(560px 380px at 85% 30%, var(--lilac-200), transparent 70%),
    radial-gradient(500px 300px at 50% 110%, var(--pink-100), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; }
.badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--pink-200);
  font-size: 13px; font-weight: 700; color: var(--pink-500); letter-spacing: .02em;
}
.badge { display: inline-flex; align-items: center; gap: 8px; }
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--pink-500);
  box-shadow: 0 0 0 4px rgba(236, 111, 155, 0.18);
}
.hero__org { margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--muted); }
.hero__title {
  margin-top: 6px; font-size: clamp(40px, 7vw, 76px); font-weight: 800; letter-spacing: -0.03em;
}
.hero__subtitle {
  margin-top: 10px; font-size: clamp(20px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--pink-500), var(--lilac-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__desc { margin: 20px auto 0; max-width: 620px; font-size: clamp(15px, 1.8vw, 18px); color: var(--muted); }
.hero__buttons { margin-top: 34px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(236, 111, 155, 0.32); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(236, 111, 155, 0.4); }
.btn--ghost { background: #fff; border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--pink-50); transform: translateY(-2px); }

/* ── 섹션 ───────────────────────────── */
.section { padding: 88px 0; position: relative; z-index: 1; }
.section--tint { background: linear-gradient(180deg, transparent, var(--lilac-100) 18%, var(--lilac-100) 82%, transparent); }
.section__head { text-align: center; margin-bottom: 44px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__head h2 { margin-top: 8px; font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.section__head p { margin-top: 10px; color: var(--muted); }

/* ── 핀터레스트식 메이슨리 카드 ───────── */
.masonry { column-count: 3; column-gap: 20px; }
.card {
  break-inside: avoid; margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card--s { min-height: 160px; }
.card--m { min-height: 220px; }
.card--l { min-height: 300px; }
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px;
  background: linear-gradient(135deg, var(--pink-100), var(--lilac-100));
  font-size: 22px; font-weight: 800; color: var(--lilac-600);
}
.card h3 { font-size: 18px; font-weight: 700; }
.card p { color: var(--muted); font-size: 15px; }
.card:nth-child(3n+2) { background: linear-gradient(180deg, #fff, var(--pink-50)); }
.card:nth-child(3n) { background: linear-gradient(180deg, #fff, #faf6ff); }

.container--narrow { width: min(780px, 100% - 32px); }
.sub-title { margin: 8px 0 18px; font-size: 20px; font-weight: 800; }
.sub-title:not(:first-of-type) { margin-top: 56px; }

/* ── 한눈에 보는 수강 정보 (첫 화면에 살짝 겹침) ── */
.quick {
  position: relative; z-index: 2; margin-top: -72px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.quick__item {
  display: flex; align-items: center; gap: 14px; padding: 20px;
  background: rgba(255, 255, 255, 0.92); border-radius: 22px; box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.quick__icon {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px;
  background: linear-gradient(135deg, var(--pink-100), var(--lilac-100)); font-size: 21px;
}
.quick__item small { display: block; font-size: 12px; font-weight: 700; color: var(--pink-500); }
.quick__item strong { display: block; font-size: 15px; line-height: 1.4; }

/* ── 통계 카드 ───────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: -24px 0 88px; }
.stat {
  padding: 30px 20px; border-radius: var(--radius); text-align: center;
  background: linear-gradient(160deg, #fff 30%, var(--pink-50)); box-shadow: var(--shadow);
}
.stat:nth-child(even) { background: linear-gradient(160deg, #fff 30%, #f7f1ff); }
.stat strong {
  display: block; font-size: clamp(38px, 5vw, 54px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat em { font-style: normal; font-size: .45em; margin-left: 2px; }
.stat > span { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--muted); }

/* ── 장점 슬라이드 ───────────────────── */
.slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); column-gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 24px; margin: -6px -4px 0; scrollbar-width: none; outline: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slide {
  scroll-snap-align: start; position: relative;
  display: flex; flex-direction: column; gap: 10px; min-height: 240px; padding: 30px;
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
}
.slide:nth-child(odd) { background: linear-gradient(180deg, #fff, var(--pink-50)); }
.slide:nth-child(even) { background: linear-gradient(180deg, #fff, #f7f1ff); }
.slide__num { position: absolute; top: 24px; right: 28px; font-size: 14px; font-weight: 800; color: var(--lilac-400); }
.slide__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: #fff; box-shadow: 0 4px 14px rgba(160, 90, 140, 0.12); font-size: 26px; margin-bottom: 8px;
}
.slide h3 { font-size: 20px; font-weight: 800; }
.slide p { color: var(--muted); }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }
.slider__btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text); transition: background .2s, opacity .2s;
}
.slider__btn:hover:not(:disabled) { background: var(--pink-100); }
.slider__btn:disabled { opacity: .35; cursor: default; }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--pink-200); transition: width .25s, background .25s;
}
.slider__dots button.is-active { width: 26px; background: var(--grad); }

/* ── 커리큘럼 자리 ───────────────────── */
.placeholder {
  padding: 56px 20px; text-align: center; border-radius: var(--radius);
  border: 2px dashed var(--lilac-200); color: var(--muted); font-weight: 600; background: rgba(255,255,255,.6);
}

/* ── AI 도구 ─────────────────────────── */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  border-radius: 22px; background: #fff; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.tool.reveal.is-in:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tool__icon {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-100), var(--lilac-100)); font-size: 24px;
}
.tool h4 { margin: 0; font-size: 17px; font-weight: 800; }
.tool p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ── FAQ 아코디언 ────────────────────── */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border-radius: 20px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 20px 22px; font-weight: 700; font-size: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: 800;
}
.faq__item summary > span:nth-child(2) { flex: 1; }
.faq__item summary i { flex: none; position: relative; width: 14px; height: 14px; }
.faq__item summary i::before, .faq__item summary i::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px;
  background: var(--lilac-600); transition: transform .25s;
}
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0); }
.faq__item p { padding: 0 22px 22px 68px; color: var(--muted); }

/* ── 푸터: 교수자 ────────────────────── */
.prof {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; text-align: left;
  padding: 40px; border-radius: 32px; background: #fff; box-shadow: var(--shadow);
}
.prof__photo {
  position: relative; width: 220px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--grad); box-shadow: 0 0 0 8px var(--pink-50), 0 0 0 9px var(--pink-200);
}
.prof__photo span { font-size: 72px; font-weight: 800; color: #fff; }
/* 세로 사진도 얼굴이 원 안에 오도록 위쪽을 기준으로 자름 */
.prof__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  transform: scale(1.7); transform-origin: 50% 30%; }
.prof h2 { margin-top: 6px; font-size: 30px; font-weight: 800; }
.prof__role { margin-top: 4px; font-weight: 600; color: var(--pink-500); }
.prof__bio { margin-top: 14px; color: var(--muted); }
.prof__contacts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.prof__contacts li {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--pink-50); border: 1px solid var(--line); font-size: 14px;
}
.prof__contacts small { font-weight: 700; color: var(--muted); white-space: nowrap; }
.prof__contacts a { font-weight: 700; color: var(--lilac-600); }
.prof__contacts a:hover { text-decoration: underline; }
.footer__bottom { margin-top: 36px; }

/* ── 공통 작은 요소 ──────────────────── */
.muted { color: var(--muted); font-size: 14px; }
.chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; white-space: nowrap; line-height: 1.4;
}
.chip--now { background: var(--text); color: #fff; }
.chip--week { background: var(--lilac-100); color: var(--lilac-600); }
.chip--task { background: var(--pink-100); color: var(--pink-500); }
.chip--soon { background: #ffe9d6; color: #c8641c; }
.chip--urgent { background: #ffdede; color: #d23a3a; }
.chip--closed { background: #f1edf3; color: #a79bad; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--text); transition: background .2s;
}
.pill-btn:hover { background: var(--pink-50); }
.pill-btn--solid { border: 0; background: var(--text); color: #fff; }
.pill-btn--solid:hover { background: #57465e; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.btn:disabled { background: #e9e3ec; color: #a79bad; box-shadow: none; cursor: not-allowed; transform: none; }

/* ── 주차별 커리큘럼 ─────────────────── */
.cur-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cur-bar .sub-title { margin: 0; }
#schedule { margin-top: 56px; }
.weeks { display: flex; flex-direction: column; gap: 12px; }
.week { border-radius: 22px; background: #fff; box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .25s; }
.week[open] { box-shadow: var(--shadow-hover); }
.week.is-current { outline: 2px solid var(--pink-400); outline-offset: -2px; }
.week summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 16px 20px;
}
.week summary::-webkit-details-marker { display: none; }
.week__no {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(135deg, var(--pink-100), var(--lilac-100));
  font-size: 20px; font-weight: 800; color: var(--lilac-600); line-height: 1;
}
.week__no small { display: block; font-size: 9px; letter-spacing: .12em; color: var(--pink-500); margin-bottom: -10px; }
.week.is-past .week__no { background: #f4f0f6; color: #b3a7b9; }
.week.is-past .week__no small { color: #c4b9c9; }
.week__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.week__main strong { font-size: 16px; font-weight: 700; }
.week__date { font-size: 13px; color: var(--muted); }
.week__chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.week__arrow {
  flex: none; width: 10px; height: 10px; margin: 0 4px;
  border-right: 2px solid var(--lilac-600); border-bottom: 2px solid var(--lilac-600);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s;
}
.week[open] .week__arrow { transform: rotate(-135deg) translateY(-3px); }
.week__body { padding: 4px 20px 22px 92px; display: flex; flex-direction: column; gap: 18px; }
.week__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.week__meta div {
  display: flex; gap: 8px; padding: 8px 14px; border-radius: 14px; background: var(--pink-50); font-size: 14px;
}
.week__meta dt { font-weight: 700; color: var(--muted); white-space: nowrap; }
.week__meta dd { margin: 0; font-weight: 600; }
.week__cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.week__block h4, .task h4 { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.week__topics { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.week__topics li { position: relative; padding-left: 18px; font-size: 15px; }
.week__topics li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--pink-400);
}
.week__videos { display: flex; flex-direction: column; gap: 8px; }
.week__videos a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: background .2s, border-color .2s;
}
.week__videos a:hover { background: var(--pink-50); border-color: var(--pink-200); }
.week__videos a span {
  display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: #ff5a7a; color: #fff; font-size: 10px; padding-left: 2px;
}

/* 긴 주차 표시 (예: 13-14, 14~15) */
.week__no--long { font-size: 14px; letter-spacing: -0.04em; }
.week.is-exam .week__no { background: #fff1e0; color: #c8641c; }
.week.is-exam .week__no small { color: #e08a3a; }
.chip--exam { background: #fff1e0; color: #c8641c; }
/* 안내 사항 */
.week__notes { margin: 0; padding: 12px 16px; list-style: none; border-radius: 14px; background: #fffaf0; border: 1px solid #ffe7c2; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
/* 읽기 자료 */
.week__reads { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.week__reads li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.read-tag {
  flex: none; margin-top: 2px; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 800;
  background: var(--pink-100); color: var(--pink-500);
}
.read-tag--ref { background: #f1edf3; color: var(--muted); }
.week__cols:has(> :only-child) { grid-template-columns: 1fr; }

/* 과제 카드 */
.task {
  display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center;
  padding: 18px 20px; border-radius: 18px;
  background: linear-gradient(135deg, var(--pink-50), #f8f3ff); border: 1px solid var(--pink-200);
}
.task__head, .task__text { grid-column: 1 / -1; }
.task__head { display: flex; align-items: center; gap: 12px; }
.task__head h4 { margin: 0; font-size: 16px; }
.task__head small { font-size: 12px; font-weight: 700; color: var(--pink-500); }
.task__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; font-size: 20px; flex: none; }
.task__text { font-size: 14px; color: var(--muted); }
.task__due { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.task__due span { padding: 2px 8px; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 800; color: var(--muted); }
.task__left { grid-column: 1; font-size: 14px; font-weight: 700; color: var(--lilac-600); }
.task__submit { grid-column: 2; grid-row: 3 / span 2; min-height: 44px; }
.task--soon .task__left { color: #c8641c; }
.task--urgent { border-color: #ffb8b8; }
.task--urgent .task__left { color: #d23a3a; }
.task--closed { background: #faf8fb; border-color: var(--line); }
.task--closed .task__left { color: #a79bad; }

/* ── 월간 달력 ───────────────────────── */
.cal-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.cal, .cal-detail { padding: 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal__head strong { font-size: 20px; font-weight: 800; }
.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__week span { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); padding-bottom: 6px; }
.cal__week span:first-child { color: #e0607e; }
.cal__week span:last-child { color: #7b8fe0; }
.cal__day {
  position: relative; min-height: 72px; padding: 8px 6px; border: 1px solid transparent; border-radius: 14px;
  background: #fbf8fc; font: inherit; color: var(--text); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; transition: background .15s, border-color .15s;
}
.cal__day:hover { background: var(--pink-50); border-color: var(--pink-200); }
.cal__day.is-empty { background: none; cursor: default; }
.cal__num { font-size: 14px; font-weight: 600; }
.cal__day.is-sun .cal__num { color: #e0607e; }
.cal__day.is-sat .cal__num { color: #7b8fe0; }
.cal__day.has-class { background: linear-gradient(160deg, var(--pink-100), var(--lilac-100)); }
.cal__tag { font-size: 11px; font-weight: 800; color: var(--lilac-600); white-space: nowrap; }
.cal__tag--off { color: #d23a3a; }
.cal__day.has-exam { background: #fff1e0; }
.cal__day.has-event { background: #eaf5ff; }
.cal__tag--event { color: #1f6fb2; }
.cal__ev { position: absolute; top: 7px; left: 7px; width: 8px; height: 8px; border-radius: 50%; background: #3b9be8; }
.lg--event { background: #cfe6fb; }
.chip--event { background: #e6f4ff; color: #1f6fb2; }
.cd-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.cd-admin { display: flex; gap: 4px; }
.cd-event { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border-radius: 14px; background: #f3f9ff; }
.cd-event h4 { margin: 0; font-size: 16px; font-weight: 800; }
.cd-note { font-size: 14px; color: var(--muted); }
.cd-off { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cd-add { align-self: stretch; }
.cal__tag--exam { color: #c8641c; }
.lg--exam { background: #ffdcb5; }
.cal__day.is-off { background: #fff1f1; }
.cal__due { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #ff8a3d; }
.cal__day.is-today .cal__num {
  display: grid; place-items: center; width: 26px; height: 26px; margin-top: -3px; border-radius: 50%;
  background: var(--text); color: #fff !important;
}
.cal__day.is-selected { border-color: var(--pink-500); box-shadow: 0 0 0 2px var(--pink-200); }
.cal__legend { display: flex; gap: 16px; justify-content: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.cal__legend span { display: flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 4px; }
.lg--class { background: linear-gradient(135deg, var(--pink-200), var(--lilac-200)); }
.lg--due { border-radius: 50%; background: #ff8a3d; }
.lg--off { background: #ffd6d6; }

.cal-detail { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.cd-date { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; }
.cd-class { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cd-class h4 { margin: 0; font-size: 18px; font-weight: 800; }
.cd-meta { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.cal-detail .task { grid-template-columns: 1fr; }
.cal-detail .task__left, .cal-detail .task__submit { grid-column: 1; grid-row: auto; }
.cd-off { padding: 14px 16px; border-radius: 14px; background: #fff1f1; font-weight: 700; color: #d23a3a; }
.cd-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 0; text-align: center; color: var(--muted); }
.cd-empty > span { font-size: 34px; }

/* 안내 토스트 */
.toast {
  position: fixed; left: 50%; bottom: 88px; z-index: 70; transform: translate(-50%, 20px);
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px;
  background: var(--text); color: #fff; font-size: 14px; font-weight: 600; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ── 헤더 오른쪽 (메뉴 + 자물쇠) ──────── */
.header__right { display: flex; align-items: center; gap: 8px; }
.lock-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted); transition: background .2s, color .2s;
}
.lock-btn:hover { background: var(--lilac-100); color: var(--lilac-600); }
.lock-btn.is-admin { background: var(--text); color: #fff; border-color: var(--text); }

/* ── 공지사항 ───────────────────────── */
.notices { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.notices__title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.notice { border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.notice.is-pinned { outline: 1.5px solid var(--pink-200); }
.notice summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 20px; }
.notice summary::-webkit-details-marker { display: none; }
.notice summary strong { flex: 1; font-size: 15px; }
.notice time { font-size: 13px; color: var(--muted); white-space: nowrap; }
.notice p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

/* ── 참여하기 ───────────────────────── */
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; margin-bottom: 20px; }
.panel { padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.panel__head { display: flex; gap: 14px; margin-bottom: 20px; }
.panel__head h3 { font-size: 19px; font-weight: 800; }
.panel__head p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.panel__icon {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px;
  background: linear-gradient(135deg, var(--pink-100), var(--lilac-100)); font-size: 22px;
}

/* 투표 막대그래프 — 항목 자체가 막대 */
.poll { display: flex; flex-direction: column; gap: 8px; }
.poll__opt {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #fbf8fc; font: inherit; color: var(--text); cursor: pointer; text-align: left;
  transition: border-color .2s;
}
.poll__opt:hover { border-color: var(--pink-400); }
.poll__fill {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, var(--pink-200), var(--lilac-200));
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}
.poll__opt.is-mine { border-color: var(--pink-500); }
.poll__opt.is-mine .poll__fill { background: linear-gradient(90deg, var(--pink-400), var(--lilac-400)); }
.poll__label, .poll__val { position: relative; }
.poll__label { font-size: 15px; font-weight: 700; }
.poll__val { font-size: 13px; color: var(--muted); white-space: nowrap; }
.poll__val b { color: var(--text); font-size: 15px; }
.poll__opt.is-mine .poll__val { color: var(--text); }
.poll__foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3cc47c; box-shadow: 0 0 0 4px rgba(60, 196, 124, .18); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(60, 196, 124, 0); } }

/* 폼 공통 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; font-weight: 700; }
.field__label em, .check em { font-style: normal; color: var(--pink-500); }
.field input, .field select, .field textarea, #taskPick {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; font: inherit; font-size: 15px; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, #taskPick:focus {
  outline: none; border-color: var(--lilac-400); box-shadow: 0 0 0 4px var(--lilac-100);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #e2556b; background: #fff8f9; }
.field.is-invalid .choice span, .field.is-invalid .check span::before { border-color: #e2556b; }
.field__err { min-height: 0; font-size: 13px; font-weight: 600; color: #d23a3a; }
.field__err:empty { display: none; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); cursor: pointer; font-size: 14px; font-weight: 600; transition: all .2s;
}
.choice input:checked + span { background: var(--text); border-color: var(--text); color: #fff; }
.choice input:focus-visible + span, .check input:focus-visible + span::before { box-shadow: 0 0 0 4px var(--lilac-200); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; }
.check span { position: relative; display: flex; gap: 10px; }
.check span::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--lilac-400); background: #fff;
}
.check input:checked + span::before {
  background: var(--grad); border-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), var(--grad);
}

/* 수강 신청서 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field--wide, .field--check { grid-column: 1 / -1; }
.form-summary {
  margin-bottom: 20px; padding: 16px 20px; border-radius: 16px; background: #fff1f3; border: 1px solid #ffc7d0; font-size: 14px;
}
.form-summary strong { color: #d23a3a; }
.form-summary ul { margin: 8px 0 0; padding-left: 18px; }
.form-summary a { font-weight: 700; text-decoration: underline; }
.apply-form__submit { margin-top: 24px; width: 100%; }
.done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 10px; text-align: center; }
.done__icon { font-size: 48px; }
.done h4 { margin: 0; font-size: 22px; }
.done p { color: var(--muted); margin-bottom: 8px; }

/* 로그인 · 수강생 영역 */
.login-form { display: flex; flex-direction: column; gap: 14px; }
.notice-inline { margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; background: var(--lilac-100); font-size: 14px; font-weight: 600; color: var(--lilac-600); }
.me { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.me > div { flex: 1; display: flex; flex-direction: column; }
.me small { color: var(--muted); }
.me__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; }
.stu-block { padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.stu-block h4 { margin: 0; display: flex; justify-content: space-between; font-size: 16px; font-weight: 800; }
.att-btn { width: 100%; }
.att-now { padding: 14px 16px; border-radius: 14px; background: #fbf8fc; font-size: 14px; color: var(--muted); }
.att-now.is-done { background: #eafaf1; color: #23874f; font-weight: 700; }
.att-now small { font-weight: 500; margin-left: 4px; }
.att-strip { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 4px; }
.att { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 8px; background: #f6f2f8; font-size: 9.5px; letter-spacing: -0.03em; color: var(--muted); }
.att i { font-style: normal; font-size: 13px; font-weight: 800; }
.att--ok { background: #eafaf1; color: #23874f; }
.att--miss { background: #fff1f1; color: #d23a3a; }
.att--today { outline: 2px solid var(--pink-400); }
.att-legend { display: flex; gap: 12px; font-size: 12px; }
.att-legend span { background: none; }
.sub-info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 13px; color: var(--muted); }
.sub-done { padding: 10px 14px; border-radius: 12px; background: #eafaf1; font-size: 14px; }
.sub-done small { color: var(--muted); }
.drop {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; cursor: pointer;
  border: 2px dashed var(--lilac-200); background: #fcfaff; transition: border-color .2s, background .2s;
}
.drop:hover, .drop.is-over { border-color: var(--lilac-400); background: var(--lilac-100); }
.drop.has-file { border-style: solid; border-color: var(--pink-400); background: var(--pink-50); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__icon { font-size: 28px; }
.drop__text { font-size: 14px; }
.drop__text small { color: var(--muted); }

/* ── 팝업 ───────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(58, 46, 63, .45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.modal__box {
  position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  padding: 32px 28px 22px; border-radius: 28px; background: #fff; text-align: center; outline: none;
  box-shadow: 0 30px 80px rgba(90, 40, 90, .3); opacity: 0; transform: translateY(20px) scale(.97); transition: all .25s;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f6f2f8; cursor: pointer; font-size: 14px; color: var(--muted); }
.modal__art { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(135deg, var(--pink-100), var(--lilac-100)); font-size: 36px; }
.modal__box h3 { font-size: 21px; font-weight: 800; }
.modal__box > p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.modal__list { margin: 18px 0; padding: 14px 16px; list-style: none; border-radius: 16px; background: var(--pink-50); text-align: left; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.modal__list li { display: flex; gap: 10px; }
.modal__cta { width: 100%; }
.modal__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.modal__foot .pill-btn { min-height: 36px; }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 100; pointer-events: none; }

/* ── 우수 과제 포트폴리오 ─────────────── */
.pf-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.pf-chip small { margin-left: 4px; font-weight: 700; opacity: .6; }
.pf-card { break-inside: avoid; margin-bottom: 20px; }
.pf-card__btn {
  display: block; width: 100%; padding: 0; border: 0; text-align: left; font: inherit; color: inherit; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.pf-card__btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pf-card__btn:focus-visible { outline: 3px solid var(--lilac-400); outline-offset: 3px; }
.pf-thumb {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--pink-100), var(--lilac-200));
}
.pf-card:nth-child(3n+2) .pf-thumb { background: linear-gradient(135deg, var(--lilac-100), var(--pink-200)); }
.pf-card:nth-child(3n) .pf-thumb { background: linear-gradient(160deg, #ffe9f1, #e9e0ff); }
.pf-thumb__icon { font-size: 56px; filter: drop-shadow(0 6px 14px rgba(140, 80, 140, .2)); }
.pf-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pf-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.pf-award, .pf-sample {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.pf-award { background: #fff; color: #b7791f; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.pf-sample { background: rgba(58, 46, 63, .75); color: #fff; }
.pf-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.pf-type { font-size: 12px; font-weight: 800; color: var(--pink-500); }
.pf-body h3 { font-size: 17px; font-weight: 800; line-height: 1.4; }
.pf-body p { font-size: 14px; color: var(--muted); }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-tags span { padding: 3px 9px; border-radius: 999px; background: var(--lilac-100); color: var(--lilac-600); font-size: 12px; font-weight: 700; }
.pf-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.pf-authors { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-drive { flex: none; font-size: 12px; font-weight: 700; color: #1a73e8; }
.pf-drive.is-off { color: #b3a7b9; }
.pf-note { margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); }

.modal__box.pf-modal { width: min(860px, 100%); text-align: left; padding: 30px 28px 26px; }
.pf-modal__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; padding-right: 40px; }
.pf-modal__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--pink-100), var(--lilac-100)); font-size: 20px; }
.pf-modal h3 { font-size: 22px; font-weight: 800; line-height: 1.35; }
.pf-modal__authors { margin-top: 6px; font-size: 14px; color: var(--muted); }
.pf-modal__text { margin: 14px 0; font-size: 15px; line-height: 1.75; }
.pf-frame { margin-top: 18px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #f6f2f8; }
.pf-frame iframe { display: block; width: 100%; height: min(62vh, 560px); border: 0; }
.pf-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.pf-nolink { margin-top: 18px; padding: 16px; border-radius: 14px; background: #fbf8fc; text-align: center; color: var(--muted); font-size: 14px; }
.pf-nolink--warn { background: #fff7e6; color: #9a5b12; }

/* ── 등장 효과 ───────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.card.reveal.is-in:hover { transform: translateY(-4px); }

/* ── 푸터 ───────────────────────────── */
.footer {
  position: relative; z-index: 1; padding: 72px 0 56px; text-align: center;
  background: linear-gradient(180deg, var(--bg), var(--pink-100));
}
.footer p { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ── 맨 위로 버튼 ─────────────────────── */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--grad);
  box-shadow: 0 10px 24px rgba(180, 110, 200, 0.35);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ── 꽃잎 장식 ───────────────────────── */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.petals i {
  position: absolute; top: -40px; width: 14px; height: 11px;
  background: linear-gradient(135deg, #ffd6e5, #f7b3cc);
  border-radius: 80% 0 80% 0; opacity: .55;
  animation: fall linear infinite;
}
.petals i:nth-child(3n) { background: linear-gradient(135deg, #ece2ff, #d3bff7); }
@keyframes fall {
  0%   { transform: translate(0, 0) rotate(0) scale(var(--s, 1)); }
  50%  { transform: translate(40px, 50vh) rotate(180deg) scale(var(--s, 1)); }
  100% { transform: translate(-20px, 105vh) rotate(360deg) scale(var(--s, 1)); }
}

/* ── 반응형 ───────────────────────────── */
@media (max-width: 960px) {
  .masonry { column-count: 2; }
  .quick, .stats { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .slider__track { grid-auto-columns: calc((100% - 20px) / 2); }
  .cal-wrap, .join-grid { grid-template-columns: 1fr; }
  .cal-detail { position: static; }
  .week__body { padding-left: 20px; }
  .prof { grid-template-columns: 160px 1fr; gap: 28px; padding: 32px; }
  .prof__photo { width: 160px; }
  .prof__photo span { font-size: 54px; }
}
/* 메뉴가 7개라 960px 아래에서는 ☰ 버튼으로 접음 */
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 12px; right: 12px;
    flex-direction: column; gap: 2px; padding: 10px;
    background: #fff; border-radius: 20px; box-shadow: var(--shadow-hover);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .header.is-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 13px 16px; font-size: 16px; }
}
@media (max-width: 560px) {
  :root { --header-h: 60px; }
  .masonry { column-count: 1; }
  .card--s, .card--m, .card--l { min-height: 0; }
  .hero { padding: 56px 0 112px; }
  .hero__buttons .btn { flex: 1 1 0; padding: 0 12px; }
  .section { padding: 64px 0; }
  .quick { margin-top: -64px; gap: 10px; }
  .quick__item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .quick__item strong { font-size: 14px; }
  .stats { gap: 10px; margin-bottom: 64px; }
  .stat { padding: 22px 12px; }
  .tools { grid-template-columns: 1fr; }
  .slider__track { grid-auto-columns: 86%; column-gap: 14px; }
  .slide { min-height: 210px; padding: 26px; }
  .week summary { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .week__no { width: 48px; height: 48px; font-size: 17px; }
  .week__main { flex: 1 1 calc(100% - 100px); }
  .week__chips { order: 3; flex-basis: 100%; justify-content: flex-start; padding-left: 60px; }
  .week__chips:empty { display: none; }
  .week__main strong { font-size: 15px; }
  .week__body { padding: 0 16px 18px; }
  .week__cols { grid-template-columns: 1fr; }
  .task { grid-template-columns: 1fr; }
  .task__left, .task__submit { grid-column: 1; grid-row: auto; }
  .cal, .cal-detail { padding: 16px; }
  .cal__week, .cal__grid { gap: 4px; }
  .cal__day { min-height: 50px; padding: 6px 2px; border-radius: 10px; }
  .cal__tag { font-size: 9px; letter-spacing: -0.03em; }
  .cal__legend { gap: 10px; font-size: 12px; }
  .cur-bar .pill-btn { min-height: 36px; padding: 0 14px; font-size: 13px; }
  .panel { padding: 20px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .att-strip { grid-template-columns: repeat(7, 1fr); }
  .poll__opt { padding: 0 12px; }
  .poll__label { font-size: 14px; }
  .lock-btn { width: 40px; height: 40px; }
  .brand__text small { display: none; }
  .faq__item summary { padding: 18px; font-size: 15px; }
  .faq__item p { padding: 0 18px 20px 18px; }
  .prof { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 32px 22px; }
  .prof__contacts { justify-content: center; }
  .brand__text { font-size: 15px; }
  .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .petals { display: none; }
}
