* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Manrope, Helvetica, Arial, sans-serif; color: #16161A; background: #FAFAF8; -webkit-font-smoothing: antialiased; line-height: 1.6; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
a { color: #16161A; }
a:hover { color: #D71921; }
::selection { background: #FFE019; color: #16161A; }

.mono { font-family: 'JetBrains Mono', monospace; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.narrow { max-width: 820px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,250,248,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(22,22,26,0.10); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: baseline; gap: 10px; margin-right: auto; text-decoration: none; }
.logo b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.logo i { width: 22px; height: 6px; background: #FFE019; display: block; border-radius: 1px; }
.logo span { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(22,22,26,0.55); }
.site-nav { display: flex; gap: 26px; align-items: center; font-size: 14px; font-weight: 500; }
.site-nav a { color: rgba(22,22,26,0.7); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { color: #16161A; }
.phone-btn { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 500; padding: 11px 18px; border: 1px solid rgba(22,22,26,0.18); border-radius: 999px; white-space: nowrap; text-decoration: none; }
.phone-btn:hover { background: #FFE019; border-color: #FFE019; color: #16161A; }

.crumbs { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(22,22,26,0.5); padding-top: clamp(28px, 4vw, 48px); }
.crumbs a { color: rgba(22,22,26,0.5); text-decoration: none; }
.crumbs a:hover { color: #16161A; }

.kicker { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase; color: rgba(22,22,26,0.5); margin-bottom: 18px; }
h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin: clamp(36px, 5vw, 56px) 0 16px; text-wrap: balance; }
h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
p, li { font-size: 16px; color: rgba(22,22,26,0.78); }
p { margin-bottom: 14px; }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: rgba(22,22,26,0.66); max-width: 40em; margin-top: 22px; }
ul, ol { padding-left: 1.3em; margin-bottom: 14px; }
li { margin-bottom: 6px; }
code, .code { font-family: 'JetBrains Mono', monospace; font-size: 0.88em; background: #EEEEE9; padding: 2px 6px; border-radius: 4px; word-break: break-word; }

.hero { padding: clamp(20px, 3vw, 32px) 0 clamp(28px, 4vw, 48px); }
.section { padding-bottom: clamp(48px, 7vw, 96px); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 8px; }
.card { background: #fff; border: 1px solid rgba(22,22,26,0.10); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(22,22,26,0.3); color: inherit; }
.card .tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #D71921; }
.card h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; }
.card .tag { opacity: 0.72; transition: opacity 0.3s ease; }
.card:hover .tag { opacity: 1; }
.card .more { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(22,22,26,0.10); font-size: 14px; font-weight: 600; transition: border-color 0.3s ease; }
.card:hover .more { border-top-color: rgba(22,22,26,0.28); }
.card .arr { display: inline-block; transition: transform 0.45s cubic-bezier(0.16,1,0.3,1); }
.card:hover .arr { transform: translateX(6px); }
.card.empty { background: transparent; border-style: dashed; justify-content: center; animation: cardBreathe 3.8s ease-in-out infinite; }
.card.empty:hover { transform: none; }
@keyframes cardBreathe { 0%, 100% { border-color: rgba(22,22,26,0.12); } 50% { border-color: rgba(22,22,26,0.34); } }

html.reveal-on .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1) var(--d, 0s), transform 0.8s cubic-bezier(0.16,1,0.3,1) var(--d, 0s); }
html.reveal-on .reveal.in { opacity: 1; transform: none; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; border: 1px solid rgba(22,22,26,0.10); border-radius: 14px; background: #fff; overflow: hidden; margin: 28px 0; }
.facts div { padding: 16px 20px; border-right: 1px solid rgba(22,22,26,0.08); border-bottom: 1px solid rgba(22,22,26,0.08); margin-right: -1px; margin-bottom: -1px; }
.facts dt { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(22,22,26,0.5); margin-bottom: 4px; }
.facts dd { font-size: 15px; font-weight: 600; color: #16161A; }

.btn { display: inline-flex; align-items: center; gap: 10px; background: #16161A; color: #FAFAF8; font-size: 15px; font-weight: 600; padding: 16px 26px; border-radius: 999px; text-decoration: none; }
.btn:hover { background: #D71921; color: #FAFAF8; }
.btn.ghost { background: transparent; color: #16161A; border: 1px solid rgba(22,22,26,0.18); }
.btn.ghost:hover { border-color: #16161A; background: transparent; color: #16161A; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.note { background: #FFF6B8; border-radius: 14px; padding: 18px 22px; margin: 22px 0; }
.note p { color: #16161A; margin: 0; font-size: 15px; }

.toc { background: #fff; border: 1px solid rgba(22,22,26,0.10); border-radius: 14px; padding: 20px 26px; margin: 28px 0 0; }
.toc ol { margin: 8px 0 0; columns: 2 260px; column-gap: 32px; }
.toc a { text-decoration: none; font-size: 15px; }
.toc .kicker { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 16px 0 22px; border: 1px solid rgba(22,22,26,0.10); border-radius: 12px; background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; font-size: 14.5px; border-bottom: 1px solid rgba(22,22,26,0.08); }
th { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(22,22,26,0.5); background: #F6F6F2; }
tr:last-child td { border-bottom: none; }

.steps { counter-reset: s; list-style: none; padding-left: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 999px; background: #FFE019; color: #16161A; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }

.site-footer { background: #16161A; color: rgba(250,250,248,0.55); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.site-footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; }
.site-footer a { color: rgba(250,250,248,0.55); text-decoration: none; }
.site-footer a:hover { color: #FAFAF8; }

@media (max-width: 720px) {
  .site-header .wrap { gap: 12px 16px; }
  .site-nav { order: 3; width: 100%; gap: 20px; font-size: 14px; overflow-x: auto; padding-bottom: 2px; }
  .phone-btn { padding: 9px 14px; font-size: 13px; }
  .toc ol { columns: 1; }
}

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

@media print {
  .site-header, .site-footer, .actions, .toc { display: none; }
  body { background: #fff; }
  a { color: #16161A; text-decoration: none; }
}
