/* Template A: Classic Navy */
:root {
  --navy: #0b3a75; --navy-dark: #0a1d36; --navy-ink: #13233a; --orange: #e8762c; --orange-dark: #c95f1a;
  --muted: #5a6a80; --line: #e3e8ef; --soft: #f5f8fc; --tint: #e7effa; --ok: #1d6b3a; --err: #b42318;
  --radius: 12px; --wrap: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--navy-ink); background: #fff; line-height: 1.6; font-size: 16px; }
a { color: var(--navy); }
a:hover { color: #072a55; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
h3 { font-size: 20px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.soft { background: var(--soft); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 5; }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; max-width: var(--wrap); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; color: var(--navy); }
.brand .mark { width: 36px; height: 36px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 15px; }
.nav { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 500; font-size: 15px; }
.nav a { color: var(--navy-ink); text-decoration: none; }
.nav a:hover { color: var(--navy); text-decoration: underline; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

/* buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; min-height: 44px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #072a55; color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-ghost { border-color: #9fc2f0; color: #fff; background: transparent; }
.btn-sm { padding: 8px 12px; font-size: 14px; min-height: 36px; }
.btn-block { display: block; width: 100%; text-align: center; }
.linkbtn { background: none; border: 0; color: var(--navy); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* hero */
.hero { background: var(--navy); color: #fff; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero .copy { flex: 1 1 480px; min-width: 0; }
.hero .eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9fc2f0; }
.hero p.lead { font-size: 18px; color: #d6e4f7; margin: 0 0 28px; }
.hero .card-calc { flex: 1 1 360px; min-width: 0; background: #fff; color: var(--navy-ink); border-radius: 14px; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.page-hero { background: var(--navy); color: #fff; padding: 48px 0; }
.page-hero p { color: #d6e4f7; margin: 0; font-size: 18px; }
.crumbs { font-size: 14px; color: #9fc2f0; margin-bottom: 10px; }
.crumbs a { color: #d6e4f7; }

/* trust strip */
.trust { border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; font-weight: 600; font-size: 15px; color: #34465e; }

/* grids and cards */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-sm { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.featured { border: 2px solid var(--orange); }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--navy); font-weight: 800; display: grid; place-items: center; }
.price { font-size: 44px; font-weight: 800; color: var(--navy); margin: 6px 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: #fdeee3; color: #9a4410; }
.badge.blue { background: var(--tint); color: var(--navy); }
.badge.green { background: #e3f4e9; color: var(--ok); }
.badge.gray { background: #eef1f5; color: #34465e; }
.badge.red { background: #fde8e6; color: var(--err); }

/* forms */
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; padding: 11px 12px; font-size: 15px; border: 1px solid #c9d3e0; border-radius: 8px; font-family: inherit; background: #fff; color: var(--navy-ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #9fc2f0; border-color: var(--navy); }
textarea { min-height: 90px; }
.field { margin-bottom: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.form-grid { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.span-all { grid-column: 1 / -1; }
.field-validation-error, .validation-summary-errors, .text-danger { color: var(--err); font-size: 14px; }
.validation-summary-errors ul { margin: 0 0 12px; padding-left: 18px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 6px; margin: 0 0 22px; }
legend { font-weight: 800; font-size: 18px; padding: 0 6px; }

/* upload */
.dropzone { border: 2px dashed #b8c6d9; border-radius: 12px; padding: 28px; text-align: center; background: #fafcff; cursor: pointer; }
.dropzone.drag { border-color: var(--navy); background: var(--tint); }
.dropzone input[type=file] { position: absolute; left: -9999px; }
.filelist { list-style: none; padding: 0; margin: 12px 0 0; }
.filelist li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; font-size: 14px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.data th { text-align: left; color: var(--muted); background: #f8fafc; font-weight: 600; padding: 12px 14px; }
table.data td { padding: 12px 14px; border-top: 1px solid #eef1f5; vertical-align: top; }

/* alerts */
.alert { padding: 14px 16px; border-radius: 10px; margin: 16px 0; font-size: 15px; }
.alert.ok { background: #e3f4e9; color: #14532d; }
.alert.err { background: #fde8e6; color: #7a1a12; }
.alert.info { background: var(--tint); color: #0b2f5e; }

/* article */
.article { font-size: 17px; }
.article h2 { font-size: 26px; margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 15px; }
.article th, .article td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.article .note { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 15px; }
.toc { background: var(--soft); border-radius: 10px; padding: 16px 20px; font-size: 15px; }
.post-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.post-card:hover h3 { text-decoration: underline; }
details.faq { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 12px; }
details.faq summary { font-weight: 700; cursor: pointer; }

/* admin layout */
.admin { display: flex; flex-wrap: wrap; min-height: 70vh; }
.admin aside { flex: 1 1 220px; max-width: 260px; background: var(--navy-dark); color: #c4d0df; padding: 24px 16px; }
.admin aside a { display: block; color: #c4d0df; text-decoration: none; padding: 9px 12px; border-radius: 8px; }
.admin aside a.on, .admin aside a:hover { background: #183456; color: #fff; }
.admin main { flex: 999 1 600px; min-width: 0; padding: 28px; background: #f3f5f8; }
.stat { font-size: 32px; font-weight: 800; color: var(--navy); }

/* footer */
.site-footer { background: var(--navy-dark); color: #b9c7da; font-size: 14px; }
.site-footer a { color: #d6e4f7; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 44px 24px 24px; max-width: var(--wrap); margin: 0 auto; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.site-footer .legal { border-top: 1px solid #1d3352; padding: 18px 24px 30px; max-width: var(--wrap); margin: 0 auto; }

@media (max-width: 720px) {
  .nav { order: 3; width: 100%; gap: 14px; }
  .section { padding: 44px 0; }
  .admin aside { max-width: none; }
}
