:root {
  --brand: #f7a8c4;
  --brand-deep: #d9648f;
  --brand-soft: #fde8f0;
  --brand-glow: rgba(247, 168, 196, 0.35);
  --accent: #a88cf7;
  --accent-deep: #7a5fd9;
  --ink: #2b2430;
  --ink-soft: #4a3f52;
  --bg: #fffafc;
  --bg-alt: #fdf3f8;
  --line: #f0dfe6;
  --muted: #7a6b74;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.72);
  --shadow-sm: 0 2px 8px rgba(217, 100, 143, 0.06);
  --shadow: 0 6px 24px rgba(217, 100, 143, 0.10);
  --shadow-lg: 0 16px 48px rgba(217, 100, 143, 0.16);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 64px;
}

body.dark {
  --brand: #f7a8c4;
  --brand-deep: #f7c8da;
  --brand-soft: #3a3140;
  --brand-glow: rgba(247, 168, 196, 0.18);
  --accent: #b9a4f7;
  --accent-deep: #cbb8ff;
  --ink: #f3e9ee;
  --ink-soft: #d8c9d2;
  --bg: #1c171f;
  --bg-alt: #221c26;
  --line: #3a3140;
  --muted: #b2a3ac;
  --card: #262029;
  --card-glass: rgba(38, 32, 41, 0.72);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% -8%, var(--brand-glow), transparent 42%),
    radial-gradient(circle at 92% 4%, rgba(168, 140, 247, 0.14), transparent 40%);
  background-attachment: fixed;
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.dark {
  background-image:
    radial-gradient(circle at 12% -8%, rgba(247, 168, 196, 0.10), transparent 42%),
    radial-gradient(circle at 92% 4%, rgba(168, 140, 247, 0.10), transparent 40%);
}

::selection {
  background: var(--brand);
  color: #fff;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Header ============ */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

body.dark header.site {
  background: rgba(28, 23, 31, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--brand-deep);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.logo svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 3px 8px var(--brand-glow));
  transition: transform 0.5s var(--ease);
}

.logo:hover svg {
  transform: rotate(12deg) scale(1.06);
}

nav.main {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 15px;
}

