:root {
  --ink: #182534;
  --ink-soft: #51606d;
  --paper: #f7f3ea;
  --paper-deep: #eee7da;
  --white: #fffdf9;
  --line: rgba(24, 37, 52, 0.13);
  --red: #d64c3f;
  --red-dark: #a92f26;
  --green: #78945d;
  --green-light: #dfe8d4;
  --yellow: #f4c94c;
  --shadow: 0 24px 70px rgba(44, 34, 22, 0.1);
  --radius: 28px;
  --shell: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(244, 201, 76, 0.2), transparent 26rem),
    var(--paper);
  font-family:
    "Avenir Next",
    "Nunito Sans",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.shell {
  width: var(--shell);
  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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(247, 243, 234, 0.82);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 1px solid rgba(120, 148, 93, 0.3);
  border-radius: 17px;
  background: rgba(223, 232, 212, 0.56);
}

.brand-mark img {
  width: 46px;
  height: 32px;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.15;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-style: italic;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.main-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--red);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 23px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
}

.button:focus-visible,
.filter-tab:focus-visible,
.search-field:focus-within {
  outline: 3px solid rgba(214, 76, 63, 0.28);
  outline-offset: 3px;
}

.button-small {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 14px;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--ink);
  color: white;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 92px;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(24, 37, 52, 0.08);
  border-radius: 50%;
}

.hero-orbit-one {
  top: -310px;
  right: -180px;
  width: 780px;
  height: 780px;
}

.hero-orbit-two {
  right: 160px;
  bottom: -220px;
  width: 460px;
  height: 460px;
  background: rgba(223, 232, 212, 0.36);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(400px, 0.97fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 19px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  display: block;
  width: 27px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  max-width: 710px;
  margin: 0;
  font-family:
    "Songti SC",
    "STSong",
    Georgia,
    serif;
  font-size: clamp(45px, 6.4vw, 82px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero h1 em {
  position: relative;
  color: var(--red);
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.48;
  transform: rotate(-1deg);
  z-index: -1;
}

.hero-lead {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 31px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 750;
  text-underline-offset: 5px;
}

.text-link span {
  color: var(--red);
}

.hero-stats {
  display: flex;
  gap: clamp(27px, 4vw, 52px);
  margin: 52px 0 0;
}

.hero-stats div {
  display: grid;
  gap: 2px;
}

.hero-stats dt {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.hero-stats dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.hero-gallery {
  position: relative;
  min-height: 590px;
}

.featured-faces {
  position: absolute;
  inset: 0;
}

.featured-face {
  position: absolute;
  overflow: hidden;
  border: 7px solid var(--white);
  border-radius: 90px 90px 26px 26px;
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}

.featured-face:nth-child(1) {
  top: 0;
  left: 12%;
  width: 48%;
  height: 76%;
  transform: rotate(-4deg);
}

.featured-face:nth-child(2) {
  right: 0;
  bottom: 1%;
  width: 45%;
  height: 64%;
  transform: rotate(5deg);
}

.featured-face:nth-child(3) {
  bottom: 7%;
  left: 0;
  width: 34%;
  height: 40%;
  border-radius: 26px;
  transform: rotate(2deg);
}

.featured-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-face span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(24, 37, 52, 0.82);
  color: white;
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.featured-face span small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.gallery-note {
  position: absolute;
  top: 8%;
  right: -3%;
  z-index: 2;
  padding: 20px 22px;
  border: 1px solid rgba(24, 37, 52, 0.12);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 15px 40px rgba(44, 34, 22, 0.09);
  backdrop-filter: blur(12px);
  transform: rotate(3deg);
}

.gallery-note span {
  display: block;
  margin-bottom: 5px;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
}

.gallery-note strong {
  font-family: "Songti SC", Georgia, serif;
  font-size: 20px;
  line-height: 1.3;
}

.gallery-stamp {
  position: absolute;
  top: 54%;
  right: 39%;
  z-index: 3;
  display: grid;
  width: 82px;
  height: 82px;
  place-content: center;
  border-radius: 50%;
  background: var(--yellow);
  text-align: center;
  transform: rotate(-9deg);
  box-shadow: 0 12px 35px rgba(90, 66, 13, 0.18);
}

.gallery-stamp span {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.gallery-stamp small {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.promise-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.45);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.promise-grid p {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0 32px;
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 720;
}

.promise-grid p:first-child {
  padding-left: 0;
}

.promise-grid p:last-child {
  border-right: 0;
}

.promise-grid span {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
}

.section {
  padding: 108px 0;
}

.teacher-section {
  position: relative;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 50px;
}

.section-heading h2,
.learning-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(35px, 4.8vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.section-intro {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 15px;
}

.teacher-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.68);
}

.search-field {
  position: relative;
  display: flex;
  min-width: 260px;
  flex: 1;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 17px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink-soft);
  border-radius: 50%;
  pointer-events: none;
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  content: "";
  border-radius: 3px;
  background: var(--ink-soft);
  transform: rotate(45deg);
}

.search-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 18px 0 45px;
  border: 0;
  border-radius: 14px;
  outline: 0;
  background: var(--paper);
  color: var(--ink);
}

.search-field input::placeholder {
  color: #8b928f;
}

.filter-tabs {
  display: flex;
  gap: 5px;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper);
}

.filter-tab {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.filter-tab span {
  margin-left: 4px;
  opacity: 0.58;
  font-size: 11px;
}

.filter-tab.is-active {
  background: var(--ink);
  color: white;
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.result-line p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green-light);
  color: #4d623b !important;
}

.privacy-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.teacher-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(44, 34, 22, 0.04);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
  animation: card-in 420ms both;
}

