:root {
  --xs-blue: #1e6bff;
  --xs-blue-dark: #0f4fd0;
  --xs-blue-soft: #e8f0ff;
  --xs-orange: #ff6a00;
  --xs-orange-dark: #e85e00;
  --xs-ink: #1a1f2e;
  --xs-muted: #667085;
  --xs-line: #e6ebf2;
  --xs-bg: #f7f9fc;
  --xs-white: #ffffff;
  --xs-radius: 14px;
  --xs-shadow: 0 12px 40px rgba(20, 56, 140, 0.08);
  --xs-font: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --xs-header-h: 104px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--xs-font);
  color: var(--xs-ink);
  background: var(--xs-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--xs-blue);
  text-decoration: none;
}

a:hover {
  color: var(--xs-blue-dark);
}

.xs-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.xs-narrow {
  width: min(780px, calc(100% - 40px));
}

.screen-reader-text,
.xs-skip-link {
  position: absolute;
  left: -9999px;
}

.xs-skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  background: #fff;
  padding: 8px 12px;
}

/* Header */
.xs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 235, 242, 0.9);
}

.xs-header__inner {
  min-height: var(--xs-header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.xs-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--xs-ink);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}

.xs-logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--xs-blue), #59a0ff);
  box-shadow: 0 8px 18px rgba(30, 107, 255, 0.28);
}

.xs-logo__text {
  white-space: nowrap;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.custom-logo-link img,
.custom-logo {
  max-height: 88px;
  width: auto;
  height: auto;
}

.xs-header__phones--single {
  justify-content: center;
}

.xs-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.xs-nav__list a {
  color: #2c3345;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 10px 4px;
  position: relative;
}

.xs-nav__list .current-menu-item > a,
.xs-nav__list a:hover {
  color: var(--xs-blue);
}

.xs-nav__list .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--xs-blue);
  border-radius: 2px;
}

.xs-header__phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.xs-phone {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--xs-ink);
  line-height: 1.25;
  white-space: nowrap;
}

.xs-phone--primary {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 10px;
}

.xs-phone__label {
  color: var(--xs-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.xs-phone--primary .xs-phone__label {
  color: #344054;
  font-size: 1rem;
}

.xs-phone__num {
  color: var(--xs-blue);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.xs-phone--primary .xs-phone__num {
  font-size: 1.28rem;
}

.xs-phone--secondary .xs-phone__num {
  font-size: 0.95rem;
  font-weight: 700;
}

.xs-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--xs-line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.xs-nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--xs-ink);
  border-radius: 2px;
}

/* Buttons */
.xs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.xs-btn:hover {
  transform: translateY(-1px);
}

.xs-btn--primary {
  background: var(--xs-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 107, 255, 0.28);
}

.xs-btn--primary:hover {
  background: var(--xs-blue-dark);
  color: #fff;
}

.xs-btn--accent {
  background: var(--xs-orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.28);
}

.xs-btn--accent:hover {
  background: var(--xs-orange-dark);
  color: #fff;
}

.xs-btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--xs-blue);
  border: 1px solid rgba(30, 107, 255, 0.25);
}

.xs-btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.xs-link {
  color: var(--xs-blue);
  font-weight: 600;
}

/* Hero */
.xs-hero {
  position: relative;
  min-height: clamp(480px, 63vh, 680px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--xs-ink);
}

.xs-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.7), transparent 35%),
    radial-gradient(circle at 78% 30%, rgba(89, 160, 255, 0.35), transparent 40%),
    linear-gradient(135deg, #d9e8ff 0%, #f3f7ff 42%, #cfe0ff 100%);
}

.xs-hero__bg::before,
.xs-hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 40% 60% 55% 45%;
  filter: blur(2px);
  opacity: 0.55;
  animation: xs-float 10s ease-in-out infinite;
}

.xs-hero__bg::before {
  width: 280px;
  height: 280px;
  right: 8%;
  top: 12%;
  background: linear-gradient(160deg, #7eb2ff, #2f78ff);
}

.xs-hero__bg::after {
  width: 180px;
  height: 180px;
  left: 12%;
  bottom: 10%;
  background: linear-gradient(160deg, #ffb078, #ff7a33);
  animation-delay: -3s;
}

@keyframes xs-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(6deg);
  }
}

.xs-hero__content {
  position: relative;
  z-index: 1;
  padding: 72px 0 110px;
  text-align: center;
}

.xs-hero__eyebrow {
  margin: 0 0 12px;
  color: #d62828;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.xs-hero__title {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.2;
  font-weight: 900;
  color: var(--xs-blue);
  letter-spacing: 0.02em;
}

