/* Viewhopes Network Technology - B2B trade services site
   Palette derived from the unchanged brand logo: #C30D23 / #000000 / #FFFFFF
   Supporting: #F5F7F7 (soft grey) + #1E2B3C (deep navy for closing sections)
   No framework, no external fonts, no external icon library. */

:root {
  --red: #C30D23;
  --red-dark: #A00A1C;
  --red-soft: #FFF0F2;
  --ink: #000000;
  --text: #1A1A1A;
  --muted: #5F6B7A;
  --faint: #8B96A5;
  --surface: #FFFFFF;
  --soft: #F5F7F7;
  --navy: #1E2B3C;
  --navy-deep: #151F2C;
  --line: #E6E8EC;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, .06);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, .10);
  --maxw: 1200px;
  --header-h: 78px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
/* Prevent the default-language flash before app.js applies the dictionary. */
html[data-i18n-pending] body { visibility: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section--soft { background: var(--soft); }
.section--tight { padding: 60px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.section-title { font-size: clamp(26px, 3vw, 36px); text-wrap: balance; }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 22px; border-radius: 4px; border: 1px solid transparent;
  font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--outline { background: transparent; color: var(--text); border-color: #CBD1DA; }
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--white:hover { background: #fff; color: var(--navy); }
.btn svg { width: 16px; height: 16px; flex: none; }
.text-link { color: var(--red); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.text-link:hover { gap: 12px; }
.text-link svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.03);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 148px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px;
  font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--text);
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav-link:hover, .nav-item.is-current > .nav-link { color: var(--red); border-bottom-color: var(--red); }
.nav-link svg { width: 11px; height: 11px; opacity: .6; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 232px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-hover);
  padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .nav-item.open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { display: block; padding: 9px 18px; font-size: 13.5px; color: var(--text); }
.dropdown a:hover { background: var(--red-soft); color: var(--red); }
.dropdown a small { display: block; font-size: 11px; color: var(--faint); font-weight: 400; }
.header-tools { display: flex; align-items: center; gap: 14px; flex: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lang-switch button {
  border: 0; background: #fff; padding: 7px 12px; font-size: 12px; font-weight: 700;
  color: var(--muted); line-height: 1.2; transition: background .2s, color .2s;
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button.is-active { background: var(--red); color: #fff; }
.nav-cta { min-height: 40px; padding: 8px 16px; font-size: 13px; }
.hamburger { display: none; width: 42px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 10px; }
.hamburger span { display: block; height: 2px; background: var(--ink); margin: 4px 0; transition: transform .2s, opacity .2s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center right; background-image: url("../assets/images/hero-legal.webp"); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(21,31,44,.96) 0%, rgba(30,43,60,.90) 38%, rgba(30,43,60,.55) 72%, rgba(30,43,60,.35) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 108px 0 96px; max-width: 790px; }
.hero .eyebrow { color: #FF8B98; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.16; margin-bottom: 22px; text-wrap: balance; }
html[data-lang="zh"] .hero h1 { font-size: clamp(30px, 3.9vw, 48px); line-height: 1.28; }
.hero-sub { font-size: 17px; color: #DCE4ED; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.22); }
.hero-points li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #E6EDF4; }
.hero-points svg { width: 16px; height: 16px; color: #FF8B98; flex: none; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--soft); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 26px 18px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 26px; height: 26px; color: var(--red); flex: none; }
.trust-item b { display: block; font-size: 14px; }
.trust-item small { display: block; font-size: 11.5px; color: var(--muted); }

/* ---------- Value / split ---------- */
.value-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.value-lines { display: grid; gap: 16px; margin-top: 28px; }
.value-lines li { display: flex; gap: 14px; padding: 16px 18px; background: var(--soft); border-left: 3px solid var(--red); font-weight: 700; font-size: 15px; }
.value-lines span { color: var(--red); font-size: 13px; font-weight: 800; }
.prose p { color: #414B58; margin-bottom: 18px; }
.prose h2 { font-size: 24px; margin: 38px 0 14px; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose ul { margin: 0 0 20px; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 10px; color: #414B58; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; background: var(--red); border-radius: 50%; }
.prose blockquote { margin: 26px 0; padding: 16px 22px; border-left: 3px solid var(--red); background: var(--soft); color: #414B58; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #F0C9CE; }
.stat-num { display: block; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; color: var(--red); line-height: 1.1; letter-spacing: -.03em; }
.stat-label { display: block; margin-top: 10px; font-size: 14px; font-weight: 700; }
.stat-note { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.stat-card.is-placeholder .stat-num { color: var(--faint); }

/* ---------- Cards / grids ---------- */
.route-grid, .service-grid, .legal-grid, .why-grid, .feature-grid, .post-grid { display: grid; gap: 18px; }
.route-grid, .service-grid, .legal-grid, .post-grid { grid-template-columns: repeat(3, 1fr); }
.why-grid, .feature-grid { grid-template-columns: repeat(4, 1fr); }
/* About page "How we work" has 3 cards only: the shared 4-column grid leaves an
   empty 4th column, so the card group sits left of the centered heading. Pin 3
   tracks at the original card width and center them. Only desktop is affected;
   <=1100px keeps the shared responsive rules (2 columns / 1 column) unchanged. */
@media (min-width: 1101px) {
  .feature-grid.feature-grid--center {
    grid-template-columns: repeat(3, 273px);
    justify-content: center;
  }
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #F0C9CE; }
.card-icon { width: 46px; height: 46px; border-radius: 6px; background: var(--red-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card-icon svg { width: 24px; height: 24px; color: var(--red); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14px; }
.card ul { margin-top: 18px; }
.card ul li { position: relative; padding-left: 18px; font-size: 13.5px; color: #414B58; margin-bottom: 8px; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.card .text-link { margin-top: 20px; }
.route-card { position: relative; padding-top: 34px; }
.route-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); border-radius: var(--radius) var(--radius) 0 0; }
.route-card .route-no { font-size: 12px; font-weight: 800; color: var(--red); letter-spacing: .12em; }

/* ---------- Risk ---------- */
.risk-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.risk-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.risk-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: #414B58; }
.risk-list b { color: var(--red); font-size: 12px; font-weight: 800; flex: none; }

/* ---------- Legal focus ---------- */
.legal-grid .card { border-top: 3px solid var(--red); }
.legal-card .legal-no { font-size: 12px; font-weight: 800; color: var(--red); letter-spacing: .12em; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.process-step { position: relative; padding: 26px 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.process-step:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 14px; height: 2px; background: var(--red); z-index: 2; }
.process-num { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; margin-bottom: 16px; }
.process-step h3 { font-size: 15px; margin-bottom: 8px; }
.process-step p { font-size: 12.5px; color: var(--muted); }

/* ---------- Operating area ---------- */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.area-visual { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.area-visual img { width: 100%; }
.area-card { background: #fff; border-left: 3px solid var(--red); padding: 24px 26px; box-shadow: var(--shadow); }
.area-card h3 { font-size: 18px; margin-bottom: 10px; }
.area-card p { font-size: 14px; color: #414B58; }
.area-note { margin-top: 18px; font-size: 12.5px; color: var(--muted); }

/* ---------- Operating base map (Tencent Maps, China-compliant provider) ---------- */
.vh-map-wrap { position: relative; height: 380px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.vh-map { position: absolute; inset: 0; z-index: 1; }
.vh-map img, .vh-map canvas { max-width: none; }
.vh-map-fallback { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 30px; text-align: center; background: linear-gradient(158deg, #F5F7F7 0%, #E9EEF3 100%); }
.is-map-ready .vh-map-fallback { display: none; }
.vh-map-fallback-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.vh-map-fallback-icon svg { width: 26px; height: 26px; }
.vh-map-kicker { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.vh-map-addr { font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--navy); }
.vh-map-hours { font-size: 13px; color: var(--muted); }
.vh-map-fallback .btn { margin-top: 8px; }
.vh-map-fallback-hint { display: none; font-size: 11.5px; color: var(--faint); }
.is-fallback .vh-map-fallback-hint { display: block; }
.vh-map-credit { position: absolute; right: 8px; bottom: 7px; z-index: 3; font-size: 10px; color: #6B7888; background: rgba(255, 255, 255, .86); padding: 2px 6px; border-radius: 3px; pointer-events: none; }
.vh-map-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) {
  .vh-map-wrap { height: 300px; }
  .vh-map-addr { font-size: 15px; }
}

/* ---------- Certificate carousel ---------- */
.cert-carousel { position: relative; margin-top: 8px; }
.cert-viewport { overflow: hidden; border-radius: var(--radius); }
.cert-track { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.cert-slide { flex: 0 0 33.3333%; padding: 0 9px; }
.cert-slide img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.cert-btn {
  position: absolute; top: 42%; transform: translateY(-50%); width: 42px; height: 42px;
  border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  font-size: 22px; line-height: 1; z-index: 3; transition: background .2s, color .2s;
}
.cert-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.cert-prev { left: -18px; }
.cert-next { right: -18px; }
.cert-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.cert-dot { width: 9px; height: 9px; border: 0; border-radius: 50%; background: #CDD4DD; padding: 0; transition: background .2s, width .2s; }
.cert-dot.is-active { background: var(--red); width: 24px; border-radius: 5px; }
.cert-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ---------- Blog cards ---------- */
.post-card { padding: 0; overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card .post-body { padding: 22px 24px 26px; }
.post-meta { font-size: 12px; color: var(--faint); margin-bottom: 10px; }
.post-card h3 { font-size: 17px; margin-bottom: 10px; }
.post-card p { font-size: 13.5px; color: var(--muted); }
.badge--sample { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--red); background: var(--red-soft); padding: 3px 8px; border-radius: 3px; margin-left: 8px; vertical-align: 2px; }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 62px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 10px; }
.cta-band p { color: #C8D3DF; font-size: 14.5px; }
.site-footer { background: var(--navy-deep); color: #C6D0DC; padding: 64px 0 0; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 46px; }
/* Footer logo: transparent artwork directly on navy, no white chip (per client) */
.footer-logo { display: block; margin-bottom: 22px; }
.footer-logo img { width: 168px; height: auto; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 18px; }
.footer-col a { display: block; padding: 5px 0; color: #C6D0DC; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-col p { margin-bottom: 10px; }
.footer-col .k { color: #8FA0B3; font-size: 12px; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: #90A0B2; }
.footer-bottom a { margin-left: 18px; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .lang-switch button { background: transparent; color: #C6D0DC; border-color: rgba(255,255,255,.28); }
.footer-bottom .lang-switch button.is-active { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------- Inner pages ---------- */
.breadcrumb { background: var(--soft); border-bottom: 1px solid var(--line); }
.breadcrumb .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 14px; padding-bottom: 14px; font-size: 12.5px; color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: #B7C0CB; }
.page-hero { background: var(--navy); color: #fff; padding: 64px 0; }
.page-hero .eyebrow { color: #FF8B98; }
.page-hero h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.page-hero p { color: #CFDAE6; max-width: 760px; font-size: 16px; }
.page-hero .hero-actions { margin-top: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split-media > img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.split-text h2 { font-size: 28px; margin-bottom: 16px; }
.split-text p { color: #414B58; margin-bottom: 14px; }
@media (min-width: 768px) { .split--reverse .split-media { order: 2; } }
.faq { max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 12px; background: #fff; }
.faq summary { padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 20px; color: var(--red); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; }
table.simple { width: 100%; border-collapse: collapse; font-size: 14px; }
table.simple th, table.simple td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
table.simple th { background: var(--soft); font-weight: 700; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 3px; }
.contact-item .k { display: block; font-size: 12px; color: var(--faint); margin-bottom: 3px; }
.contact-item a:hover { color: var(--red); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 22px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.form-field .req { color: var(--red); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid #D5DAE1; border-radius: 4px; padding: 11px 13px;
  background: #fff; font-size: 14px; transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { min-height: 128px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(195,13,35,.10);
}
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--red); }
.field-error { display: none; color: var(--red); font-size: 12px; margin-top: 5px; }
.form-field.has-error .field-error { display: block; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 18px; font-size: 12.5px; color: #414B58; }
.consent-row input { margin-top: 4px; accent-color: var(--red); }
.consent-row a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.form-status { display: none; padding: 13px 16px; border-radius: 4px; font-size: 13.5px; margin-bottom: 18px; }
.form-status.is-visible { display: block; }
.form-status.is-ok { background: #ECF7F0; color: #1E6B3A; border: 1px solid #CDE9D8; }
.form-status.is-warn { background: #FFF4E5; color: #8A5A00; border: 1px solid #F5DFB8; }
.form-status.is-err { background: var(--red-soft); color: var(--red-dark); border: 1px solid #F3C9CF; }
/* Country / Region combobox: type freely, or pick from a searchable list */
.combo { position: relative; }
.combo > input { padding-right: 42px; }
.combo-toggle { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 38px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: transparent; border: 0; border-left: 1px solid #E7EAEF; color: var(--muted); }
.combo-toggle:hover { color: var(--red); }
.combo-toggle svg { width: 17px; height: 17px; transition: transform .2s; }
.combo.is-open .combo-toggle svg { transform: rotate(180deg); }
.combo-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 5px);
  min-width: 250px; max-width: calc(100vw - 32px);
  max-height: 258px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px 0;
  list-style: none; background: #fff; border: 1px solid #D5DAE1; border-radius: 4px;
  box-shadow: 0 14px 34px rgba(30,43,60,.17); }
.combo-list[hidden] { display: none; }
.combo-group { padding: 9px 13px 5px; background: #F7F8FA; color: var(--faint);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.combo-option { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 13px; font-size: 14px; cursor: pointer; }
.combo-option.is-best { background: #FFF6F7; }
.combo-option:hover, .combo-option.is-active { background: var(--red-soft); color: var(--red-dark); }
.combo-option.is-active .combo-option-code { color: var(--red-dark); }
.combo-option-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-option-code { flex: none; color: var(--faint); font-size: 11px; letter-spacing: .06em; }
.combo-empty { padding: 13px; font-size: 13px; color: var(--muted); }
.combo-foot { position: sticky; bottom: 0; padding: 8px 12px; background: #F7F8FA;
  border-top: 1px solid #E7EAEF; color: var(--faint); font-size: 11px; line-height: 1.45; }
.combo-hint { margin-top: 6px; color: var(--faint); font-size: 11.5px; line-height: 1.5; }
@media (max-width: 600px) { .combo-list { max-height: 220px; } }
.form-note { font-size: 12px; color: var(--faint); margin-top: 16px; }

/* ---------- Blog list / article ---------- */
.post-list { display: grid; gap: 20px; }
.post-list-item { display: grid; grid-template-columns: 260px 1fr; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; }
.post-list-item img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.post-list-item .post-body { padding: 24px 26px 24px 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag { font-size: 12px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); }
.tag.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.article { max-width: 820px; margin: 0 auto; }
.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 32px; border: 1px solid var(--line); }
.article-body p { color: #414B58; margin-bottom: 20px; }
.article-body h2 { font-size: 23px; margin: 36px 0 14px; }
.article-body ul { margin-bottom: 22px; }
.article-body ul li { position: relative; padding-left: 22px; margin-bottom: 9px; color: #414B58; }
.article-body ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* ---------- Misc ---------- */
.not-found { text-align: center; padding: 110px 0; }
.not-found .code { font-size: clamp(72px, 12vw, 130px); font-weight: 800; color: var(--red); line-height: 1; }
.back-to-top {
  position: fixed; right: 22px; bottom: clamp(92px, 12vw, 108px); z-index: 55;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red); }
.back-to-top svg { width: 18px; height: 18px; }
.sample-note { background: var(--red-soft); border: 1px solid #F3C9CF; color: var(--red-dark); padding: 12px 16px; border-radius: 6px; font-size: 13px; margin-bottom: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-link { padding: 10px 9px; font-size: 13px; }
  .brand img { width: 128px; }
  .nav-cta { display: none; }
  .why-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hamburger { display: block; margin-left: auto; order: 3; }
  .header-tools { order: 2; margin-left: auto; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-hover);
    padding: 10px 20px 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav-link { width: 100%; justify-content: space-between; padding: 13px 6px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--red); border-radius: 0; padding: 4px 0 10px; display: none; }
  .nav-item.open .dropdown { display: block; }
  .value-grid, .risk-grid, .area-grid, .contact-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .stat-grid, .route-grid, .service-grid, .legal-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process-step:not(:last-child)::after { display: none; }
  .cert-slide { flex-basis: 50%; }
  .cert-prev { left: -6px; } .cert-next { right: -6px; }
  .risk-list { grid-template-columns: 1fr 1fr; }
  .post-list-item { grid-template-columns: 220px 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .hero-bg { background-image: url("../assets/images/hero-legal-mobile.webp"); }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 30px; }
  .hero-inner { padding: 76px 0 68px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .hero-points { gap: 10px 18px; }
  .stat-grid, .route-grid, .service-grid, .legal-grid, .why-grid, .feature-grid, .post-grid, .process { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 10px; }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .trust-item svg { width: 20px; height: 20px; }
  .trust-item b { font-size: 12.5px; }
  .risk-list { grid-template-columns: 1fr; }
  .cert-slide { flex-basis: 100%; }
  .cert-btn { width: 36px; height: 36px; font-size: 18px; }
  .cert-prev { left: -4px; }
  .cert-next { right: -4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 22px; }
  .post-list-item { grid-template-columns: 1fr; }
  .post-list-item img { min-height: 0; aspect-ratio: 16 / 9; }
  .post-list-item .post-body { padding: 20px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .back-to-top { right: 14px; }
  .breadcrumb .container { font-size: 11.5px; }
  .article-header h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
