:root {
  --maroon: #4a0d16;
  --maroon-2: #6b1724;
  --gold: #b5730f;
  --gold-soft: #f6e7c8;
  --ink: #1f1a17;
  --muted: #6b625b;
  --line: #e7e0d6;
  --bg: #fbf8f3;
  --card: #ffffff;
  --ok: #1d7a4f;
  --warn: #b4261c;
  --radius: 14px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--maroon-2); }

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 243, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.topbar nav { margin-left: auto; display: flex; gap: 6px; }
.topbar nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 7px 12px; border-radius: 999px; }
.topbar nav a.on, .topbar nav a:hover { background: var(--maroon); color: #fff; }

.hero { background: radial-gradient(1200px 420px at 85% -10%, #f3d9a6 0, transparent 60%), var(--maroon); color: #fff; }
.hero .in { max-width: 1180px; margin: 0 auto; padding: 56px 20px 60px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: #f3c977; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 10px 0 14px; letter-spacing: -.02em; }
.hero p { max-width: 640px; color: #f1e6e1; margin: 0; font-size: 17px; }

.layout { max-width: 1180px; margin: 0 auto; padding: 36px 20px 80px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 44px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 14px; }
.toc b { display: block; text-transform: uppercase; font-size: 11px; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.toc a::before { content: counter(t, decimal-leading-zero); color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--gold-soft); }

main section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
main section:last-child { border-bottom: 0; }
main h2 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.2; }
main h2 .n { color: var(--gold); margin-right: 10px; font-variant-numeric: tabular-nums; }
main h3 { font-size: 18px; margin: 26px 0 6px; }
.lead { color: var(--muted); margin: 0 0 18px; font-size: 17px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 14px 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 10px 42px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--maroon); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }

.shot { margin: 18px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: 0 10px 30px -18px rgba(74, 13, 22, .35); }
.shot img { width: 100%; height: auto; }
figcaption { font-size: 13px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.phone { border-radius: 28px; border: 8px solid #1b1414; overflow: hidden; background: #000; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .45); }
.phone + figcaption, .phonefig figcaption { border: 0; text-align: center; padding: 8px 0 0; }
.phones { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; margin: 18px 0; }

.note, .warn, .tip { border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-size: 15px; }
.note { background: #eef3fb; border: 1px solid #d3e0f3; }
.tip { background: var(--gold-soft); border: 1px solid #ecd39f; }
.warn { background: #fdecea; border: 1px solid #f5c7c2; }
.note > b:first-child, .tip > b:first-child, .warn > b:first-child { display: block; margin-bottom: 2px; }

table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f5efe6; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.tbl { overflow-x: auto; }

.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.c-new { color: #2f5fb3; border-color: #b9cbec; background: #eef3fb; }
.c-prog { color: #9a6408; border-color: #ecd39f; background: #fdf5e3; }
.c-late { color: var(--warn); border-color: #f5c7c2; background: #fdecea; }
.c-done { color: var(--ok); border-color: #b9e0cb; background: #eaf6ef; }
.c-cancel { color: #555; border-color: #ddd; background: #f3f3f3; }

kbd, .ui { font-family: inherit; font-weight: 700; background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; font-size: .92em; white-space: nowrap; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 1180px; margin: -36px auto 0; padding: 0 20px 70px; position: relative; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; text-decoration: none; color: var(--ink); box-shadow: 0 16px 40px -24px rgba(74, 13, 22, .4); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -22px rgba(74, 13, 22, .5); }
.card .tag { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; }
.card h2 { margin: 6px 0 8px; font-size: 24px; letter-spacing: -.01em; }
.card p { color: var(--muted); margin: 0 0 16px; }
.card ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink); font-size: 15px; }
.card .go { margin-top: auto; font-weight: 700; color: var(--maroon-2); }
.card .thumb { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; aspect-ratio: 16 / 9; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 2px; color: var(--muted); }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer .in { max-width: 1180px; margin: 0 auto; padding: 22px 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 10px; }
  .toc { position: static; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
  .split { grid-template-columns: 1fr; }
  .split .phonefig { max-width: 280px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .topbar nav a { padding: 6px 9px; font-size: 13px; }
  .brand small { display: none; }
  .hero .in { padding: 40px 16px 56px; }
  .layout, .cards { padding-left: 16px; padding-right: 16px; }
}
@media print {
  .topbar, .toc { display: none; }
  .layout { display: block; }
  .hero { background: none; color: var(--ink); }
  .hero p { color: var(--ink); }
  section { break-inside: avoid-page; }
}
