:root {
  /* Primitive palette sampled from the supplied reference page. */
  --p-blue-800: #173B57;
  --p-blue-700: #2F6FB0;
  --p-blue-600: #4B86BD;
  --p-blue-100: #DCEBF7;
  --p-blue-050: #EFF6FB;
  --p-ink: oklch(0.34 0.058 238);
  --p-slate: oklch(0.49 0.035 228);
  --p-muted: oklch(0.56 0.027 227);
  --p-paper: oklch(0.995 0.002 240);
  --p-page: #F7F9FB;
  --p-gold: oklch(0.72 0.09 82);
  --p-line: oklch(0.88 0.022 230);

  /* Semantic tokens. */
  --surface-page: var(--p-page);
  --surface-paper: var(--p-paper);
  --surface-soft: var(--p-blue-050);
  --text-primary: var(--p-ink);
  --text-secondary: var(--p-slate);
  --text-muted: var(--p-muted);
  --accent: var(--p-blue-700);
  --accent-dark: var(--p-blue-800);
  --border: var(--p-line);

  /* Component tokens. */
  --section-bar-bg: var(--accent);
  --section-bar-text: var(--p-paper);
  --button-bg: var(--accent-dark);
  --button-text: var(--p-paper);
  --radius-sm: 7px;
  --radius-md: 10px;
  --shadow-soft: 0 14px 36px oklch(0.34 0.058 238 / 0.07);
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --max: 1240px;
}

* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  min-width: 320px;
  min-height: 100dvh;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
:focus-visible { outline: 3px solid var(--p-gold); outline-offset: 3px; }
::selection { background: var(--p-blue-100); color: var(--accent-dark); }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Header */
.site-header { position: relative; background: var(--surface-paper); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--p-gold); pointer-events: none; }
.header-main { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 16px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; }
.brand img { width: auto; height: 46px; object-fit: contain; }
.brand img:last-child { height: 43px; }
.brand-divider { width: 1px; height: 36px; background: var(--border); }
.brand-tagline { padding-top: 4px; padding-bottom: 12px; color: var(--text-muted); font-size: 12px; letter-spacing: .02em; }
.search { display: flex; order: 3; flex: 1 1 100%; min-width: 0; height: 44px; overflow: hidden; border: 1px solid var(--accent); border-radius: 24px; background: var(--surface-paper); }
.search select { flex: 0 0 82px; min-width: 0; padding: 0 8px; border: 0; border-right: 1px solid var(--border); outline-offset: -3px; background: var(--surface-paper); color: var(--text-secondary); font-size: 14px; }
.search input { flex: 1 1 auto; min-width: 0; padding: 0 12px; border: 0; outline-offset: -3px; background: transparent; color: var(--text-primary); font-size: 14px; }
.search input::placeholder { color: var(--text-muted); }
.search button { display: grid; flex: 0 0 48px; place-items: center; border: 0; background: var(--accent); color: var(--p-paper); transition: background-color 180ms ease-out; }
.search button:hover { background: var(--accent-dark); }
.search button:active { background: var(--p-blue-600); }
.search button svg { width: 22px; height: 22px; stroke-width: 2.2; }
.header-phone { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent-dark); }
.header-phone small, .header-phone strong { display: block; }
.header-phone small { color: var(--text-muted); font-size: 11px; line-height: 1.2; }
.header-phone strong { font-size: 14px; line-height: 1.5; white-space: nowrap; }
.phone-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--accent); }
.phone-icon svg { width: 17px; height: 17px; }
.main-nav { background: var(--accent-dark); color: var(--p-paper); }
.main-nav-inner { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.main-nav-inner::-webkit-scrollbar, .profile-nav-inner::-webkit-scrollbar { display: none; }
.main-nav a { position: relative; flex: none; min-height: 48px; padding: 13px 0 11px; color: var(--p-blue-100); font-size: 13px; font-weight: 600; white-space: nowrap; transition: color 180ms ease-out; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; transform: scaleX(0); background: var(--p-gold); transition: transform 180ms ease-out; }
.main-nav a:hover, .main-nav a.active { color: var(--p-paper); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--surface-paper); }
.hero-inner { position: relative; padding-top: 34px; padding-bottom: 42px; }
.hero-copy { min-width: 0; }
.hero-portrait { width: 184px; margin: 34px auto 0; text-align: center; }
.hero-portrait img { width: 100%; height: auto; aspect-ratio: 1 / 1; border: 2px solid var(--accent); border-radius: 50%; object-fit: cover; }
.hero-portrait figcaption { margin-top: 16px; }
.hero-portrait strong, .hero-portrait span { display: block; }
.hero-portrait strong { color: var(--accent-dark); font-size: 22px; line-height: 1.4; }
.hero-portrait span { margin-top: 3px; color: var(--text-muted); font-size: 13px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: var(--text-secondary); font-size: 13px; }
.breadcrumb a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 180ms ease-out; }
.breadcrumb a:hover { text-decoration-color: currentColor; }
.hero h1 { max-width: 760px; font-size: clamp(32px, 8vw, 48px); font-weight: 750; letter-spacing: -.035em; line-height: 1.25; text-wrap: balance; }
.hero-subtitle { max-width: 650px; margin-top: 18px; color: var(--text-secondary); font-size: 16px; line-height: 1.85; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; color: var(--accent-dark); font-size: 13px; font-weight: 650; }
.hero-meta span { display: flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 17px; height: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 20px; border: 1px solid var(--accent-dark); border-radius: 24px; font-size: 14px; font-weight: 650; transition: transform 180ms ease-out, background-color 180ms ease-out, color 180ms ease-out; }
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--button-bg); color: var(--button-text); }
.btn-primary:hover { background: var(--accent); }
.btn-secondary { background: oklch(0.995 0.002 240 / .72); color: var(--accent-dark); }
.btn-secondary:hover { background: var(--surface-paper); }