.xs-hero__subtitle {
  margin: 14px 0 0;
  color: #98a2b3;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.xs-hero__actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Multi-image banner — aligned to dabingk ~680px */
.xs-hero--banner {
  min-height: clamp(480px, 63vh, 680px);
  padding: 0;
  display: block;
}

.xs-banner {
  position: relative;
  min-height: inherit;
}

.xs-banner__track {
  position: relative;
  min-height: inherit;
}

.xs-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  display: flex;
  align-items: center;
  /* 关闭叠字时没有内容撑高；必须继承 Banner 最小高度，否则图片绝对定位后整块空白 */
  min-height: inherit;
}

.xs-banner__slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 1;
  min-height: inherit;
}

.xs-banner__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.xs-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 纯图模式：媒体层本身也要占满 Banner 高度 */
.xs-hero--banner-only .xs-banner__media {
  min-height: inherit;
}

.xs-banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 24, 56, 0.35), rgba(8, 24, 56, 0.45));
}

/* Image-only banner: no HTML text overlay */
.xs-hero--banner-only .xs-banner__content,
.xs-hero--banner-only .xs-banner__shade {
  display: none;
}

.xs-banner__content {
  position: relative;
  z-index: 2;
  padding: 88px 0 120px;
}

.xs-hero__title--on-image,
.xs-hero__subtitle--on-image {
  color: #fff;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.xs-hero__subtitle--on-image {
  color: rgba(255, 255, 255, 0.88);
}

.xs-btn--on-image {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.xs-btn--on-image:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.xs-banner__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--xs-blue);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 40, 90, 0.16);
}

.xs-banner__nav:hover {
  background: #fff;
}

.xs-banner__nav--prev {
  left: 16px;
}

.xs-banner__nav--next {
  right: 16px;
}

.xs-banner__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 72px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.xs-banner__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.xs-banner__dot.is-active {
  width: 28px;
  background: #fff;
}

@media (max-width: 860px) {
  /* 手机端完整展示宽横幅 Banner，避免 object-fit:cover 左右裁切 */
  .xs-hero--banner {
    min-height: 0;
  }

  .xs-banner,
  .xs-banner__track {
    min-height: 0;
    overflow: hidden;
  }

  .xs-banner__slide,
  .xs-banner__slide.is-active,
  .xs-hero--banner-only .xs-banner__media {
    min-height: 0;
  }

  .xs-banner__slide {
    overflow: hidden;
  }

  .xs-banner__media {
    position: relative;
    inset: auto;
  }

  .xs-banner__media img {
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  .xs-banner__nav {
    display: none;
  }

  .xs-banner__dots {
    bottom: 12px;
  }

  .xs-banner__content {
    padding: 40px 0 56px;
  }
}

/* Points */
.xs-points {
  margin-top: -56px;
  position: relative;
  z-index: 2;
}

.xs-points__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  background: var(--xs-white);
  border-radius: 20px;
  box-shadow: var(--xs-shadow);
  padding: 28px;
  border: 1px solid rgba(230, 235, 242, 0.9);
}

.xs-point__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--xs-blue-soft);
  color: var(--xs-blue);
  font-weight: 800;
  margin-bottom: 12px;
}

.xs-point__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.xs-point__text {
  margin: 0;
  color: var(--xs-muted);
  font-size: 0.95rem;
}

/* Content-width section images (points / services) — follow .xs-container, not Banner */
.xs-block-image {
  margin: 0;
  max-width: 100%;
  line-height: 0;
}

.xs-block-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
}

.xs-points--image .xs-block-image img {
  box-shadow: var(--xs-shadow);
}

.xs-services--image,
.xs-process--image,
.xs-trust--image {
  padding-top: 56px;
  padding-bottom: 56px;
}

.xs-services--image .xs-block-image img,
.xs-process--image .xs-block-image img,
.xs-trust--image .xs-block-image img {
  border-radius: 16px;
}

/* Sections */
.xs-section {
  padding: 88px 0;
}

.xs-section--page {
  padding-top: 48px;
}

.xs-section--lead {
  background: linear-gradient(180deg, #f4f8ff, #ffffff);
}

.xs-section__head {
  text-align: center;
  margin-bottom: 40px;
}

.xs-section__head--row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  text-align: left;
}

.xs-section__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--xs-blue);
  font-weight: 850;
}

.xs-section__subtitle {
  margin: 10px 0 0;
  color: #98a2b3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.xs-section__desc {
  margin: 12px auto 0;
  max-width: 640px;
  color: var(--xs-muted);
}

