:root {
  --paper: #fafbf8;
  --mint: #f3f8f4;
  --leaf: #3d8b5a;
  --leaf-ink: #2f6b47;
  --forest: #1f5c3a;
  --ink: #2a2e2a;
  --muted: #5c655e;
  --line: #d5ddd4;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(31, 92, 58, 0.06);
  --font: "Noto Sans SC", "IBM Plex Sans", "PingFang SC", sans-serif;
  --max: 1120px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

::selection {
  background: #cfe3d4;
  color: var(--forest);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  caret-color: var(--leaf-ink);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--leaf-ink);
  text-decoration: none;
}

a:hover {
  color: var(--forest);
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--forest);
  color: var(--white);
  padding: 8px 12px;
  z-index: 80;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--leaf-ink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--forest);
  color: var(--white);
}

.btn-on-dark {
  background: var(--white);
  color: var(--leaf-ink);
}

.btn-on-dark:hover {
  background: var(--mint);
  color: var(--forest);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 251, 248, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 251, 248, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  color: var(--ink);
  font-size: 15px;
}

.site-nav a:hover {
  color: var(--leaf);
}

.site-nav .btn {
  color: var(--white);
}

.site-nav .btn:hover {
  color: var(--white);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.lang-switch a,
.lang-switch span {
  color: var(--muted);
}

.lang-switch a:hover {
  color: var(--leaf);
}

.lang-switch [aria-current="page"] {
  color: var(--leaf-ink);
  font-weight: 600;
}

.lang-switch a + span,
.lang-switch span + a,
.lang-switch a + a {
  border-left: 1px solid var(--line);
  margin-left: 0;
  padding-left: 8px;
}

.lang-switch--bar {
  display: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  margin: 6px 0;
}

.hero {
  position: relative;
  background: var(--mint);
  overflow: hidden;
  padding: 64px 0 72px;
}

.leaf-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cpath fill='none' stroke='%233d8b5a' stroke-width='1.1' d='M40 170c28-48 72-86 128-98-18 46-58 86-110 108 8-22 20-42 38-58'/%3E%3Cpath fill='none' stroke='%231f5c3a' stroke-width='0.8' d='M70 40c22 18 38 44 44 74'/%3E%3C/svg%3E");
  background-position: right -20px bottom -10px;
  mask-image: linear-gradient(120deg, transparent 20%, #000 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 12em;
}

html[lang="en"] .hero h1 {
  max-width: 16em;
}

html[lang="en"] .belief-lead {
  max-width: 14em;
}

.lede {
  font-size: 17px;
  color: var(--ink);
  max-width: 28em;
  margin-bottom: 0;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
}

.phone-link {
  display: block;
  margin: 8px 0 20px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--leaf-ink);
}

.phone-link:hover {
  color: var(--forest);
}

.qr-block {
  margin: 0;
}

.qr-block img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
}

.qr-block figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.btn:focus-visible,
.site-nav a:focus-visible,
.lang-switch a:focus-visible,
.phone-link:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 40em;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.section-head p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.belief {
  background: var(--paper);
}

.belief-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px 64px;
  align-items: start;
}

.belief-lead {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 10em;
}

.belief-list {
  display: grid;
  gap: 28px;
}

.belief-list dt {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--leaf-ink);
}

.belief-list dd {
  margin: 0;
  color: var(--muted);
  max-width: 36em;
}

.services {
  background: var(--mint);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.process li {
  padding: 0 24px 0 0;
  margin-right: 24px;
  border-right: 1px solid var(--line);
}

.process li:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}

.process h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.process p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tutors {
  background: var(--paper);
}

.tutor-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
}

.tutor-groups h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.tutor-groups > article > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.tutor-list li {
  display: grid;
  grid-template-columns: minmax(5.5em, max-content) 1fr auto;
  gap: 12px 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.tutor-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.tutor-name {
  font-weight: 600;
}

.tutor-meta {
  color: var(--muted);
  font-size: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.tags span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px 8px;
  font-size: 12px;
  color: var(--muted);
}

.disclaimer {
  background: #eef4ef;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.disclaimer h2 {
  font-size: 14px;
  margin-bottom: 8px;
}

.disclaimer p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  background: var(--forest);
  color: #e7efe8;
  padding: 48px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
}

.footer-brand {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.site-footer p {
  color: #d5e4d8;
  font-size: 14px;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--mint);
}

.site-footer .btn-on-dark {
  color: var(--leaf-ink);
}

.site-footer .btn-on-dark:hover {
  background: var(--mint);
  color: var(--forest);
}

.footer-disclaimer {
  margin-top: 12px;
  max-width: 28em;
  font-size: 12px !important;
}

.footer-legal {
  width: min(var(--max), calc(100% - 40px));
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(231, 239, 232, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px !important;
  color: #b7c8ba !important;
}

.footer-legal a {
  color: inherit;
}

.footer-legal a:hover {
  color: var(--mint);
}

html.motion-ok [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

html.motion-ok [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero-grid,
  .belief-grid,
  .process,
  .tutor-groups,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process {
    gap: 28px 32px;
  }

  .process li {
    margin-right: 0;
    padding-right: 0;
    border-right: 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .footer-grid {
    display: grid;
  }
}

@media (max-width: 720px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 8px;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lang-switch--bar {
    display: flex;
  }

  .lang-switch--nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .section {
    padding: 56px 0;
  }

  .hero-grid,
  .belief-grid,
  .process,
  .tutor-groups,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero h1 {
    font-size: 32px;
    max-width: none;
  }

  .belief-lead {
    max-width: none;
  }

  .process li {
    padding: 0 0 0 20px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .tutor-list li {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .tutor-name {
    grid-column: 1;
  }

  .tags {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .tutor-meta {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.motion-ok [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }
}