/* Full instructor search panel */
.search-panel { padding: 38px 0 30px; background: oklch(0.978 0.014 225); }
.search-heading { text-align: center; }
.search-heading h1 { color: var(--accent-dark); font-size: 29px; letter-spacing: .02em; line-height: 1.35; }
.search-heading p { margin-top: 8px; color: var(--text-muted); font-size: 13px; letter-spacing: .05em; }
.search-heading > span { display: block; width: 44px; height: 4px; margin: 20px auto 0; background: var(--accent); }
.instructor-search { margin-top: 22px; }
.filter-row { display: grid; gap: 12px; padding: 18px 0; border-bottom: 1px solid oklch(0.89 0.018 225); }
.filter-label { color: var(--text-primary); font-size: 16px; font-weight: 500; }
.primary-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.secondary-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 24px; background: oklch(0.945 0.004 240); color: oklch(0.43 0.018 240); font-size: 14px; font-weight: 650; line-height: 1.45; text-align: center; transition: background-color 180ms ease-out, color 180ms ease-out, transform 180ms ease-out; }
.filter-pill:hover { background: var(--p-blue-100); color: var(--accent-dark); }
.filter-pill:active { transform: scale(.98); }
.filter-pill.active { background: var(--accent); color: var(--p-paper); }
.filter-all { width: 100%; }
.region-selects { display: grid; gap: 10px; }
.region-selects select, .keyword-filter input { width: 100%; min-width: 0; min-height: 46px; padding: 9px 12px; border: 1px solid oklch(0.65 0.025 230); border-radius: 3px; background: var(--surface-paper); color: var(--text-secondary); font-size: 14px; }
.region-selects select:disabled { cursor: not-allowed; opacity: .62; }
.keyword-filter input::placeholder { color: var(--text-muted); }
.search-submit { min-height: 46px; padding: 9px 22px; border: 0; border-radius: 24px; background: var(--accent); color: var(--p-paper); font-size: 16px; font-weight: 650; transition: background-color 180ms ease-out, transform 180ms ease-out; }
.search-submit:hover { background: var(--accent-dark); }
.search-submit:active { transform: scale(.98); }