.xs-page-hero {
  padding: 56px 0 28px;
  background:
    radial-gradient(circle at 80% 0%, rgba(30, 107, 255, 0.12), transparent 40%),
    linear-gradient(180deg, #f3f7ff, #ffffff);
}

.xs-page-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--xs-ink);
}

.xs-page-desc {
  margin-top: 12px;
  color: var(--xs-muted);
  max-width: 720px;
}

/* Product page: full-width banner + image blocks */
.xs-product-banner {
  width: 100%;
  line-height: 0;
  background: #f5f7fb;
}

.xs-product-banner__link {
  display: block;
}

.xs-product-banner__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(360px, 52vw, 680px);
  object-fit: cover;
}

.xs-product-image {
  padding: 28px 0;
}

.xs-product-image__inner {
  line-height: 0;
}

.xs-product-image__link {
  display: block;
}

.xs-product-image__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.xs-feature-grid,
.xs-service-grid,
.xs-trust__grid,
.xs-course-grid,
.xs-teacher-grid,
.xs-process__grid {
  display: grid;
  gap: 18px;
}

.xs-feature-grid,
.xs-course-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* 体系卡片：不与同行文字卡拉齐高度，图片按宽度缩放、高度自适应 */
.xs-feature-grid {
  align-items: start;
}

.xs-service-grid,
.xs-trust__grid {
  grid-template-columns: repeat(5, 1fr);
}

.xs-trust__grid {
  grid-template-columns: repeat(3, 1fr);
}

.xs-process__grid {
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.xs-feature,
.xs-service,
.xs-trust__item,
.xs-process__item {
  background: var(--xs-bg);
  border: 1px solid var(--xs-line);
  border-radius: var(--xs-radius);
  padding: 22px;
}

.xs-feature--image {
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  border: none;
  height: auto;
  align-self: start;
}

.xs-feature--image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: var(--xs-radius);
}

.xs-feature h3,
.xs-service h3,
.xs-trust__item h3,
.xs-process__item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.xs-feature p,
.xs-service p,
.xs-trust__item p,
.xs-process__item p {
  margin: 0;
  color: var(--xs-muted);
  font-size: 0.94rem;
}

.xs-process__num {
  display: inline-block;
  color: var(--xs-orange);
  font-weight: 800;
  margin-bottom: 8px;
}

.xs-system {
  background: linear-gradient(180deg, #ffffff, #f7faff);
}

.xs-process {
  background: #fff;
}

/* Teachers */
.xs-teacher-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.xs-teacher-grid {
  grid-template-columns: repeat(4, 1fr);
}

.xs-teacher-card {
  background: #fff;
  border: 1px solid var(--xs-line);
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xs-teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--xs-shadow);
}

.xs-teacher-card__link {
  color: inherit;
  display: block;
}

.xs-teacher-card__media {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #dbe8ff, #f4f7ff);
}

.xs-teacher-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xs-teacher-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 800;
  color: var(--xs-blue);
}

.xs-teacher-card__placeholder--lg {
  min-height: 360px;
  border-radius: 18px;
  background: linear-gradient(160deg, #dbe8ff, #f4f7ff);
}

.xs-teacher-card__body {
  padding: 16px;
}

.xs-teacher-card__name {
  margin: 0;
  font-size: 1.1rem;
}

.xs-teacher-card__subject {
  margin: 6px 0;
  color: var(--xs-blue);
  font-weight: 600;
  font-size: 0.9rem;
}

.xs-teacher-card__tagline {
  margin: 0;
  color: var(--xs-muted);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xs-teacher-single {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
}

.xs-breadcrumb {
  margin: 0 0 10px;
  color: var(--xs-muted);
}

.xs-lead-line {
  color: var(--xs-muted);
}

/* Courses */
.xs-course-card {
  background: #fff;
  border: 1px solid var(--xs-line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(16, 40, 90, 0.04);
}

.xs-course-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1e6bff, #69a5ff);
}

.xs-course-card__placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 40%),
    linear-gradient(135deg, #1e6bff, #69a5ff);
}

.xs-course-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.xs-course-card__tag {
  align-self: flex-start;
  background: var(--xs-blue-soft);
  color: var(--xs-blue);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.xs-course-card__title {
  margin: 0;
  font-size: 1.12rem;
}

.xs-course-card__feature,
.xs-course-card__period {
  margin: 0;
  color: var(--xs-muted);
  font-size: 0.9rem;
}

.xs-course-card .xs-btn {
  margin-top: auto;
  width: 100%;
}

/* About / FAQ / prose */
.xs-about-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
}

.xs-about-card {
  background: var(--xs-bg);
  border: 1px solid var(--xs-line);
  border-radius: var(--xs-radius);
  padding: 20px;
  margin-bottom: 16px;
}

.xs-prose p {
  color: #344054;
}

.xs-faq__item {
  background: #fff;
  border: 1px solid var(--xs-line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.xs-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: #b42318;
  list-style: none;
}

.xs-faq__item summary::-webkit-details-marker {
  display: none;
}

.xs-faq__item summary::before {
  content: "▼ ";
  font-size: 0.75em;
  color: var(--xs-ink);
}

.xs-faq__item p {
  margin: 10px 0 0;
  color: #344054;
}

.xs-empty {
  text-align: center;
  color: var(--xs-muted);
  padding: 24px;
  background: var(--xs-bg);
  border-radius: 12px;
}

/* Lead form */
.xs-lead-wrap {
  width: min(560px, calc(100% - 40px));
}

.xs-lead {
  background: #fff;
  border: 1px solid var(--xs-line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--xs-shadow);
}

.xs-lead__title {
  margin: 0 0 18px;
  text-align: center;
  color: var(--xs-blue);
}

.xs-lead__field {
  margin: 0 0 14px;
}

.xs-lead__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--xs-muted);
}