nav.main a {
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 8px;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

nav.main a:hover {
  color: var(--brand-deep);
  background: var(--brand-soft);
  text-decoration: none;
}

nav.main a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

nav.main a:hover::after {
  transform: scaleX(1);
}

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

.search-box {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
  transform: translateY(-1px);
}

.search-box input {
  border: 0;
  padding: 7px 14px;
  outline: 0;
  background: transparent;
  color: var(--ink);
  width: 150px;
  font-size: 14px;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box button {
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  padding: 7px 16px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: filter 0.25s var(--ease);
}

.search-box button:hover {
  filter: brightness(1.06);
}

.icon-btn {
  border: 1px solid var(--line);
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: var(--ink);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.icon-btn:hover {
  transform: translateY(-2px) rotate(6deg);
  border-color: var(--brand);
  box-shadow: 0 6px 16px var(--brand-glow);
}

.icon-btn:active {
  transform: translateY(0) scale(0.94);
}

.menu-toggle {
  display: none;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.breadcrumb a:hover {
  color: var(--brand-deep);
  text-decoration: none;
}

/* ============ Banner ============ */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin: 14px 0 34px;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%, rgba(0, 0, 0, 0.10));
  border-radius: inherit;
}

.slides {
  display: flex;
  transition: transform 0.7s var(--ease);
  will-change: transform;
}

.slide {
  min-width: 100%;
  padding: 56px 44px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.slide::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(2px);
  pointer-events: none;
}

.slide:nth-child(1) {
  background: linear-gradient(135deg, #f7a8c4 0%, #d9648f 55%, #b84a76 100%);
}

.slide:nth-child(2) {
  background: linear-gradient(135deg, #a8c7f7 0%, #5f86d9 55%, #4363b8 100%);
}

.slide:nth-child(3) {
  background: linear-gradient(135deg, #f7d9a8 0%, #d9a25f 55%, #b8823f 100%);
}

.slide h2 {
  font-size: 28px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
  position: relative;
  z-index: 1;
}

.slide p {
  max-width: 640px;
  opacity: 0.95;
  color: #fff;
  position: relative;
  z-index: 1;
  font-size: 15.5px;
}

.dots {
  position: absolute;
  bottom: 18px;
  left: 44px;
  display: flex;
  gap: 9px;
  z-index: 3;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

.dots span:hover {
  background: rgba(255, 255, 255, 0.8);
}

.dots span.active {
  width: 26px;
  border-radius: 6px;
  background: #fff;
}

/* ============ Typography ============ */
h1 {
  font-size: 30px;
  line-height: 1.4;
  margin: 16px 0 16px;
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, var(--ink) 0%, var(--brand-deep) 60%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

body.dark h1 {
  background: linear-gradient(120deg, var(--ink) 0%, var(--brand) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

h2 {
  font-size: 23px;
  margin: 42px 0 16px;
  padding-left: 14px;
  border-left: 5px solid transparent;
  border-image: linear-gradient(180deg, var(--brand), var(--accent)) 1;
  letter-spacing: 0.01em;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 8px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

h3 {
  font-size: 18px;
  margin: 24px 0 10px;
  color: var(--brand-deep);
  letter-spacing: 0.01em;
}

h4 {
  font-size: 16px;
  margin: 16px 0 8px;
  color: var(--ink-soft);
}

p {
  margin: 10px 0;
  color: var(--ink);
}

ul {
  padding-left: 22px;
}

ul li {
  margin: 4px 0;
  color: var(--ink-soft);
}

section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.lead {
  font-size: 17px;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  color: var(--ink-soft);
}

.lead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

/* ============ Grid & Cards ============ */
.grid {
  display: grid;
  gap: 18px;
}

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

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

.g4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand-glow), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.card p,
.card ul {
  position: relative;
  z-index: 1;
}

.card ul {
  list-style: none;
  padding-left: 0;
}

.card ul li {
  padding: 5px 0 5px 18px;
  position: relative;
  font-size: 14.5px;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.stat {
  text-align: center;
  padding: 26px 12px;
}

.stat .num {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(120deg, var(--brand-deep), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat .lbl {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* ============ Article List ============ */
.article-item {
  border-bottom: 1px dashed var(--line);
  padding: 18px 4px;
  transition: padding-left 0.3s var(--ease), background 0.3s var(--ease), border-radius 0.3s var(--ease);
  border-radius: var(--radius-sm);
}

.article-item:hover {
  padding-left: 14px;
  background: linear-gradient(90deg, var(--brand-soft), transparent 70%);
}

.article-item:last-child {
  border-bottom: 0;
}

.article-item .meta {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0;
  letter-spacing: 0.01em;
}

.article-item h3 {
  margin: 6px 0;
  transition: color 0.25s var(--ease);
}

.article-item:hover h3 {
  color: var(--accent-deep);
}

.article-item p {
  font-size: 15px;
  color: var(--ink-soft);
}

.article-item a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0;
  transition: gap 0.3s var(--ease), color 0.25s var(--ease);
}

.article-item a:hover {
  gap: 9px;
  text-decoration: none;
}

/* ============ Tag ============ */
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  margin-right: 6px;
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.tag:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
}

body.dark .tag {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

/* ============ FAQ ============ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.faq-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.faq-item.open {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.faq-q {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  line-height: 1.6;
  transition: color 0.25s var(--ease);
}

.faq-q:hover {
  color: var(--brand-deep);
}

.faq-q span {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.faq-item.open .faq-q span {
  transform: rotate(180deg);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 20px;
  color: var(--muted);
}

.faq-item.open .faq-a {
  max-height: 480px;
  padding: 0 20px 18px;
}

.faq-a p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

/* ============ Steps ============ */
.steps {
  counter-reset: step;
  margin: 20px 0;
}

.step {
  position: relative;
  padding-left: 56px;
  margin: 18px 0;
  padding-top: 2px;
  padding-bottom: 2px;
  transition: transform 0.3s var(--ease);
}

.step:hover {
  transform: translateX(4px);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 16px var(--brand-glow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.step:hover::before {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 10px 24px var(--brand-glow);
}

.step h4 {
  margin: 0 0 6px;
  color: var(--brand-deep);
}

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

/* ============ Table ============ */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  transition: background 0.25s var(--ease);
}

th {
  background: linear-gradient(135deg, var(--brand-soft), rgba(168, 140, 247, 0.12));
  color: var(--brand-deep);
  font-weight: 700;
  letter-spacing: 0.02em;
}

tbody tr {
  background: var(--card);
}

tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

tbody tr:hover {
  background: var(--brand-soft);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ============ Footer ============ */
.footer {
  background: linear-gradient(180deg, #2b2430 0%, #241e28 100%);
  color: #e8dbe2;
  margin-top: 56px;
  padding: 48px 0 22px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
  background-size: 200% 100%;
  animation: footerLine 6s linear infinite;
}

@keyframes footerLine {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.footer a {
  color: #f7c8da;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer a:hover {
  color: #fff;
  text-decoration: none;
  padding-left: 4px;
}

.footer .cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.footer ul {
  list-style: none;
  font-size: 14px;
  line-height: 2;
  padding-left: 0;
}

.footer ul li {
  color: #c9bac4;
  transition: color 0.25s var(--ease);
}

.footer ul li:hover {
  color: #fff;
}

.footer p {
  color: #c9bac4;
}

.copy {
  border-top: 1px solid #453a4b;
  margin-top: 30px;
  padding-top: 18px;
  font-size: 13px;
  color: #b2a3ac;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ To Top ============ */
#toTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: none;
  box-shadow: 0 8px 24px var(--brand-glow);
  z-index: 90;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

#toTop:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 32px var(--brand-glow);
  filter: brightness(1.06);
}

#toTop:active {
  transform: translateY(0) scale(0.96);
}

/* ============ Reveal Animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* ============ Focus / Motion ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .slide {
    padding: 46px 34px;
  }
  .slide h2 {
    font-size: 25px;
  }
  .dots {
    left: 34px;
  }
}

@media (max-width: 900px) {
  .g3,
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer .cols {
    grid-template-columns: repeat(2, 1fr);
  }
  nav.main {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .search-box input {
    width: 110px;
  }
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 21px;
    margin-top: 34px;
  }
  .lead {
    font-size: 16px;
    padding: 18px 20px;
  }
}

@media (max-width: 640px) {
  .g2,
  .g3,
  .g4 {
    grid-template-columns: 1fr;
  }
  .footer .cols {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  h1 {
    font-size: 23px;
    line-height: 1.45;
  }
  h2 {
    font-size: 19px;
    padding-left: 11px;
  }
  h3 {
    font-size: 17px;
  }
  .slide {
    padding: 36px 22px 44px;
  }
  .slide h2 {
    font-size: 21px;
  }
  .slide p {
    font-size: 14.5px;
  }
  .dots {
    left: 22px;
    bottom: 16px;
  }
  .banner {
    border-radius: var(--radius-lg);
    margin: 10px 0 26px;
  }
  .card {
    padding: 18px;
    border-radius: var(--radius);
  }
  .nav-tools {
    gap: 6px;
  }
  .search-box input {
    width: 84px;
    padding: 6px 10px;
    font-size: 13px;
  }
  .search-box button {
    padding: 6px 11px;
    font-size: 13px;
  }
  .icon-btn {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .step {
    padding-left: 48px;
  }
  .step::before {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .faq-q {
    padding: 14px 16px;
    font-size: 15px;
  }
  .faq-item.open .faq-a {
    padding: 0 16px 16px;
  }
  .faq-a {
    padding: 0 16px;
  }
  table {
    font-size: 13px;
  }
  th,
  td {
    padding: 9px 10px;
  }
  .copy {
    flex-direction: column;
    gap: 6px;
  }
  #toTop {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 400px) {
  .logo span {
    display: none;
  }
  .search-box input {
    width: 70px;
  }
}