/* Sticky profile navigation */
.profile-nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--border); background: oklch(0.995 0.002 240 / .96); backdrop-filter: blur(12px); }
.profile-nav-inner { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.profile-nav a { position: relative; flex: none; padding: 16px 14px 13px; color: var(--text-muted); font-size: 13px; font-weight: 650; white-space: nowrap; transition: color 180ms ease-out, background-color 180ms ease-out; }
.profile-nav a + a::before { content: ""; position: absolute; top: 18px; bottom: 18px; left: 0; width: 1px; background: var(--border); }
.profile-nav a::after { content: ""; position: absolute; right: 14px; bottom: 0; left: 14px; height: 3px; transform: scaleX(0); transform-origin: left center; background: var(--accent); transition: transform 220ms ease-out; }
.profile-nav a:hover { background: var(--surface-soft); color: var(--accent); }
.profile-nav a:hover::after, .profile-nav a.active::after { transform: scaleX(1); }
.profile-nav a.active { color: var(--accent); }
.profile-nav-external { color: var(--accent) !important; }

/* Shared content sections */
.page-content { padding-top: 36px; padding-bottom: 64px; }
.content-section { margin-bottom: 44px; scroll-margin-top: 76px; }
.section-bar { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--section-bar-bg); color: var(--section-bar-text); }
.section-bar h2 { font-size: 19px; font-weight: 700; line-height: 1.4; }
.section-en { color: var(--p-blue-100); font-size: 9px; font-weight: 650; letter-spacing: .1em; line-height: 1.5; }
.section-icon { display: inline-flex; flex: none; }
.section-icon svg { width: 21px; height: 21px; }
.section-bar.section-bar-centered {
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 88px;
  padding: 4px 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  text-align: center;
}
.section-bar.section-bar-centered::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 76px;
  height: 4px;
  transform: translateX(-50%) scaleX(1);
  background: #2F6FB0;
  animation: section-line-pulse 1.8s ease-in-out infinite;
}
@keyframes section-line-pulse {
  0%, 100% { transform: translateX(-50%) scaleX(1); }
  50% { transform: translateX(-50%) scaleX(.35); }
}
.section-bar.section-bar-centered .section-icon { display: none; }
.section-bar.section-bar-centered h2 { font-size: 26px; line-height: 1.4; }
.section-bar.section-bar-centered .section-en { color: var(--text-muted); font-size: 11px; letter-spacing: .05em; }
.section-body { padding: 26px 4px 0; }
.prose { max-width: 75ch; }
.prose p { color: var(--text-secondary); line-height: 1.95; text-align: justify; }
.prose p + p { margin-top: 18px; }

