/* PHBusiness — Philippines Business Directory */
:root {
  --brand: #0b3a8c;
  --brand-600: #0a3278;
  --brand-700: #082862;
  --brand-50: #eef3fc;
  --brand-100: #dbe6f9;
  --ink: #0c1730;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-tint: #f6f8fc;
  --accent: #f5b301;
  --accent-600: #dc9f00;
  --red: #c8102e;
  --success: #0f8a5f;
  --danger: #c0262d;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(12, 23, 48, .06), 0 1px 3px rgba(12, 23, 48, .05);
  --shadow: 0 6px 24px -8px rgba(12, 23, 48, .14), 0 2px 6px rgba(12, 23, 48, .05);
  --shadow-lg: 0 24px 60px -20px rgba(8, 40, 98, .35);
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.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; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center-block { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--brand); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 12px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); color: var(--fg); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { --bg: var(--brand); box-shadow: 0 6px 16px -6px rgba(11, 58, 140, .55); }
.btn-primary:hover { --bg: var(--brand-600); }
.btn-accent { --bg: var(--accent); --fg: #1a1300; box-shadow: 0 6px 18px -6px rgba(245, 179, 1, .65); }
.btn-accent:hover { --bg: #ffc21a; }
.btn-ghost { --bg: #fff; --fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-100); --fg: var(--brand); }
.btn-sm { padding: .55rem .95rem; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: .95rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(12, 23, 48, .2); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-text { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--ink); }
.brand-text span { color: var(--brand); }
.brand-light .brand-text { color: #fff; }
.brand-light .brand-text span { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav ul a { display: block; padding: .5rem .8rem; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; }
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 16px 24px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .18s ease;
  }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: .8rem .75rem; font-size: 1.05rem; }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; background: linear-gradient(180deg, #f3f7ff 0%, #fff 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(245, 179, 1, .18), transparent 70%),
    radial-gradient(700px 400px at 10% 0%, rgba(11, 58, 140, .14), transparent 70%),
    radial-gradient(500px 260px at 70% 100%, rgba(200, 16, 46, .07), transparent 70%);
}
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(11, 58, 140, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 58, 140, .05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at center top, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center top, #000 20%, transparent 70%);
}
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 920px; margin-bottom: .4em; }
.hero .lead { max-width: 640px; }
.hl { background: linear-gradient(90deg, var(--brand) 0%, #2563eb 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); line-height: 1.65; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 22px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }

.search-box {
  display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 8px; width: 100%; max-width: 860px;
  margin-top: 18px; padding: 8px; background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.search-field { position: relative; display: flex; align-items: center; }
.search-field .icon { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-field input, .search-field select {
  width: 100%; height: 54px; padding: 0 14px 0 44px; border: 0; border-radius: 12px; background: transparent;
  font: inherit; font-size: 1rem; color: var(--ink); appearance: none; -webkit-appearance: none;
}
.search-field select { cursor: pointer; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.search-field input:focus, .search-field select:focus { outline: none; background-color: var(--bg-tint); }
.search-where { border-left: 1px solid var(--line); }
.search-box .btn { height: 54px; padding: 0 1.75rem; border-radius: 12px; }
.search-box-compact { margin: 24px 0 0; box-shadow: var(--shadow); }
.center-block .search-box-compact { margin: 24px auto; grid-template-columns: 1fr auto; max-width: 560px; }

.hero-popular { margin: 22px 0 0; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; align-items: center; }
.hero-popular a { padding: .3rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .85rem; }
.hero-popular a:hover { border-color: var(--brand); color: var(--brand); }

.hero-stats { display: flex; gap: 48px; margin-top: 48px; justify-content: center; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.hero-stats span { font-size: .9rem; color: var(--muted); }

@media (max-width: 760px) {
  .hero { padding: 48px 0 64px; }
  .search-box { grid-template-columns: 1fr; padding: 10px; }
  .search-where { border-left: 0; border-top: 1px solid var(--line); }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; text-align: center; }
  .hero-stats span { font-size: .8rem; line-height: 1.3; }
  .hero-stats strong { font-size: 1.6rem; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 48px 0 88px; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: radial-gradient(900px 400px at 100% 0%, rgba(245, 179, 1, .14), transparent 60%), linear-gradient(135deg, #071c47 0%, var(--brand-700) 55%, var(--brand) 100%); color: #c9d6f2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: #c9d6f2; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 640px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center h2 { margin: 0 auto; }
.eyebrow { display: inline-block; margin: 0 0 .6rem; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.eyebrow-light { color: var(--accent); }
@media (max-width: 760px) { .section { padding: 64px 0; } }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); color: inherit; }
.cat-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand); transition: background-color .18s ease, color .18s ease; }
.cat-card:hover .cat-icon { background: var(--brand); color: #fff; }
.cat-body { display: flex; flex-direction: column; gap: 2px; }
.cat-name { font-weight: 700; color: var(--ink); line-height: 1.3; }
.cat-desc { font-size: .88rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Cities ---------- */
.city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.city-chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.city-chip:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: inherit; }
.city-chip .icon { color: var(--red); flex: none; }
.city-chip span { display: flex; flex-direction: column; line-height: 1.3; }
.city-chip strong { color: var(--ink); font-weight: 700; }
.city-chip small { color: var(--muted); font-size: .8rem; }
.island-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.island-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 140px; padding: 22px; border-radius: var(--radius); color: #fff; text-decoration: none; isolation: isolate; transition: transform .18s ease; }
.island-card:hover { transform: translateY(-3px); color: #fff; }
.island-card::before { content: ''; position: absolute; inset: 0; z-index: -1; }
.island-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .12); z-index: -1; }
.island-luzon::before { background: linear-gradient(135deg, #0b3a8c, #2563eb); }
.island-visayas::before { background: linear-gradient(135deg, #0e7490, #14b8a6); }
.island-mindanao::before { background: linear-gradient(135deg, #b45309, #f5b301); }
.island-card span { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.island-card small { opacity: .9; font-weight: 600; }
@media (max-width: 1024px) { .city-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .city-grid { grid-template-columns: repeat(2, 1fr); } .island-row { grid-template-columns: 1fr; } .island-card { min-height: 100px; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius-lg); background: var(--bg-tint); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: '0' counter(step); position: absolute; top: 24px; right: 28px; font-size: 2.6rem; font-weight: 800; color: var(--brand-100); letter-spacing: -0.04em; line-height: 1; }
.step-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #fff; margin-bottom: 18px; box-shadow: 0 8px 20px -8px rgba(11, 58, 140, .6); }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split / features ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split-top { align-items: start; }
.check-list { display: grid; gap: 12px; margin: 24px 0 32px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: #e4ebfa; }
.check-list .icon { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--accent); color: #1a1300; stroke-width: 3; }
.check-list-dark li { color: var(--ink-2); }
.check-list-dark { margin: 0; }
.feature-cards, .value-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-card { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.feature-card .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }
.feature-card p { margin: 0; font-size: .92rem; }
.feature-card.light { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.feature-card.light .icon { color: var(--brand); }
.feature-card.light p { color: var(--muted); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .feature-cards, .value-cards { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .15s ease; }
.faq-item[open] { box-shadow: var(--shadow); border-color: var(--brand-100); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--ink); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-body { padding: 0 24px 20px; color: var(--muted); }
.faq-body p { margin: 0; }

/* ---------- Prose ---------- */
.prose { color: var(--ink-2); font-size: 1.02rem; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.seo-copy .prose { text-align: left; }

/* ---------- CTA band ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--brand-700), var(--brand) 60%, #1d4ed8); color: #d7e2f8; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 179, 1, .35), transparent 70%); }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0; max-width: 620px; }
.cta-actions { position: relative; z-index: 1; flex: none; }
@media (max-width: 860px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 32px; } }

/* ---------- Page hero ---------- */
.page-hero { padding: 40px 0 48px; background: linear-gradient(180deg, #f3f7ff 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 900px; }
.page-hero .lead { max-width: 760px; margin: 0; }
.breadcrumbs { margin-bottom: 20px; font-size: .88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: #cbd5e1; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }
.jump-links { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.jump-links a { padding: .45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; text-decoration: none; color: var(--ink); font-size: .9rem; }
.jump-links a:hover { border-color: var(--brand); color: var(--brand); }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li { display: inline-flex; align-items: center; gap: 4px; padding: .25rem .65rem; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.tag-list-hero { margin-top: 20px; }
.tag-list-hero li { background: #fff; }
.tag-list .icon { color: var(--red); }
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: .8rem; font-weight: 700; }

/* ---------- Category panels ---------- */
.cat-panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-panel { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: box-shadow .18s ease, border-color .18s ease; }
.cat-panel:hover { box-shadow: var(--shadow); border-color: var(--brand-100); }
.cat-panel-head { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.cat-panel-head h2 { font-size: 1.15rem; margin: 0; }
.cat-panel-head:hover h2 { color: var(--brand); }
.cat-panel p { margin: 0; color: var(--muted); font-size: .93rem; }
.cat-panel .link-arrow { margin-top: auto; font-size: .92rem; }
@media (max-width: 1024px) { .cat-panel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cat-panel-grid { grid-template-columns: 1fr; } }

/* ---------- Regions ---------- */
.region-group + .region-group { margin-top: 56px; }
.region-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.region-group-head h2 { margin: 0; }
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.region-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .18s ease, border-color .18s ease; }
.region-card:hover { box-shadow: var(--shadow); border-color: var(--brand-100); }
.region-card-head { text-decoration: none; }
.region-card-head h3 { margin: 4px 0 0; }
.region-card-head:hover h3 { color: var(--brand); }
.region-code { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.region-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.region-card .link-arrow { margin-top: auto; font-size: .9rem; }
@media (max-width: 1024px) { .region-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .region-grid { grid-template-columns: 1fr; } }

/* ---------- Detail pages ---------- */
.with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.sidebar, .form-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.side-card { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.side-card h2 { font-size: 1.05rem; margin-bottom: 14px; }
.side-card p { font-size: .93rem; color: var(--muted); }
.side-card-muted { background: var(--bg-tint); }
.side-card-muted p { margin: 0; }
.side-links { display: grid; gap: 2px; }
.side-links a { display: block; padding: .4rem .6rem; margin: 0 -.6rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.side-links a:hover { background: var(--brand-50); color: var(--brand); }
.empty-state { text-align: center; padding: 56px 32px; border-radius: var(--radius-lg); border: 2px dashed var(--line); background: var(--bg-tint); }
.empty-state h2 { font-size: 1.4rem; }
.empty-state p { max-width: 480px; margin: 0 auto 24px; color: var(--muted); }
.empty-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.h-sub { font-size: 1.25rem; margin: 48px 0 16px; }
.cat-link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cat-link-grid a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; }
.cat-link-grid a:hover { border-color: var(--brand); color: var(--brand); }
.cat-link-grid .icon { color: var(--brand); }
@media (max-width: 960px) { .with-sidebar { grid-template-columns: 1fr; } .sidebar, .form-aside { position: static; } }
@media (max-width: 520px) { .cat-link-grid { grid-template-columns: 1fr; } }

/* ---------- Search results ---------- */
.search-summary { font-weight: 600; color: var(--ink); }
.search-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; }
.search-results:empty { display: none; }
.result { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 700; background: #fff; }
.result:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--brand); }
.result small { font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--brand-50); color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.notice { display: flex; gap: 16px; padding: 20px 24px; border-radius: var(--radius); background: #fffaeb; border: 1px solid #fde7a6; color: #5c4400; }
.notice .icon { flex: none; color: var(--accent-600); margin-top: 2px; }
.notice strong { color: #3d2d00; }
.notice p { margin: 4px 0 0; }
@media (max-width: 640px) { .search-results { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form { padding: 36px; }
@media (max-width: 640px) { .form { padding: 22px; } }
.form fieldset { border: 0; padding: 0; margin: 0 0 32px; }
.form legend { padding: 0; margin-bottom: 18px; font-size: 1.1rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; font-size: .82rem; }
.hint { color: var(--muted); font-size: .8rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid #cfd8e6; border-radius: 10px; background: #fff;
  font: inherit; font-size: .98rem; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 58, 140, .12); }
.field input::placeholder, .field textarea::placeholder { color: #9aa6b8; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(192, 38, 45, .1); }
.field-error { color: var(--danger); font-size: .8rem; font-weight: 600; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: .93rem; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.checkbox.has-error span { color: var(--danger); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: 16px; }
.form-status { margin-bottom: 16px; }
.form-status:empty { display: none; }
.form-status.is-success, .form-status.is-error { padding: 14px 16px; border-radius: 10px; font-weight: 600; font-size: .93rem; }
.form-status.is-success { background: #e8f7f0; color: var(--success); border: 1px solid #b6e6d1; }
.form-status.is-error { background: #fdecec; color: var(--danger); border: 1px solid #f6c3c5; }
.form-note { margin: 14px 0 0; text-align: center; font-size: .82rem; color: var(--muted); }
.mini-steps { counter-reset: ms; display: grid; gap: 14px; }
.mini-steps li { position: relative; padding-left: 40px; font-size: .93rem; color: var(--muted); }
.mini-steps li::before { counter-increment: ms; content: counter(ms); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-weight: 800; font-size: .8rem; }
.mini-steps strong { color: var(--ink); }
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 12px; }
.contact-list .icon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--brand-50); color: var(--brand); }
.contact-list div { display: flex; flex-direction: column; font-size: .93rem; }
.contact-list strong { color: var(--ink); }
.contact-list a { word-break: break-all; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.success-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #e8f7f0; color: var(--success); margin-bottom: 24px; }
.big-404 { font-size: clamp(5rem, 14vw, 8rem); font-weight: 800; line-height: 1; margin: 0 0 12px; letter-spacing: -0.05em; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: #06142f; color: #9fb0cf; padding: 72px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin: 18px 0; max-width: 340px; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; }
.footer-mail:hover { color: var(--accent); }
.footer-title { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer ul a { color: #9fb0cf; text-decoration: none; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-flag { display: inline-flex; align-items: center; gap: 4px; }
.footer-flag span { width: 10px; height: 10px; border-radius: 2px; }
.footer-flag span:nth-child(1) { background: #0038a8; }
.footer-flag span:nth-child(2) { background: #ce1126; }
.footer-flag span:nth-child(3) { background: #fcd116; margin-right: 6px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

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