.teacher-card:hover {
  border-color: rgba(214, 76, 63, 0.3);
  box-shadow: 0 20px 45px rgba(44, 34, 22, 0.1);
  transform: translateY(-5px);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.teacher-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.85;
  background:
    radial-gradient(circle at 20% 20%, rgba(244, 201, 76, 0.8), transparent 42%),
    linear-gradient(145deg, #dce7d1, #f0d8ce);
}

.teacher-photo > img,
.featured-face > img,
.dialog-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, center 28%);
  transform: scale(var(--photo-scale, 1));
  transition: transform 400ms ease;
}

.teacher-card:hover .teacher-photo img {
  transform: scale(calc(var(--photo-scale, 1) * 1.025));
}

.teacher-photo::after {
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  content: "";
  background: linear-gradient(transparent, rgba(15, 25, 34, 0.45));
  pointer-events: none;
}

.country-badge {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.88);
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}

.avatar-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  text-align: center;
}

.avatar-fallback span {
  position: relative;
  display: grid;
  width: 110px;
  height: 110px;
  place-content: center;
  border: 1px solid rgba(24, 37, 52, 0.14);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.5);
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.avatar-fallback small {
  margin-top: 13px;
  color: rgba(24, 37, 52, 0.58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.photo-underlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.photo-underlay span {
  font-family: Georgia, serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.photo-underlay small {
  margin-top: 5px;
  color: rgba(24, 37, 52, 0.56);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.is-broken .photo-underlay {
  opacity: 1;
}

.teacher-body {
  padding: 18px 18px 17px;
}

.teacher-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.teacher-title h3 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 21px;
  line-height: 1.2;
}

.teacher-title span {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.teacher-summary {
  min-height: 3.3em;
  margin: 11px 0 14px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: #596258;
  font-size: 10px;
  font-weight: 700;
}

.card-action {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 13px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.card-action span {
  color: var(--red);
  font-size: 17px;
  transition: transform 160ms ease;
}

.card-action:hover span {
  transform: translate(2px, -2px);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.load-more-wrap[hidden] {
  display: none;
}

.empty-state {
  padding: 70px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 7px;
  font-family: "Songti SC", Georgia, serif;
  font-size: 26px;
}

.empty-state p {
  margin: 0 0 22px;
  color: var(--ink-soft);
}

.learning-section {
  border-block: 1px solid var(--line);
  background: rgba(238, 231, 218, 0.54);
}

.learning-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(50px, 9vw, 130px);
}

.learning-copy > p:last-child {
  max-width: 430px;
  margin: 25px 0 0;
  color: var(--ink-soft);
}

.step-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.72);
}

.step-list li > span {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

.step-list strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Songti SC", Georgia, serif;
  font-size: 23px;
}

.step-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.contact-section {
  padding-top: 86px;
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  overflow: hidden;
  padding: clamp(35px, 6vw, 74px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 80% 25%, rgba(120, 148, 93, 0.3), transparent 34%),
    var(--ink);
  color: white;
  box-shadow: 0 28px 80px rgba(24, 37, 52, 0.18);
}

.contact-panel::before {
  position: absolute;
  top: -130px;
  left: 45%;
  width: 340px;
  height: 340px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.eyebrow-light {
  color: #f0cda1;
}

.contact-copy {
  position: relative;
}

.contact-copy h2 {
  max-width: 630px;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin: 23px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.contact-points {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  list-style: none;
}

.contact-points li::before {
  margin-right: 10px;
  color: var(--yellow);
  content: "✓";
}

.contact-card {
  position: relative;
  align-self: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.qr-image {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 18px;
  background: white;
}

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

.contact-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
}

.contact-email span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.58);
}

.contact-email a {
  overflow-wrap: anywhere;
  color: white;
  font-weight: 750;
  text-decoration: none;
  text-underline-offset: 4px;
}

.contact-email a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

.contact-card > div:last-child {
  margin-top: 18px;
}

.contact-card strong {
  font-family: "Songti SC", Georgia, serif;
  font-size: 20px;
}

.contact-card p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.site-footer {
  padding: 46px 0;
}

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

.footer-inner strong {
  font-family: "Songti SC", Georgia, serif;
  font-size: 20px;
}

.footer-inner p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.teacher-dialog {
  width: min(940px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(15, 24, 32, 0.34);
}

.teacher-dialog::backdrop {
  background: rgba(14, 23, 31, 0.62);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.9);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.dialog-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  min-height: 560px;
}

.dialog-photo-wrap {
  min-height: 560px;
  background: var(--paper-deep);
}

.dialog-photo {
  position: relative;
  width: 100%;
  height: 100%;
}

.dialog-photo .avatar-fallback span {
  width: 150px;
  height: 150px;
  font-size: 45px;
}

.dialog-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 65px 52px 46px;
}

.dialog-country {
  margin: 0 0 8px;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.dialog-copy h2 {
  margin: 0 0 17px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
}

.dialog-summary {
  margin: 24px 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.dialog-note {
  margin: auto 0 26px;
  padding: 16px 18px;
  border-left: 3px solid var(--green);
  background: rgba(223, 232, 212, 0.55);
}

.dialog-note strong {
  font-size: 13px;
}

.dialog-note p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.dialog-copy .button {
  align-self: flex-start;
}

@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 40px;
  }

  .hero-gallery {
    min-height: 520px;
  }

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

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 28px, 680px);
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-gallery {
    width: min(520px, 100%);
    min-height: 540px;
    margin: 10px auto 0;
  }

  .hero h1 em {
    white-space: normal;
  }

  .section {
    padding: 80px 0;
  }

  .section-heading,
  .learning-grid,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-heading {
    align-items: start;
  }

  .teacher-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-tabs {
    align-self: flex-start;
  }

  .teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card {
    width: min(390px, 100%);
  }

  .dialog-content {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .dialog-copy {
    padding: 56px 34px 38px;
  }
}

@media (max-width: 560px) {
  .contact-email {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 14px;
  }

  .brand-mark img {
    width: 39px;
    height: 27px;
  }

  .brand strong {
    font-size: 15px;
  }

  .header-cta {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .hero {
    padding: 37px 0 64px;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .hero-stats {
    justify-content: space-between;
    gap: 12px;
    margin-top: 40px;
  }

  .hero-stats dt {
    font-size: 25px;
  }

  .hero-gallery {
    min-height: 430px;
  }

  .gallery-note {
    right: -2%;
    padding: 14px 16px;
  }

  .gallery-note strong {
    font-size: 15px;
  }

  .gallery-stamp {
    width: 65px;
    height: 65px;
  }

  .gallery-stamp span {
    font-size: 20px;
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }

  .promise-grid p {
    min-height: 62px;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .promise-grid p:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 66px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2,
  .learning-copy h2,
  .contact-copy h2 {
    font-size: 36px;
  }

  .teacher-toolbar {
    padding: 12px;
  }

  .filter-tabs {
    width: 100%;
  }

  .filter-tab {
    flex: 1;
    padding-inline: 8px;
  }

  .result-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
  }

  .teacher-grid {
    gap: 14px;
  }

  .teacher-body {
    padding: 14px 13px;
  }

  .teacher-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .teacher-title h3 {
    font-size: 18px;
  }

  .teacher-summary {
    min-height: 3.4em;
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .tag {
    padding: 4px 7px;
    font-size: 9px;
  }

  .card-action {
    margin-top: 12px;
    padding-top: 10px;
  }

  .step-list li {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 18px;
  }

  .contact-panel {
    padding: 30px 22px;
    border-radius: 25px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-content {
    display: block;
    min-height: 0;
  }

  .dialog-photo-wrap {
    min-height: 310px;
    max-height: 44vh;
  }

  .dialog-copy {
    padding: 33px 24px 28px;
  }

  .dialog-copy h2 {
    font-size: 37px;
  }

  .dialog-summary {
    font-size: 13px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