/* Instructor */
.instructor-section { padding: 22px; border-radius: var(--radius-sm); background: var(--surface-soft); }
.instructor-grid { display: block; margin-top: 28px; }
.instructor-profile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.instructor-profile-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.instructor-photo { width: 150px; margin: 0 0 22px; }
.instructor-profile-top .instructor-photo { flex: 0 0 auto; margin: 0; }
.instructor-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border: 1px solid #2F6FB0; border-radius: 50%; object-fit: cover; }
.instructor-heading { display: flex; flex-direction: column; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; gap: 10px; }
.instructor-name { margin: 0; color: var(--text-primary); font-size: 24px; line-height: 1.4; }
.instructor-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin: 0; }
.instructor-links a, .instructor-links button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 11px; border: 1px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); font-size: 12px; font-weight: 650; line-height: 1.4; text-decoration: none; cursor: pointer; transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out; }
.instructor-links a:hover, .instructor-links button:hover { border-color: var(--accent-dark); background: var(--accent); color: var(--p-paper); }
.instructor-contact { display: flex; flex: 0 1 auto; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 0; margin: 0; }
.contact-phone { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; max-width: 100%; text-align: right; }
.contact-phone > div { min-width: 0; }
.contact-phone-icon { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--p-blue-100); color: var(--accent); }
.contact-phone-icon svg { width: 16px; height: 16px; }
.contact-phone span { color: var(--text-muted); font-size: 12px; }
.instructor-copy .contact-phone p { margin: 0; color: var(--text-primary); font-size: 13px; line-height: 1.7; text-align: right; }
.contact-phone a { color: var(--accent-dark); font-weight: 700; }
.contact-phone a:hover { color: var(--accent); }
.karen-contact { justify-self: end; width: 150px; padding: 12px 10px; border: 1px solid #C9DCEC; border-radius: 10px; background: #FFFFFF; text-align: center; }
.karen-contact img { display: block; width: 108px; max-width: 100%; height: auto; margin: 0 auto 9px; }
.karen-contact strong { display: block; color: var(--accent-dark); font-size: 13px; }
.karen-contact > span { display: block; margin-top: 4px; color: var(--text-secondary); font-size: 10px; line-height: 1.5; }
.instructor-copy .karen-contact p { margin: 9px 0 0; padding-top: 9px; border-top: 1px solid #DCE8F1; color: var(--text-secondary); font-size: 10px; line-height: 1.65; text-align: center; }
.credential-banner { margin: 0 0 18px; padding: 10px 12px; border-left: 4px solid var(--accent); background: var(--p-blue-100); color: var(--accent); font-size: 16px; font-weight: 700; line-height: 1.6; }
.resume-subheading { margin: 24px 0 12px; color: var(--text-primary); font-size: 17px; line-height: 1.6; }
.resume-section-bar { flex-wrap: wrap; row-gap: 2px; margin: 30px 0 18px; min-height: 48px; }
.resume-section-bar h4 { color: inherit; font-size: 18px; font-weight: 700; line-height: 1.4; }
.resume-section-bar .section-en { text-transform: uppercase; }
.instructor-copy p { margin: 0 0 8px; color: oklch(0.43 0.018 240); font-size: 16px; line-height: 1.85; text-align: justify; }
.instructor-copy p strong { color: var(--text-primary); }
.instructor-copy .feedback-author { margin-bottom: 18px; text-align: right; }
.instructor-copy .instructor-location { white-space: nowrap; }

/* Teaching, courses, testimonials */
.style-grid, .course-list, .testimonial-grid { display: grid; gap: 24px; }
.style-item { padding-top: 18px; border-top: 1px solid var(--border); }
.style-item h3 { color: var(--accent); font-size: 20px; }
.style-item p { margin-top: 8px; color: var(--text-secondary); line-height: 1.9; text-align: justify; }
.course-item { position: relative; min-height: 170px; padding: 24px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); }
.course-item::after { content: ""; position: absolute; right: -30px; bottom: -58px; width: 130px; height: 130px; border: 24px solid var(--p-blue-100); border-radius: 50%; pointer-events: none; }
.course-item > span { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.course-item h3 { position: relative; z-index: 1; margin-top: 10px; font-size: 19px; line-height: 1.55; }
.course-item p { position: relative; z-index: 1; margin-top: 10px; color: var(--text-secondary); font-size: 14px; line-height: 1.8; }
.client-line { display: grid; gap: 10px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.client-line h3 { font-size: 19px; }
.client-line p { color: var(--accent); font-size: 17px; font-weight: 650; line-height: 1.8; }
.testimonial-grid { margin-top: 26px; }
blockquote { padding-left: 18px; border-left: 3px solid var(--accent); }
blockquote p { color: var(--text-secondary); line-height: 1.95; text-align: justify; }
blockquote footer { margin-top: 14px; color: var(--accent-dark); font-size: 14px; font-weight: 650; text-align: right; }

/* Service process */
.process-grid { display: grid; gap: 34px; }
.process-step { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 168px; padding: 22px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-paper); text-align: center; transition: transform 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out; }
.process-step::after { content: "↓"; position: absolute; bottom: -31px; left: 50%; transform: translateX(-50%); color: var(--accent); font-size: 23px; line-height: 1; }
.process-step:last-child::after { display: none; }
.process-step:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--accent); }
.process-icon { display: grid; width: 38px; height: 38px; place-items: center; color: var(--accent); transition: color 180ms ease-out; }
.process-icon svg { width: 32px; height: 32px; stroke-width: 1.7; }
.step-number { display: none; }
.process-step h3 { margin-top: 2px; font-size: 18px; line-height: 1.4; transition: color 180ms ease-out; }
.process-step p { margin-top: 4px; color: var(--text-secondary); font-size: 14px; transition: color 180ms ease-out; }
.process-step:hover h3, .process-step:hover p, .process-step:hover .process-icon { color: var(--p-paper); }

