/* ==========================================
   StarMenX — 美国华人建材与装修服务平台
   页面由 _build/build.py 生成；本文件为全站样式
   ========================================== */

:root {
    --navy: #14304b;
    --navy-2: #1d4469;
    --navy-soft: #2b5884;
    --ink: #1b2430;
    --ink-soft: #46505d;
    --muted: #707a87;
    --line: #e2e6ec;
    --paper: #faf8f4;
    --white: #ffffff;
    --grey: #f1f3f6;
    --sand: #f4efe6;
    --accent: #e0832a;
    --accent-dark: #bf6a17;
    --accent-light: #fbe3c9;
    --green: #2f7d5b;
    --green-light: #e3f2ea;
    --red: #b8432f;
    --dark-color: #0f2236;
    --accent-color: #f2a65a;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(20, 48, 75, 0.08);
    --shadow-lg: 0 18px 50px rgba(20, 48, 75, 0.16);
    --transition: all 0.25s ease;
    --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; color: var(--ink); font-weight: 700; letter-spacing: 0.01em; }
p + p { margin-top: 0.9em; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 880px; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section-alt { background: var(--white); }
.section-grey { background: var(--grey); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--navy); color: #dfe7f0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.section-dark .section-head p { color: #b9c7d6; }
.eyebrow {
    display: inline-block; font-size: 0.8rem; letter-spacing: 0.12em;
    color: var(--accent-dark); font-weight: 700; margin-bottom: 10px;
}
.section-dark .eyebrow { color: var(--accent-color); }
.lead { font-size: 1.1rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
    border: 2px solid transparent; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Top bar & Header ---------- */
.topbar { background: var(--dark-color); color: #b9c7d6; font-size: 0.84rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; flex-wrap: wrap; }
.topbar a { color: #e6edf5; }
.topbar a:hover { color: var(--accent-color); }
.topbar-links { display: flex; gap: 18px; }
header.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(20,48,75,0.04);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; }
.logo a { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; transition: opacity 0.3s; }
.logo a:hover { opacity: 0.8; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-size: 1.32rem; font-weight: 800; letter-spacing: 0.02em; color: var(--navy); }
.logo-name b { color: var(--accent); font-weight: 800; }
.logo-sub { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.06em; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.main-nav a { display: block; padding: 8px 11px; border-radius: 8px; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.main-nav a:hover, .main-nav a.active { color: var(--navy); background: var(--grey); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
    display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
    width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: var(--transition);
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: var(--navy) center/cover no-repeat;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(12,30,48,0.92) 0%, rgba(12,30,48,0.75) 48%, rgba(12,30,48,0.35) 100%);
}
.hero .container { position: relative; padding-top: 84px; padding-bottom: 84px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.22; max-width: 760px; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--accent-color); }
.hero .lead { color: #d6e0ea; max-width: 640px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; font-size: 0.92rem; color: #c9d6e3; }
.hero-badges span::before { content: "✓"; color: var(--accent-color); font-weight: 700; margin-right: 6px; }

.search-box {
    margin-top: 30px; background: #fff; border-radius: 16px; padding: 10px; max-width: 820px;
    display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 8px; box-shadow: var(--shadow-lg);
}
.search-box input {
    border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; font-size: 1rem; color: var(--ink); width: 100%;
    background: var(--paper);
}
.search-box input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.search-box .btn { border-radius: 10px; }
.search-hot { margin-top: 14px; font-size: 0.88rem; color: #c9d6e3; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-hot a { padding: 3px 12px; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; color: #fff; }
.search-hot a:hover { background: rgba(255,255,255,0.14); }
.search-result { margin-top: 12px; max-width: 820px; background: #fff; color: var(--ink); border-radius: 12px; padding: 14px 18px; display: none; box-shadow: var(--shadow); }
.search-result.show { display: block; }
.search-result ul { list-style: none; }
.search-result li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.search-result li:last-child { border-bottom: 0; }
.search-result a { color: var(--navy); font-weight: 600; }
.search-result a:hover { color: var(--accent-dark); }

/* page hero (inner pages) */
.page-hero { background: var(--navy) center/cover no-repeat; color: #fff; position: relative; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12,30,48,0.94), rgba(12,30,48,0.62)); }
.page-hero .container { position: relative; padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.8vw, 2.5rem); margin-bottom: 12px; max-width: 860px; }
.page-hero p { color: #d3dde8; max-width: 760px; font-size: 1.05rem; }
.page-hero.plain { background: var(--navy); }
.breadcrumb { font-size: 0.86rem; color: #aebdcc; margin-bottom: 14px; }
.breadcrumb a { color: #dfe7f0; }
.breadcrumb a:hover { color: var(--accent-color); }
.breadcrumb span { margin: 0 6px; opacity: 0.6; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: var(--transition); display: flex; flex-direction: column;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--grey); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
a.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.card-body p { color: var(--muted); font-size: 0.94rem; }
.card-tag { display: inline-block; font-size: 0.76rem; font-weight: 700; color: var(--accent-dark); background: var(--accent-light); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; align-self: flex-start; }
.card-more { margin-top: auto; padding-top: 12px; color: var(--navy); font-weight: 600; font-size: 0.92rem; }
a.card:hover .card-more { color: var(--accent-dark); }

.cat-tile {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 8px; transition: var(--transition);
}
.cat-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--grey); display: flex; align-items: center; justify-content: center; }
.cat-icon svg { width: 28px; height: 28px; stroke: var(--navy); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cat-tile:hover .cat-icon { background: var(--accent-light); }
.cat-tile:hover .cat-icon svg { stroke: var(--accent-dark); }
.cat-tile strong { font-size: 1rem; color: var(--ink); }
.cat-tile small { color: var(--muted); font-size: 0.8rem; line-height: 1.4; }

.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.feature .num { font-size: 0.85rem; font-weight: 800; color: var(--accent); letter-spacing: 0.08em; }
.feature h3 { font-size: 1.12rem; margin: 6px 0 8px; }
.feature p { color: var(--muted); font-size: 0.95rem; }
.feature ul { margin-top: 10px; padding-left: 1.1em; color: var(--ink-soft); font-size: 0.94rem; }
.section-dark .feature { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.section-dark .feature p, .section-dark .feature ul { color: #b9c7d6; }
.section-dark .feature h3 { color: #fff; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.check-list { list-style: none; margin-top: 16px; }
.check-list li { padding: 7px 0 7px 30px; position: relative; color: var(--ink-soft); }
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--green-light); color: var(--green); font-size: 0.78rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.section-dark .check-list li { color: #d3dde8; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; border-radius: var(--radius); padding: 24px 20px; border: 1px solid var(--line); position: relative; }
.step::before {
    counter-increment: step; content: counter(step); width: 36px; height: 36px; border-radius: 50%;
    background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h3 { font-size: 1.04rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.93rem; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 22px; }
.stat strong { display: block; font-size: 1.6rem; color: var(--accent-color); }
.stat span { color: #c3d0dd; font-size: 0.92rem; }

.notice {
    border-left: 4px solid var(--accent); background: var(--accent-light); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #6b4113; font-size: 0.94rem; margin: 22px 0;
}
.notice.info { border-color: var(--navy-soft); background: #e6eef7; color: #1d3a57; }
.notice.ok { border-color: var(--green); background: var(--green-light); color: #1d5039; }
.notice strong { display: block; margin-bottom: 2px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 20px 0; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
tbody tr:nth-child(even) { background: #f7f9fb; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured::before { content: "推荐"; position: absolute; top: -12px; left: 18px; background: var(--accent); color: #fff; font-size: 0.76rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.08rem; }
.plan .price { font-size: 1.9rem; font-weight: 800; color: var(--navy); margin: 8px 0 2px; }
.plan .price small { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; margin: 14px 0 18px; font-size: 0.9rem; color: var(--ink-soft); }
.plan li { padding: 5px 0 5px 20px; position: relative; }
.plan li::before { content: "•"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }
.plan .btn { margin-top: auto; }

/* ---------- Article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.prose { font-size: 1.04rem; color: var(--ink-soft); }
.prose h2 { font-size: 1.5rem; margin: 2.1em 0 0.7em; color: var(--ink); padding-top: 4px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.16rem; margin: 1.6em 0 0.5em; color: var(--ink); }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.1em 1.3em; }
.prose li { margin: 0.35em 0; }
.prose a { color: var(--navy-soft); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-dark); }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 4px solid var(--navy-soft); padding: 8px 18px; margin: 1.2em 0; background: #eef3f8; color: #24425f; border-radius: 0 8px 8px 0; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 8px; text-align: center; }
.prose .table-wrap table { font-size: 0.93rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.88rem; color: #b9c7d6; margin-top: 14px; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 28px; }
.toc strong { display: block; margin-bottom: 8px; color: var(--navy); }
.toc ol { margin-left: 1.2em; font-size: 0.95rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent-dark); }
.sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-box h3 { font-size: 1.02rem; margin-bottom: 10px; color: var(--navy); }
.side-box p { font-size: 0.92rem; color: var(--muted); margin-bottom: 12px; }
.side-box ul { list-style: none; font-size: 0.93rem; }
.side-box li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.side-box li:last-child { border-bottom: 0; }
.side-box li a:hover { color: var(--accent-dark); }
.side-box.dark { background: var(--navy); border-color: var(--navy); }
.side-box.dark h3 { color: #fff; }
.side-box.dark p { color: #c3d0dd; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; position: relative; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 18px 16px; color: var(--ink-soft); font-size: 0.97rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-list a, .tag-list span { padding: 5px 13px; border-radius: 999px; background: var(--grey); font-size: 0.88rem; color: var(--ink-soft); }
.tag-list a:hover { background: var(--accent-light); color: var(--accent-dark); }

/* ---------- Empty state / recruit ---------- */
.recruit {
    background: linear-gradient(135deg, #fff 0%, #fdf4ea 100%); border: 2px dashed #efc79b; border-radius: var(--radius);
    padding: 30px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
}
.recruit h3 { font-size: 1.2rem; margin-bottom: 6px; }
.recruit p { color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: 18px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 8px; }
.cta-band p { color: #c9d6e3; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.contact-form label em { color: var(--red); font-style: normal; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #cfd6df; border-radius: 10px; background: #fff; font-size: 1rem;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.contact-form button { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; font-size: 0.84rem; color: var(--muted); }
.captcha-row { grid-column: 1 / -1; }

/* ---------- Tools ---------- */
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tool-grid .full { grid-column: 1 / -1; }
.tool-card label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.tool-card input, .tool-card select { width: 100%; padding: 11px 13px; border: 1px solid #cfd6df; border-radius: 10px; background: #fff; font-size: 1rem; }
.tool-result { margin-top: 22px; background: var(--grey); border-radius: 12px; padding: 22px; display: none; }
.tool-result.show { display: block; }
.tool-result .big { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; color: var(--navy); }
.tool-result table { background: #fff; }
.quiz-q { margin-bottom: 22px; }
.quiz-q > strong { display: block; margin-bottom: 10px; }
.quiz-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quiz-opts label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500; margin: 0; }
.quiz-opts input { width: auto; }
.quiz-opts label:hover { border-color: var(--accent); }

/* ---------- Footer ---------- */
footer { background: var(--dark-color); color: var(--white); padding: 3rem 0 1rem; margin-top: 0; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.1rem; }
.footer-section p, .footer-section a { color: rgba(255, 255, 255, 0.8); line-height: 1.8; }
.footer-section p + p { margin-top: 0.4em; }
.footer-section a:hover { color: var(--accent-color); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); }
.footer-bottom p { margin-bottom: 0.5rem; }
.footer-partner { margin-top: 1rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.footer-partner a { color: var(--accent-color); text-decoration: none; transition: var(--transition); }
.footer-partner a:hover { color: var(--white); }
.lang-en { display: none; }

/* ---------- Mobile call bar ---------- */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .main-nav a { padding: 8px 8px; font-size: 0.92rem; }
    .plans { grid-template-columns: repeat(3, 1fr); }
    .grid-6 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
    .menu-toggle { display: inline-flex; }
    .nav-cta .btn { display: none; }
    .main-nav {
        position: fixed; top: 0; right: 0; width: min(320px, 86vw); height: 100vh; height: 100dvh;
        background: #fff; box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform 0.3s ease;
        padding: 80px 20px 30px; overflow-y: auto; z-index: 150;
    }
    .menu-open .main-nav { transform: translateX(0); }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav a { padding: 12px 14px; font-size: 1.02rem; }
    .menu-toggle { position: relative; z-index: 160; }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(12,30,48,0.45); z-index: 140; display: none; }
    .menu-open .nav-backdrop { display: block; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps, .stat-row { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 28px; }
    .split.reverse > :first-child { order: 0; }
    .article-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .cta-band, .recruit { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    body { font-size: 15.5px; padding-bottom: 60px; }
    .section { padding: 52px 0; }
    .topbar-links { display: none; }
    .search-box { grid-template-columns: 1fr; }
    .grid-2, .grid-3, .tool-grid, .contact-form, .quiz-opts { grid-template-columns: 1fr; }
    .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .plans { grid-template-columns: 1fr; }
    .steps, .stat-row { grid-template-columns: 1fr; }
    .hero .container { padding-top: 56px; padding-bottom: 56px; }
    .cta-band { padding: 30px 22px; }
    .form-card, .tool-card { padding: 20px; }
    .logo-sub { display: none; }
    .mobile-bar {
        display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(20,48,75,0.1);
    }
    .mobile-bar a { padding: 14px 8px; text-align: center; font-weight: 700; font-size: 0.98rem; }
    .mobile-bar a:first-child { color: var(--navy); }
    .mobile-bar a:last-child { background: var(--accent); color: #fff; }
}
