/* =========================================================
   Wonderland — main page (3차, 원점 재작성)
   흰 바탕 + 로고 브랜드 색면 / Pretendard 단일 서체
   ========================================================= */
:root {
  /* 로고 브랜드 컬러 */
  --red: #F30827;
  --green: #00A750;
  --indigo: #393A93;
  --yellow: #FFBA00;
  --pink: #EB4480;
  --orange: #FD7919;
  --sky: #00A0DC;
  --teal: #00A8A0;
  --teal-ink: #007C76;
  --cam-teal: #00BCB6;  /* 프렙센터 로고의 청록 */

  /* 흰 글자를 올리는 색면용(대비 4.5:1 이상) */
  --red-deep: #E00020;

  --ink: #111327;
  --ink-2: #3D3F55;
  --muted: #5B5D70;
  --line: #E6E7EC;
  --gray: #F4F5F7;
  --white: #FFFFFF;

  --wrap: 1280px;
  --gutter: 40px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
section[id] { scroll-margin-top: 76px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.contact :focus-visible { outline-color: var(--yellow); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--white); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 타이포 ---------- */
.title {
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 700; line-height: 1.16; letter-spacing: -0.045em;
}
.title--light { color: var(--white); }
[data-lines] > span { display: block; }
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-mask > span { display: block; }
.text { margin-top: 24px; color: var(--ink-2); max-width: 32em; }

/* ---------- 버튼 ---------- */
/* 움직임 없이 색만 천천히 바뀌는 단정한 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 58px; padding: 0 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--indigo); }
.btn--line { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #E9EAF0; }
.btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); color: var(--white); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--white); background: rgba(255,255,255,.08); }

/* ---------- 헤더 ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  transition: box-shadow .4s;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; height: 76px; gap: 48px; }
.header__logo img { height: 24px; width: auto; }
.header__nav { display: flex; gap: 36px; margin-left: auto; }
.header__nav a { position: relative; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.header__nav a:hover { color: var(--ink); }
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__tel {
  transition: background-color .35s ease;
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px 0 8px;
  border-radius: 999px; background: var(--ink); color: var(--white);
  font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.header__tel:hover { background: var(--indigo); }
.header__icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--yellow); fill: var(--ink); flex: 0 0 auto; }

/* ---------- 히어로 ---------- */
.hero { padding: 56px 0 0; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; min-height: min(calc(100vh - 76px - 110px), 700px); padding-bottom: 24px; }
.hero__title {
  font-size: clamp(46px, 6.2vw, 92px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.055em;
}
.hero__lead { margin-top: 32px; max-width: 30em; font-size: 18px; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__art { width: 100%; max-width: 600px; justify-self: end; }
.blocks { width: 100%; height: auto; overflow: visible; }


/* ---------- 섹션 공통 ---------- */
.section { padding: 160px 0; }
.section--gray { background: var(--gray); }
.head { margin-bottom: 72px; }
.head--split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; }
.head__text { color: var(--ink-2); max-width: 28em; justify-self: end; }
.head__text--small { font-size: 14px; color: var(--muted); text-align: right; line-height: 1.7; }

/* ---------- 30년 + 연혁 타임라인 ---------- */
.section--history { padding-top: 56px; }
.history__head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.history__num {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: clamp(120px, 15vw, 220px); font-weight: 800; letter-spacing: -0.07em; line-height: .8;
  font-variant-numeric: tabular-nums;
}
/* 숫자에 로고 건물의 네 가지 색을 세로 띠로 */
.history__num span {
  background: linear-gradient(100deg, var(--green) 0 25%, var(--red) 25% 50%, var(--yellow) 50% 75%, var(--indigo) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .04em;
}
.history__num em { font-style: normal; font-size: 17px; font-weight: 600; letter-spacing: .08em; color: var(--ink); margin-top: 12px; }

/* 가로 타임라인: 연도 → 점 → 설명, 점들이 한 줄 위에 놓인다 */
.timeline { --line-y: 70px; position: relative; display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 104px; }
.timeline::before,
.timeline__bar { content: ""; position: absolute; left: 0; right: 0; top: var(--line-y); height: 2px; background: var(--line); }
.timeline__bar {
  background: linear-gradient(90deg, var(--green), var(--red) 30%, var(--yellow) 50%, var(--indigo) 70%, var(--pink) 85%, var(--sky));
  transform-origin: left; transform: scaleX(var(--p, 1));
}
.timeline li { position: relative; padding-right: 24px; }
.timeline time { display: block; height: 44px; font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 44px; font-variant-numeric: tabular-nums; }
.timeline li.is-now time { color: var(--c); }
.timeline i {
  position: relative; z-index: 1; display: block; width: 20px; height: 20px; margin: 16px 0 26px;
  border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 4px var(--c);
  transition: background-color .5s ease, transform .5s var(--ease);
}
.timeline li.is-on i { background: var(--c); }
.timeline p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

/* ---------- 전인교육 색면 ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 460px; padding: 32px 30px 34px; border-radius: 28px;
  color: var(--white); background: var(--bg);
  transition: transform .8s var(--ease);
}
.tile--red { --bg: var(--red-deep); }
.tile--yellow { --bg: var(--yellow); color: var(--ink); }
.tile--green { --bg: var(--green); color: var(--ink); }
.tile--indigo { --bg: var(--indigo); }
.tile__en { font-size: clamp(30px, 2.7vw, 40px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.tile__body h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.tile__body p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; }
.tile__shape { position: absolute; z-index: -1; transition: transform 1.1s var(--ease); }
.tile__shape--arch { background: rgba(255,255,255,.16); border-radius: 999px 999px 0 0; width: 46%; height: 46%; right: 8%; top: 24%; }
.tile__shape--circle { background: rgba(255,255,255,.4); border-radius: 50%; width: 56%; aspect-ratio: 1; right: -10%; top: 20%; }
.tile__shape--quarter { background: rgba(255,255,255,.28); border-radius: 0 0 0 100%; width: 54%; aspect-ratio: 1; right: 0; top: 0; }
.tile__shape--bars { display: flex; align-items: flex-end; gap: 10%; width: 50%; height: 44%; right: 10%; top: 24%; }
.tile__shape--bars i { flex: 1; background: rgba(255,255,255,.18); border-radius: 6px 6px 0 0; }
.tile__shape--bars i:nth-child(1) { height: 45%; }
.tile__shape--bars i:nth-child(2) { height: 100%; }
.tile__shape--bars i:nth-child(3) { height: 70%; }
@media (hover: hover) {
  .tile:hover { transform: translateY(-8px); }
  .tile:hover .tile__shape { transform: scale(1.12) rotate(-6deg); }
}

/* ---------- 캠브리지 ---------- */
.cam { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
/* 로고 건물의 아치 창을 닮은 사진 틀 */
.cam__media { position: relative; --pennant: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%); }
/* 사진 뒤에 로고 청록색 화살표를 한 겹 비켜 놓는다 */
.cam__plate { position: absolute; inset: 28px -28px -28px 28px; background: var(--cam-teal); border-radius: 24px 0 0 24px; clip-path: var(--pennant); }
.cam__photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3.3; border-radius: 24px 0 0 24px; clip-path: var(--pennant); background: var(--gray); }
.cam__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.cam__logo { width: 240px; height: auto; margin-bottom: 40px; }
.cam__points { margin-top: 40px; border-top: 1px solid var(--line); }
.cam__points li { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cam__points b { font-size: 16px; font-weight: 700; color: var(--teal-ink); }
.cam__points span { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }

/* 어린이 시험 3단계 */
.yle { margin-top: 140px; }
.yle__head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.yle__title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.25; }
.yle__head p { color: var(--ink-2); max-width: 40em; justify-self: end; }
.yle__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.yle__card { position: relative; padding: 32px 30px 30px; border-radius: 24px; background: var(--gray); }
.yle__card--goal { background: var(--teal-ink); color: var(--white); }
.yle__level { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--white); color: var(--teal-ink); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.yle__card h4 { margin: 18px 0 0; font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.yle__desc { margin-top: 12px; min-height: 3.2em; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.yle__card--goal .yle__desc { color: rgba(255,255,255,.88); }

/* 이후 단계: 높아지는 막대 */
.ladder { margin-top: 120px; }
.ladder__title { font-size: 15px; font-weight: 600; color: var(--muted); }
.ladder__steps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; align-items: end; height: 300px; margin-top: 28px; }
.ladder__steps li { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.ladder__steps i { display: block; height: var(--h); border-radius: 12px 12px 4px 4px; background: #DCEFEE; transform-origin: bottom; }
.ladder__steps li.is-ours i { background: var(--teal); }
.ladder__steps b { margin-top: 12px; font-size: 13.5px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; min-height: 2.6em; }
.ladder__steps span { font-size: 12.5px; color: var(--muted); }
.ladder__legend { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 13.5px; color: var(--ink-2); }
.ladder__legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--teal); }
.ladder__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.ladder__facts b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ladder__facts span { font-size: 14px; color: var(--muted); }
.ladder__source { margin-top: 24px; font-size: 12.5px; color: var(--muted); }

/* ---------- 교습비 ---------- */
.fee { background: var(--white); border-radius: 28px; padding: 16px 48px 36px; }
.fee__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fee__table th, .fee__table td { padding: 24px 12px; text-align: right; border-bottom: 1px solid var(--line); font-size: 16px; }
.fee__table thead th { padding: 26px 12px 18px; font-size: 13px; font-weight: 600; color: var(--muted); }
.fee__table th:first-child { text-align: left; padding-left: 0; }
.fee__table td:last-child, .fee__table thead th:last-child { padding-right: 0; }
.fee__table tbody th { font-size: 17px; font-weight: 700; }
.fee__table td { color: var(--ink-2); }
.fee__table .fee__sum { color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.fee__law { margin-top: 18px; font-size: 13px; color: var(--muted); }
.fee__refund { margin-top: 24px; border-top: 1px solid var(--line); }
.fee__refund summary { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; }
.fee__refund summary::-webkit-details-marker { display: none; }
.fee__refund summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--muted); transition: transform .5s var(--ease); }
.fee__refund[open] summary::after { transform: rotate(45deg); }
.fee__refund-body { display: grid; gap: 14px; padding-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.fee__refund-body ul { border-top: 1px solid var(--line); }
.fee__refund-body li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fee__refund-body li b { color: var(--ink); font-weight: 600; text-align: right; }

/* ---------- 상담 ---------- */
.contact { position: relative; background: var(--ink); color: var(--white); padding: 160px 0 0; }
.contact__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 64px; align-items: end; padding-bottom: 140px; }
.contact__tel {
  display: block; width: max-content; max-width: 100%; margin-top: 40px; overflow: hidden;
  font-size: clamp(56px, 7.4vw, 112px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.02;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.contact__tel .ch { display: inline-block; }
.contact__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.contact__info { display: grid; gap: 28px; }
.contact__info dt { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: rgba(255,255,255,.6); }
.contact__info dd { margin-top: 6px; font-size: 16px; color: rgba(255,255,255,.92); }
.contact__band { display: grid; grid-template-columns: repeat(6, 1fr); height: 14px; }
.contact__band i { transform-origin: bottom; }
.contact__band i:nth-child(1) { background: var(--green); }
.contact__band i:nth-child(2) { background: var(--red); }
.contact__band i:nth-child(3) { background: var(--yellow); }
.contact__band i:nth-child(4) { background: var(--indigo); }
.contact__band i:nth-child(5) { background: var(--pink); }
.contact__band i:nth-child(6) { background: var(--sky); }

/* ---------- 푸터 ---------- */
.footer { padding: 64px 0 72px; }
.footer__inner { display: flex; gap: 48px; align-items: flex-start; }
.footer__logo { width: 72px; flex: 0 0 auto; }
.footer__info { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.footer__info p span + span::before { content: ""; display: inline-block; width: 1px; height: 10px; margin: 0 12px; background: #C9CBD3; vertical-align: middle; }
.footer__name { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.footer__note { margin-top: 10px; font-size: 12.5px; }

.dock { display: none; }

/* ---------- 애니메이션 초기 상태 (스크립트가 있을 때만) ---------- */
.js [data-reveal] { opacity: 0; }
.js .hero__art { visibility: hidden; }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .header__nav { gap: 24px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 380px; }
  .cam { gap: 64px; }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; padding-bottom: 64px; }
  section[id] { scroll-margin-top: 60px; }
  .header__inner { height: 60px; }
  .header__nav { display: none; }
  .header__logo img { height: 19px; }
  .header__tel { margin-left: auto; height: 40px; padding: 0 16px 0 6px; font-size: 14px; }
  .header__tel:hover { background: var(--indigo); }
.header__icon { width: 28px; height: 28px; padding: 6px; }
  .header__logo img { height: 17px; }

  .hero { padding-top: 24px; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; min-height: 0; }
  .hero__art { order: -1; justify-self: center; max-width: 360px; }
  .hero__title { margin-top: 8px; }
  .hero__lead { margin-top: 22px; font-size: 16.5px; }
  .hero__actions { margin-top: 32px; }
  .hero__actions .btn { flex: 1 1 100%; }

  .section { padding: 104px 0; }
  .head { margin-bottom: 48px; }
  .head--split { grid-template-columns: 1fr; gap: 20px; }
  .head__text { justify-self: start; }
  .head__text--small { text-align: left; }

  .section--history { padding-top: 40px; }
  .history__head { grid-template-columns: 1fr; gap: 28px; }
  .history__num { font-size: 120px; }
  .timeline { --line-x: 9px; grid-template-columns: 1fr; margin-top: 56px; padding-left: 40px; }
  .timeline::before, .timeline__bar { left: var(--line-x); right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .timeline__bar { transform-origin: top; transform: scaleY(var(--p, 1)); background: linear-gradient(180deg, var(--green), var(--red) 30%, var(--yellow) 50%, var(--indigo) 70%, var(--pink) 85%, var(--sky)); }
  .timeline li { padding: 0 0 32px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline time { height: auto; font-size: 26px; line-height: 1.2; }
  .timeline i { position: absolute; left: -40px; top: 6px; margin: 0; }
  .timeline p { margin-top: 4px; }
  .timeline p br { display: none; }

  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 280px; padding: 22px 18px 22px; border-radius: 20px; }
  .tile__en { font-size: 24px; }
  .tile__body h3 { font-size: 18px; }
  .tile__body p { font-size: 13.5px; }
  /* 좁은 카드에서는 장식 도형을 제목과 본문 사이 빈 곳에 작게 둔다 */
  .tile__shape--arch { width: 34%; height: 30%; right: 8%; top: 34%; }
  .tile__shape--circle { width: 34%; right: 4%; top: 34%; }
  .tile__shape--quarter { width: 40%; top: 32%; right: 0; border-radius: 100% 0 0 0; }
  .tile__shape--bars { width: 38%; height: 30%; right: 8%; top: 34%; }

  .cam { grid-template-columns: 1fr; gap: 64px; }
  .cam__media { margin-right: 18px; }
  .cam__plate { inset: 16px -16px -16px 16px; }
  .cam__logo { width: 190px; margin-bottom: 28px; }
  .cam__points li { grid-template-columns: 1fr; gap: 4px; }
  .yle { margin-top: 96px; }
  .yle__head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .yle__head p { justify-self: start; }
  .yle__cards { grid-template-columns: 1fr; gap: 12px; }
  .yle__card { padding: 26px 22px 22px; border-radius: 20px; }
  .yle__desc { min-height: 0; }
  .ladder { margin-top: 88px; }
  .ladder__steps { grid-template-columns: 1fr; height: auto; gap: 8px; }
  .ladder__steps li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; height: auto; column-gap: 12px; }
  .ladder__steps i { grid-column: 1 / -1; height: 8px; width: var(--h); border-radius: 4px; transform-origin: left; }
  .ladder__steps b { min-height: 0; margin-top: 8px; font-size: 14px; }
  .ladder__steps span { margin-top: 8px; }
  .ladder__facts { grid-template-columns: 1fr 1fr; gap: 24px 16px; margin-top: 48px; }
  .ladder__facts b { font-size: 24px; }

  .fee { padding: 8px 20px 24px; border-radius: 20px; }
  .fee__table thead { display: none; }
  .fee__table, .fee__table tbody, .fee__table tr, .fee__table th, .fee__table td { display: block; }
  .fee__table tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .fee__table th, .fee__table td { padding: 0; border: 0; text-align: left; font-size: 14.5px; }
  .fee__table tbody th { font-size: 17px; }
  .fee__table .fee__sum { grid-column: 2; grid-row: 1; text-align: right; font-size: 20px; }
  .fee__table td:not(.fee__sum)::before { content: attr(data-th) " "; color: var(--muted); }

  .contact { padding-top: 104px; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; padding-bottom: 96px; }
  .contact__tel { font-size: clamp(44px, 13vw, 64px); }
  .contact__links .btn { flex: 1 1 auto; }

  .footer { padding-bottom: 48px; }
  .footer__inner { flex-direction: column; gap: 20px; }
  .footer__info p span { display: block; }
  .footer__info p span + span::before { display: none; }

  .dock {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: 64px; padding-bottom: env(safe-area-inset-bottom);
    background: var(--white); box-shadow: 0 -1px 0 var(--line);
  }
  .dock a { display: grid; place-items: center; font-size: 15px; font-weight: 600; border-left: 1px solid var(--line); }
  .dock a:first-child { border-left: 0; }
  .dock .dock__call { background: var(--ink); color: var(--white); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