/* Company */
.about-content, .company-glance { text-align: center; }
.about-block + .about-block { position: relative; margin-top: 30px; padding-top: 28px; border-top: 0; }
.about-block + .about-block::before { display: none; }
.about-block h3, .company-glance > h3 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px 12px; font-size: 21px; }
.about-block h3 span, .company-glance > h3 span { color: var(--accent); font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.about-block p { max-width: 75ch; margin: 12px auto 0; color: var(--text-secondary); line-height: 1.9; text-align: center; }
.about-block .english-copy { color: var(--text-muted); font-size: 13px; line-height: 1.8; text-align: center; }
.company-glance { position: relative; margin-top: 34px; padding-top: 28px; border-top: 0; }
.company-glance::before { display: none; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin-top: 26px; }
.stats-grid div { min-width: 0; text-align: center; }
.stats-grid dt { color: var(--accent); font-size: 28px; font-weight: 750; letter-spacing: -.04em; line-height: 1.2; }
.stats-grid dd { margin-top: 7px; color: var(--text-primary); font-size: 13px; font-weight: 650; }
.stats-grid small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 10px; font-weight: 500; line-height: 1.5; }

/* Offline business, video channels and clients */
.offline-grid { display: grid; gap: 28px; }
.offline-item { padding: 24px 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-paper); text-align: center; transition: background-color 180ms ease-out, border-color 180ms ease-out; }
.offline-item:hover { border-color: var(--accent); background: var(--surface-soft); }
.offline-item h3 { color: var(--text-primary); font-size: 20px; line-height: 1.5; transition: color 180ms ease-out; }
.offline-item:hover h3 { color: var(--accent); }
.offline-item p { margin-top: 10px; color: var(--text-secondary); font-size: 15px; line-height: 1.9; text-align: center; }
.video-content { text-align: center; }
.video-grid { display: grid; gap: 24px; max-width: 660px; margin-inline: auto; align-items: start; }
.channel-item { width: min(100%, 190px); margin-inline: auto; padding: 12px 12px 11px; border: 1px solid #CFDCE8; border-radius: 12px; background: var(--surface-paper); }
.channel-item img { width: 130px; max-width: 100%; height: auto; margin-inline: auto; aspect-ratio: 1 / 1; border-radius: 6px; object-fit: contain; }
.channel-item figcaption { margin-top: 10px; color: var(--text-primary); font-size: 15px; font-weight: 650; }
.video-message { margin-top: 34px; }
.video-message h3 { color: var(--accent-dark); font-size: 20px; line-height: 1.6; }
.video-message p { margin-top: 12px; color: var(--text-secondary); font-size: 15px; line-height: 1.9; }
.video-message .english-copy { color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.clients-showcase { text-align: center; }
.clients-showcase img { width: 100%; height: auto; margin-inline: auto; }

/* Footer and back to top */
.site-footer { background: var(--accent-dark); color: var(--p-paper); }
.footer-inner { display: flex; flex-direction: column; gap: 20px; padding-top: 30px; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
.footer-inner strong, .footer-inner span { display: block; }
.footer-inner strong { font-size: 19px; letter-spacing: .05em; }
.footer-inner span { margin-top: 3px; color: var(--p-blue-100); font-size: 9px; letter-spacing: .14em; }
.footer-inner p { color: var(--p-blue-100); font-size: 14px; }
.footer-inner a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 650; }
.footer-inner a svg { width: 17px; height: 17px; transition: transform 180ms ease-out; }
.footer-inner a:hover svg { transform: translateX(4px); }
.back-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; min-height: 58px; border: 0; border-radius: var(--radius-sm); background: var(--accent); color: var(--p-paper); box-shadow: var(--shadow-soft); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 180ms ease-out, background-color 180ms ease-out; }
.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--accent-dark); }
.back-top svg { width: 21px; height: 21px; stroke-width: 2; }
.back-top span { font-size: 10px; line-height: 1.3; }

@media (max-width: 639px) {
  .instructor-profile-top { gap: 12px; }
  .instructor-profile-actions { width: min(120px, calc(100% - 162px)); }
  .instructor-profile-top .instructor-photo { width: 100%; }
  .instructor-profile-actions .instructor-name { font-size: 16px; line-height: 1.5; }
  .instructor-profile-actions .instructor-links { width: 100%; }
  .instructor-profile-actions .instructor-links a, .instructor-profile-actions .instructor-links button { max-width: 100%; }
  .instructor-contact { gap: 12px; }
  .instructor-copy .contact-phone p { font-size: 13px; }
  .instructor-links a, .instructor-links button { min-height: 44px; }
  .back-top { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 44px; min-height: 44px; border-radius: 50%; }
  .back-top span { display: none; }
}

