:root {
  --navy: #061d3b;
  --navy-2: #0b2d59;
  --blue: #1266d6;
  --blue-dark: #0b55b5;
  --gold: #d99a23;
  --green: #16a34a;
  --green-dark: #12823d;
  --text: #0b1f3a;
  --muted: #526276;
  --line: #d9e3ef;
  --soft: #f3f7fb;
  --white: #fff;
  --shadow: 0 10px 32px rgba(6, 29, 59, .08);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.68;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
button, input { font: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: rgba(6, 29, 59, .97);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: box-shadow .2s, background .2s;
}
.top.scrolled { background: rgba(6,29,59,.995); box-shadow: 0 8px 28px rgba(6,29,59,.18); }
.topin { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}
.brand-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; }
.brand-text { display: grid; line-height: 1.1; }
.brand-title { color: #fff; font-size: 1.05rem; font-weight: 850; }
.brand-subtitle { color: #d7e7fb; font-size: .62rem; text-transform: uppercase; letter-spacing: .09em; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: rgba(255,255,255,.86); text-decoration: none; font-weight: 700; font-size: .86rem; padding: 9px 11px; border-radius: 9px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav .wa, .nav .js-wa-link { background: var(--green); color: #fff !important; padding-inline: 16px; }
.nav .wa:hover, .nav .js-wa-link:hover { background: var(--green-dark); }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle .bar { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: .2s; }
.menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  padding: 68px 0 58px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(217,154,35,.2), transparent 28%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
}
.crumb { font-size: .82rem; color: rgba(255,255,255,.72); }
.crumb a { color: #fff !important; }
.hero h1 { max-width: 920px; margin: 14px 0 16px; font-size: clamp(2.25rem, 4.5vw, 3.65rem); line-height: 1.08; letter-spacing: -.04em; }
.hero p { max-width: 820px; margin: 0; font-size: 1.08rem; color: #e2edf8; }
.meta { margin-top: 16px; font-size: .84rem; color: rgba(255,255,255,.68); }

.main { padding: 58px 0 72px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.article { min-width: 0; }
.article h2 { margin: 40px 0 13px; color: var(--navy); font-size: clamp(1.55rem, 2.6vw, 2rem); line-height: 1.22; letter-spacing: -.025em; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 26px 0 10px; color: var(--navy); font-size: 1.18rem; }
.article p, .article li { font-size: 1rem; color: #334b5f; }
.article p { max-width: 76ch; }
.article ul, .article ol { padding-left: 22px; }
.article a { font-weight: 700; }

.box, .source, .card, .check-app, .guide-item, .related a {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.box { padding: 24px; margin: 28px 0; background: var(--soft); }
.warning { background: #fff9e9; border-color: #ecd796; }
.source { margin: 28px 0; padding: 19px 21px; border-left: 4px solid var(--gold); background: #f8fafc; }
.side { position: sticky; top: 94px; height: max-content; }
.card { padding: 22px; margin-bottom: 16px; box-shadow: 0 5px 18px rgba(6,29,59,.04); }
.card h3 { margin: 0 0 8px; color: var(--navy); }
.card p { color: var(--muted); }
.checklist-preview li { margin: 8px 0; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related a { display: block; padding: 18px; text-decoration: none; font-weight: 800; }
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.guide-item { padding: 20px; }
.guide-item h3 { margin: 0 0 8px; }
.guide-item a { text-decoration: none; }

.btn, .wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}
.btnblue { background: var(--blue); color: #fff; }
.btnblue:hover { background: var(--blue-dark); }
.btnwa, .wa, .btn.js-wa-link { background: var(--green); color: #fff !important; }
.btnwa:hover, .wa:hover, .btn.js-wa-link:hover { background: var(--green-dark); }

.check-app { padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow); }
.service-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.service-tab { border: 1px solid var(--line); background: #fff; padding: 10px 13px; border-radius: 999px; font-weight: 800; cursor: pointer; color: var(--navy); }
.service-tab:hover { border-color: var(--blue); }
.service-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid #edf1f5; cursor: pointer; }
.check-row input { margin-top: 5px; accent-color: var(--green); }
.progress { height: 12px; margin: 18px 0; overflow: hidden; border-radius: 999px; background: #e8eef5; }
.progress b { display: block; width: 0; height: 100%; background: var(--green); transition: width .25s; }
.summary { margin-top: 18px; padding: 18px; border-radius: 14px; background: var(--soft); }
.hidden { display: none; }

.footer { margin-top: 44px; padding: 42px 0; color: #dce7f4; background: var(--navy); }
.footer a { color: #fff; }
.guide-wa-float, .float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--green);
  box-shadow: 0 12px 34px rgba(22,163,74,.32);
  text-decoration: none;
  font-weight: 900;
}

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 820px) {
  body { padding-bottom: 72px; }
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .menu-toggle { display: flex; margin-left: auto; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(6,29,59,.995);
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 14px 34px rgba(6,29,59,.22);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .related, .guide-list { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 42px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.65rem); }
  .main { padding: 42px 0 54px; }
  .guide-wa-float, .float {
    left: 12px;
    right: 12px;
    bottom: 10px;
    border-radius: 14px;
  }
}

@media print {
  .top, .guide-wa-float, .float, .menu-toggle { display: none !important; }
  .grid { display: block; }
  .side { display: none; }
  .hero { padding: 24px 0; color: #000; background: #fff; }
  .hero p, .meta { color: #333; }
}
