:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --ink: #17212b;
  --muted: #3d4c5c;
  --line: #d5dee6;
  --brand: #0e3a4d;
  --brand-2: #1b6b86;
  --brand-soft: #e7f2f6;
  --accent: #6a4e16;
  --danger: #8d2b2b;
  --ok: #1d6b45;
  --shadow: 0 10px 30px rgba(16, 36, 48, 0.06);
  --radius: 14px;
  --header: 76px;
  --max: 1120px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 650; letter-spacing: -0.02em; color: var(--brand); }
h1 { font-size: clamp(2rem, 4vw, 3.15rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.45rem; }

p { margin: 0 0 0.9rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 100;
}
.skip:focus { top: 0.5rem; }

.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img {
  width: 168px;
  height: 58px;
  object-fit: contain;
  background: #07141c;
  border-radius: 8px;
  padding: 4px 8px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  color: var(--brand);
}

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 0.2rem; }
.site-nav a, .sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.site-nav a:hover, .sub-toggle:hover, .site-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
}
.has-sub { position: relative; }
.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.4rem;
  z-index: 30;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { display: block; }
.sub a { display: block; width: 100%; }

.header-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn-secondary { background: #fff; color: var(--brand) !important; border: 1px solid var(--brand); }
.btn-wa { background: #1f7a4d; }
.btn:hover, .header-cta:hover { filter: brightness(1.08); }

.hero { padding: 2.5rem 0 1.5rem; }
.hero-grid, .split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.1rem 0; }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.frame {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.frame img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.caption { font-size: 0.82rem; color: var(--muted); padding: 0.55rem 0.8rem 0.7rem; margin: 0; }

.section { padding: 2.4rem 0; }
.section-head { max-width: 46rem; margin-bottom: 1.2rem; }
.section-head p { color: var(--muted); }

.plankote-feature {
  background: linear-gradient(180deg, #fff, #f7fbfc);
  border-block: 1px solid var(--line);
}
.plankote-feature .split { align-items: start; }
.kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.card-grid, .step-grid, .faq-grid { display: grid; gap: 0.9rem; }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.step-grid { grid-template-columns: repeat(4, 1fr); }
.card, .step, .note, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.9rem;
}
.card h3 a { color: var(--brand); text-decoration: none; }
.card p, .step p { color: var(--muted); font-size: 0.96rem; }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; margin-bottom: 0.75rem; }
.step strong { display: block; color: var(--brand-2); font-size: 0.82rem; margin-bottom: 0.25rem; }

.prose { max-width: 48rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0.25rem 0; }
.wide { max-width: none; }

.crumbs { padding: 1rem 0 0; font-size: 0.9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: #8aa0af; }

.page-hero { padding: 1.2rem 0 0.4rem; }
.page-hero p { color: var(--muted); max-width: 46rem; }

table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.95rem; }
th, td { border: 1px solid var(--line); text-align: left; padding: 0.55rem 0.7rem; vertical-align: top; }
th { background: #f7fafb; color: var(--brand); }

details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 0.9rem; }
details + details { margin-top: 0.55rem; }
summary { cursor: pointer; font-weight: 650; color: var(--brand); }
details p:last-child { margin-bottom: 0; }

.region-block { margin: 1.2rem 0 1.6rem; }
.region-block h2 { font-size: 1.25rem; }
.province-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
.province-list a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.province-list a span { display: block; color: var(--muted); font-size: 0.82rem; }

.form {
  display: grid;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
label { display: grid; gap: 0.3rem; font-size: 0.92rem; font-weight: 650; color: var(--brand); }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  border: 1px solid #c5d0d8;
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  background: #fff;
  width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.check { font-weight: 450; color: var(--ink); grid-template-columns: auto 1fr; align-items: start; }
.form-status { min-height: 1.4rem; color: var(--ok); }
.form-status.is-error { color: var(--danger); }
.field-error { color: var(--danger); font-weight: 450; font-size: 0.82rem; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.contact-list a { font-weight: 650; }

.site-footer { background: #10202b; color: #d5e0e7; margin-top: 2rem; padding: 2.2rem 0 1.2rem; }
.site-footer a { color: #e7eef2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1.2rem; }
.site-footer h2 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.28rem 0; }
.legal-note { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 1.2rem; padding-top: 0.8rem; font-size: 0.85rem; color: #b7c6d0; }

.mobile-bar { display: none; }
.notice {
  background: #fff8ec;
  border: 1px solid #ead7b0;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  color: #5c4a28;
}

:focus-visible { outline: 3px solid #1b6b86; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