@media (min-width: 640px) {
  .container { width: min(100% - 48px, var(--max)); }
  .primary-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keyword-filter { grid-template-columns: 90px minmax(0, 1fr) 140px; align-items: center; }
  .section-bar { gap: 14px; padding-inline: 18px; }
  .section-bar h2 { font-size: 20px; }
  .section-en { font-size: 10px; }
  .style-grid, .course-list, .testimonial-grid, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .style-grid { gap: 28px 36px; }
  .process-grid { gap: 34px 32px; }
  .process-step::after { display: none; }
  .client-line { grid-template-columns: 130px 1fr; align-items: baseline; }
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .channel-item { width: 100%; max-width: 190px; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 900px) {
  .header-main { flex-wrap: nowrap; gap: 24px; padding-top: 10px; }
  .brand { flex: 0 1 auto; }
  .brand img { height: 56px; }
  .brand img:last-child { height: 52px; }
  .brand-tagline { padding: 0 0 8px; }
  .search { order: 0; flex: 1 1 auto; max-width: 480px; margin-left: auto; }
  .header-phone { margin-left: auto; }
  .header-phone strong { font-size: 16px; }
  .search-panel { padding: 48px 0 36px; }
  .search-heading h1 { font-size: 38px; }
  .search-heading p { margin-top: 10px; font-size: 17px; }
  .instructor-search { margin-top: 30px; }
  .filter-row { grid-template-columns: 90px 110px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; }
  .filter-label { padding-top: 10px; }
  .primary-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .keyword-filter { grid-template-columns: 90px minmax(0, 1fr) 170px; align-items: center; }
  .keyword-filter .filter-label { padding-top: 0; }
  .main-nav-inner { justify-content: space-between; gap: 16px; }
  .main-nav a { font-size: 14px; }
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 56px; align-items: center; min-height: 420px; padding-top: 42px; padding-bottom: 46px; }
  .hero-portrait { width: 240px; margin: 0 10px 0 auto; }
  .hero h1 { font-size: 48px; }
  .hero-subtitle { font-size: 17px; }
  .hero-meta { gap: 14px 28px; font-size: 14px; }
  .profile-nav-inner { justify-content: center; gap: 32px; }
  .profile-nav a { font-size: 14px; }
  .page-content { padding-top: 48px; padding-bottom: 84px; }
  .content-section { margin-bottom: 58px; }
  .section-body { padding: 30px 10px 0; }
  .instructor-grid { display: block; }
  .instructor-photo { width: 190px; margin: 0 0 24px; }
  .instructor-name { font-size: 24px; }
  .course-item { padding: 28px; }
  .process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 38px 32px; }
  .process-step { gap: 8px; padding-block: 23px; }
  .process-step::after { content: "→"; top: 50%; right: -27px; bottom: auto; left: auto; display: block; transform: translateY(-50%); }
  .process-step:nth-child(4n)::after, .process-step:last-child::after { display: none; }
  .process-step:nth-child(4)::after { content: "↓"; top: auto; right: 50%; bottom: -34px; display: block; transform: translateX(50%); }
  .about-content { padding-inline: 24px; }
  .offline-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
  .video-grid { gap: 48px; }
}

@media (min-width: 1200px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 280px; gap: 80px; }
  .hero-portrait { width: 260px; }
  .profile-nav-inner { gap: 40px; }
  .section-body { padding-inline: 18px; }
  .process-grid { gap-inline: 64px; }
}

.process-step::after { display: none !important; }

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

@media print {
  .site-header, .search-panel, .profile-nav, .hero-actions, .instructor-links, .back-top, .site-footer { display: none !important; }
  .hero { background: var(--surface-paper) !important; }
  .hero-inner { min-height: 0; }
  .content-section { break-inside: auto; }
  .section-bar, .course-item, .process-step, .stats-grid div { break-inside: avoid; }
  .section-bar { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