.xs-lead__field input,
.xs-lead__field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--xs-line);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  background: #fff;
}

.xs-lead__field input:focus,
.xs-lead__field select:focus {
  outline: 2px solid rgba(30, 107, 255, 0.25);
  border-color: var(--xs-blue);
}

.xs-lead__submit {
  width: 100%;
  margin-top: 6px;
}

.xs-lead__msg {
  min-height: 1.2em;
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.92rem;
}

.xs-lead__msg.is-ok {
  color: #039855;
}

.xs-lead__msg.is-err {
  color: #d92d20;
}

.xs-lead__note {
  margin: 10px 0 0;
  text-align: center;
  color: #98a2b3;
  font-size: 0.8rem;
}

.xs-lead-modal[hidden] {
  display: none !important;
}

.xs-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}

.xs-lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
}

.xs-lead-modal__panel {
  position: relative;
  z-index: 1;
  width: min(480px, calc(100% - 32px));
}

.xs-lead-modal__close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--xs-muted);
  z-index: 2;
}

/* Footer */
.xs-footer {
  background: #0f1b33;
  color: rgba(255, 255, 255, 0.82);
  padding-top: 48px;
}

.xs-footer a {
  color: #fff;
}

.xs-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 24px;
  padding-bottom: 36px;
  align-items: start;
}

.xs-footer__grid--no-cta {
  grid-template-columns: 1.2fr auto;
}

.xs-footer__brand strong {
  display: block;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px;
}

.xs-footer__contact {
  text-align: right;
  justify-self: end;
}

.xs-footer__phone {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.xs-footer__phone--primary {
  font-size: 1.2rem;
  font-weight: 700;
}

.xs-footer__phone-label {
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.xs-footer__phone a {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.xs-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.xs-footer__bar .xs-container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .xs-points__grid,
  .xs-feature-grid,
  .xs-course-grid,
  .xs-process__grid,
  .xs-teacher-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .xs-service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .xs-about-layout,
  .xs-teacher-single,
  .xs-footer__grid,
  .xs-footer__grid--no-cta {
    grid-template-columns: 1fr;
  }

  .xs-footer__contact {
    text-align: left;
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .xs-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "phones phones"
      "nav nav";
  }

  .xs-header__brand {
    grid-area: brand;
  }

  .xs-nav-toggle {
    display: inline-flex;
    grid-area: toggle;
    justify-self: end;
  }

  .xs-header__phones {
    grid-area: phones;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 4px 0 10px;
    border-top: 1px dashed var(--xs-line);
  }

  .xs-phone--primary {
    justify-content: flex-start;
  }

  .xs-phone--primary .xs-phone__num {
    font-size: 1.15rem;
  }

  .xs-nav {
    grid-area: nav;
    display: none;
    padding-bottom: 14px;
  }

  .xs-nav.is-open {
    display: block;
  }

  .xs-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .xs-nav__list a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--xs-line);
  }

  .xs-points {
    margin-top: 16px;
  }

  .xs-points__grid,
  .xs-feature-grid,
  .xs-course-grid,
  .xs-process__grid,
  .xs-service-grid,
  .xs-trust__grid,
  .xs-teacher-grid {
    grid-template-columns: 1fr;
  }

  .xs-section {
    padding: 64px 0;
  }

  .xs-section__head--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .xs-hero__content {
    padding: 56px 0 88px;
  }

  .xs-product-banner__img {
    max-height: none;
  }

  .xs-product-image {
    padding: 16px 0;
  }
}
