/* ==========================================================================
   月老在杭州 · yuelao.cloud
   门户站点样式表（纯手写 CSS，无外部依赖，可直接静态部署）
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --brand: #e8324a;
  --brand-deep: #c01f36;
  --brand-soft: #ffe9ec;
  --coral: #ff6b57;
  --gold: #e0a437;
  --gold-soft: #fff6e3;

  --ink: #1c1720;
  --ink-2: #4a414f;
  --ink-3: #857c8b;
  --line: #f0e5e8;
  --bg: #fffaf9;
  --bg-2: #fdf2f3;
  --card: #ffffff;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-s: 0 2px 10px rgba(80, 24, 40, 0.05);
  --shadow: 0 10px 30px rgba(140, 26, 52, 0.08);
  --shadow-l: 0 20px 50px rgba(140, 26, 52, 0.14);
  --maxw: 1180px;
  --grad-brand: linear-gradient(135deg, #ff7a6b 0%, #e8324a 45%, #c01f36 100%);
  --grad-soft: linear-gradient(160deg, #fff6f4 0%, #ffe9ec 55%, #ffe3e8 100%);
}

/* ---------- 2. 基础 ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.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;
}
:focus-visible { outline: 3px solid rgba(232, 50, 74, 0.45); outline-offset: 2px; border-radius: 6px; }

/* ---------- 3. 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 250, 249, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-avatar {
  position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%;
  padding: 2px; background: #fff; box-shadow: 0 6px 16px rgba(232, 50, 74, .22), 0 0 0 2px #ffe1e5;
}
.brand-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.brand-avatar::after {
  content: "♥"; position: absolute; right: -3px; bottom: -3px; font-size: 11px;
  background: var(--brand); color: #fff; border-radius: 50%;
  width: 17px; height: 17px; display: grid; place-items: center; line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
.brand-text strong { display: block; font-size: 17px; letter-spacing: 0.01em; }
.brand-text span { display: block; font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.14em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 13px; border-radius: 999px; font-size: 15px; color: var(--ink-2);
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.nav-links a.active { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 15px;
  background: var(--grad-brand); box-shadow: 0 8px 20px rgba(232, 50, 74, 0.3);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(232, 50, 74, 0.36); }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; }
.nav-toggle span { display: block; width: 19px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- 4. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-soft);
  border-bottom: 1px solid var(--line);
  padding: 54px 0 58px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none;
}
.hero::before {
  width: 460px; height: 460px; right: -140px; top: -190px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 122, 107, .38), rgba(232, 50, 74, .08) 62%, transparent 72%);
}
.hero::after {
  width: 320px; height: 320px; left: -120px; bottom: -160px;
  background: radial-gradient(circle at 50% 50%, rgba(224, 164, 55, .22), transparent 68%);
}
.hero-grid {
  position: relative; display: grid; gap: 24px; align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--brand-deep); background: #fff; border: 1px solid #ffd6dc;
  box-shadow: var(--shadow-s); margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(29px, 3.9vw, 45px); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.22; margin-bottom: 18px; max-width: 96%;
}
.hero h1 em {
  font-style: normal; white-space: nowrap;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--ink-2); font-size: 17px; max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 27px 0 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 12px 28px rgba(232, 50, 74, .32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(232, 50, 74, .4); }
.btn-ghost { background: #fff; color: var(--brand-deep); border: 1.5px solid #ffd0d7; box-shadow: var(--shadow-s); }
.btn-ghost:hover { background: var(--brand-soft); transform: translateY(-2px); }

.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-3); font-size: 14px; }
.hero-meta b { color: var(--ink); font-size: 15px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }

/* 数据条 */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 38px; padding-top: 30px; border-top: 1px dashed #ffd3da;
}
.stats div { text-align: left; }
.stats strong {
  display: block; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats span { font-size: 13.5px; color: var(--ink-3); }

/* Hero 主视觉：月老形象 */
.hero-visual { position: relative; padding: 0 26px; }

.ring {
  position: absolute; left: 50%; top: 40%; width: 400px; height: 400px; margin: -200px 0 0 -200px;
  border-radius: 50%; border: 1.5px dashed rgba(232, 50, 74, .3); z-index: 0;
  animation: spin 46s linear infinite;
}
.ring::after {
  content: ""; position: absolute; inset: 26px; border-radius: 50%;
  border: 1px solid rgba(224, 164, 55, .28);
}
@keyframes spin { to { transform: rotate(360deg); } }

.mascot-stage {
  position: relative; z-index: 1; margin: 0; text-align: center;
}
.mascot {
  width: 100%; max-width: 430px; margin: 0 auto; display: block;
  border-radius: 30px; border: 8px solid #fff;
  box-shadow: 0 26px 60px rgba(140, 26, 52, .2);
  animation: floaty 7s ease-in-out infinite;
}

.mini-card {
  position: relative; z-index: 2;
  max-width: 340px; margin: -30px auto 0; padding: 14px 18px;
  background: #fff; border: 1px solid #ffe1e5; border-radius: 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.mini-mark {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 17px;
  display: grid; place-items: center; box-shadow: 0 8px 18px rgba(232, 50, 74, .3);
}
.mini-text { text-align: left; }
.mini-text b { display: block; font-size: 15px; color: var(--ink); }
.mini-text i { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

.hero-float {
  position: absolute; background: #fff; border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: 13.5px; color: var(--ink-2); white-space: nowrap;
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); z-index: 3;
}
.hero-float b { color: var(--brand-deep); }
.float-a { left: -40px; top: 30px; animation: floaty 5s ease-in-out infinite; }
.float-b { right: -40px; bottom: 70px; animation: floaty 6.4s ease-in-out infinite reverse; }
.float-ico {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 15px; flex: none;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- 5. 区块通用 ---------- */
.section { padding: 62px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .2em;
  color: var(--brand); text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(23px, 3vw, 33px); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--ink-3); font-size: 16px; }

/* ---------- 6. 服务卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-s);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #ffd8de; }
.card-ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 9px; }
.card p { color: var(--ink-3); font-size: 14.6px; }
.card-tag {
  display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 600;
  color: var(--gold); background: var(--gold-soft); border-radius: 999px; padding: 4px 11px;
}

/* ---------- 7. 内容（公众号文章）区 ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 9px 17px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); transition: .18s ease;
}
.chip:hover { border-color: #ffc9d2; color: var(--brand-deep); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.search {
  position: relative; display: flex; align-items: center; min-width: 250px;
}
.search input {
  width: 100%; padding: 11px 15px 11px 40px; border-radius: 999px; font-size: 14.6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search input:focus { border-color: #ffc0ca; box-shadow: 0 0 0 4px rgba(232, 50, 74, .09); }
.search svg { position: absolute; left: 14px; width: 16px; height: 16px; fill: none; stroke: var(--ink-3); stroke-width: 2; }

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

.a-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.a-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #ffd3db; }
.a-thumb {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
}
.a-thumb .glyph { font-size: 46px; font-weight: 800; color: #fff; opacity: .96; text-shadow: 0 4px 18px rgba(120, 0, 30, .25); }
.a-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .3), transparent 42%);
}
.a-thumb .kind {
  position: absolute; left: 12px; top: 12px; z-index: 2; font-size: 12px; font-weight: 600;
  color: #fff; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .35);
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.a-body { padding: 17px 19px 20px; display: flex; flex-direction: column; flex: 1; }
.a-meta { display: flex; align-items: center; gap: 8px; font-size: 12.8px; color: var(--ink-3); margin-bottom: 9px; }
.a-meta .seed {
  color: var(--gold); background: var(--gold-soft); border-radius: 6px; padding: 1px 7px; font-weight: 700;
}
.a-body h3 {
  font-size: 17.5px; line-height: 1.5; margin-bottom: 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.a-card:hover h3 { color: var(--brand-deep); }
.a-body .sum {
  color: var(--ink-3); font-size: 14.2px; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.a-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.a-foot .read { font-size: 13px; color: var(--ink-3); }
.a-go { font-size: 13.6px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 5px; }
.a-card:hover .a-go { gap: 9px; }
.a-go { transition: gap .18s ease; }
.a-note {
  margin-top: 8px; font-size: 12.3px; color: var(--ink-3); display: flex; align-items: center; gap: 6px;
}

.empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 20px; color: var(--ink-3);
  background: #fff; border: 1px dashed #ffd3da; border-radius: var(--radius);
}
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

.more-row { text-align: center; margin-top: 30px; }
.notice {
  display: flex; gap: 13px; align-items: flex-start; margin-top: 26px; padding: 16px 19px;
  background: #fff; border: 1px solid #ffe0c2; border-left: 4px solid var(--gold);
  border-radius: var(--radius-s); font-size: 14.2px; color: var(--ink-2);
}
.notice b { color: var(--ink); }
.notice-face {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  object-fit: cover; box-shadow: 0 4px 12px rgba(232, 50, 74, .18);
}

/* ---------- 8. 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 24px; box-shadow: var(--shadow-s); }
.step-num {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-weight: 800; margin-bottom: 15px;
  box-shadow: 0 8px 18px rgba(232, 50, 74, .26);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--ink-3); font-size: 14.3px; }
.step::after {
  content: ""; position: absolute; right: -12px; top: 44px; width: 24px; height: 2px;
  background: linear-gradient(90deg, #ffd0d7, transparent);
}
.step:last-child::after { display: none; }

/* ---------- 9. 投稿 / 公众号 CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-l);
  background: var(--grad-brand); color: #fff; padding: 42px 44px;
  box-shadow: var(--shadow-l);
  display: grid; grid-template-columns: auto minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: center;
}
.cta-band::after {
  content: "♥"; position: absolute; right: 26px; bottom: -34px; font-size: 190px; opacity: .12; line-height: 1;
}
.cta-mascot { position: relative; z-index: 2; }
.cta-mascot img {
  width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
  border: 5px solid rgba(255, 255, 255, .85);
  box-shadow: 0 16px 34px rgba(90, 0, 20, .3);
}
.cta-copy { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(22px, 2.8vw, 31px); font-weight: 800; margin-bottom: 13px; }
.cta-band p { opacity: .93; font-size: 15.6px; max-width: 42em; }
.cta-band .btn-light {
  background: #fff; color: var(--brand-deep); box-shadow: 0 12px 26px rgba(90, 0, 20, .24);
}
.cta-band .btn-light:hover { transform: translateY(-2px); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2; }
.cta-small { font-size: 12.8px; opacity: .85; text-align: center; }

/* ---------- 10. 关于 / 数据 ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: start; }
.about-grid p { color: var(--ink-2); margin-bottom: 15px; }
.about-side { display: grid; gap: 16px; }
.about-mascot {
  border-radius: var(--radius-l); overflow: hidden; border: 6px solid #fff;
  box-shadow: var(--shadow-l); line-height: 0;
}
.about-mascot img { width: 100%; height: auto; }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-s); }
.fact strong { display: block; font-size: 24px; font-weight: 800; color: var(--brand-deep); }
.fact span { font-size: 13.6px; color: var(--ink-3); }
.faq { margin-top: 26px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 15px 19px; margin-bottom: 10px; box-shadow: var(--shadow-s);
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.6px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin-top: 11px; color: var(--ink-3); font-size: 14.5px; }

/* ---------- 11. 页脚 ---------- */
.site-footer { background: #241c26; color: #cfc4d2; padding: 50px 0 26px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: #cfc4d2; font-size: 14.2px; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 9px; }
.foot-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.foot-brand strong { color: #fff; font-size: 16.5px; }
.foot-brand span { display: block; font-size: 11.5px; letter-spacing: .14em; color: #9c8fa2; }
.foot-about { font-size: 14.2px; line-height: 1.8; max-width: 30em; color: #a99dae; }
.foot-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-size: 13px; color: #8f8295;
}

/* ---------- 12. 返回顶部 & 提示 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--brand-deep);
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 18px; opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 16px);
  background: rgba(28, 23, 32, .94); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 14.4px; z-index: 90; opacity: 0; pointer-events: none; transition: .24s ease;
  max-width: min(90vw, 460px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 13. 动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1499px) {
  /* 中屏宽度下隐藏悬浮角标，避免与主视觉重叠或被视口裁切（≥1500px 才显示） */
  .float-a, .float-b { display: none; }
}

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { order: -1; padding: 0; }
  .ring { width: 320px; height: 320px; margin: -160px 0 0 -160px; }
  .mascot { max-width: 380px; }
  .float-a, .float-b { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: auto minmax(0, 1fr); padding: 38px 30px; }
  .cta-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .cta-actions .btn { flex: 1 1 200px; }
  .cta-small { width: 100%; }
}

@media (max-width: 760px) {
  .nav { height: 62px; gap: 10px; }
  .nav-links {
    position: absolute; left: 12px; right: 12px; top: 64px; flex-direction: column; align-items: stretch;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px; box-shadow: var(--shadow); display: none; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-toggle { display: block; }
  .nav-cta { padding: 9px 14px; font-size: 14px; }
  .nav-cta .cta-text { display: none; }
  .nav-cta { width: 42px; justify-content: center; padding: 9px 0; }
  .brand-avatar { width: 40px; height: 40px; }
  .hero { padding: 30px 0 40px; }
  .section { padding: 46px 0; }
  .ring { display: none; }
  .mascot { max-width: 300px; border-width: 6px; border-radius: 24px; }
  .mini-card { margin-top: -22px; max-width: 300px; padding: 12px 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .cards, .article-grid, .steps, .foot-grid, .about-facts { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; }
  .cta-band { grid-template-columns: 1fr; padding: 30px 22px; text-align: center; }
  .cta-mascot { justify-self: center; }
  .cta-mascot img { width: 104px; height: 104px; }
  .cta-band p { margin: 0 auto; }
  .cta-actions { flex-direction: column; }
  .notice { text-align: left; }
  .to-top { right: 14px; bottom: 16px; }
}

@media (max-width: 420px) {
  .brand-text strong { font-size: 15.5px; }
  .brand-text span { font-size: 10.5px; }
  .mascot { max-width: 258px; }
  .cta-mascot img { width: 92px; height: 92px; }
}
