:root { color-scheme: light; --ink: #233e52; --muted: #607483; --blue: #0078d4; --line: #d5e0e7; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; color: var(--ink); line-height: 1.65; background: #f0f6f9; }
.background { position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at 6% 15%, #dbeeff 0, transparent 48%), radial-gradient(ellipse at 95% 25%, #ffe6c8 0, transparent 45%), linear-gradient(160deg, #f4f9fc, #f9f6f1); }
.page { max-width: 1120px; margin: auto; padding: 0 38px; }
.home-back-btn, .top-right-btn { position: fixed; top: 24px; z-index: 999; }
.home-back-btn { left: 24px; }
.top-right-btn { right: 24px; }
.home-back-btn a, .top-right-btn a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(255,255,255,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.1); color: var(--blue); text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.home-back-btn svg, .top-right-btn svg { width: 20px; height: 20px; }
.home-back-btn a:hover, .top-right-btn a:hover { transform: translateY(-2px); background: rgba(255,255,255,.95); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
a { color: #365e7b; text-decoration: none; } a:hover { text-decoration: underline; }
header { padding: 96px 0 40px; }
.eyebrow { font-size: 13px; color: #866039; letter-spacing: .13em; margin: 0 0 15px; }
h1 { margin: 0 0 18px; font-size: clamp(30px, 4.5vw, 46px); line-height: 1.3; letter-spacing: -.04em; font-weight: 650; }
.intro { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.95; }
main { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 30px; align-items: start; }
.card { margin-bottom: 18px; padding: 28px 30px; background: #ffffffc9; border: 1px solid #ffffff; border-radius: 19px; box-shadow: 0 8px 32px #526d8410; }
.section-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.step { display: inline-grid; place-items: center; width: 33px; height: 33px; flex: 0 0 auto; border-radius: 50%; background: #e9f2f9; color: #4c7895; font-size: 12px; }
h2 { font-size: 18px; margin: 0; font-weight: 600; }
.section-heading p { color: var(--muted); font-size: 12px; margin: 3px 0 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: 13px; font-weight: 550; margin: 0 0 18px; }
.card > label:last-child, .card .grid:last-child label { margin-bottom: 0; }
.required { color: #aa5934; margin-left: 3px; }
.optional { color: #657580; font-size: 11px; font-weight: 400; margin-left: 6px; }
input:not([type=checkbox]), textarea { display: block; width: 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 12px 13px; color: var(--ink); background: #fff9; font: inherit; font-size: 15px; font-weight: 400; line-height: 1.5; }
textarea { resize: vertical; min-height: 76px; }
input::placeholder, textarea::placeholder { color: #71818c; font-size: 13px; }
:focus-visible { outline: 3px solid #2589d0; outline-offset: 3px; }
input:focus, textarea:focus { border-color: #609bc0; background: white; }
aside { position: sticky; top: 24px; }
.aside-card { padding: 30px 26px; border: 1px solid #fff; border-radius: 19px; background: #ffffff70; }
.aside-label { font-size: 11px; letter-spacing: .12em; color: #896941; }
.aside-card h2 { font-size: 24px; line-height: 1.6; margin: 15px 0 28px; font-weight: 500; }
ol { margin: 0; padding-left: 21px; } li { padding-left: 5px; margin-bottom: 23px; } li::marker { color: #7b99ae; font-size: 12px; } li strong { font-size: 14px; font-weight: 550; } li p { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.aside-note { border-top: 1px solid #d5dedf; padding-top: 20px; font-size: 12px; line-height: 1.9; color: #6c797e; margin-bottom: 0; }
.draft-note { margin: 16px 10px; font-size: 11px; color: #647684; }
.consent { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; font-weight: 400; color: #526878; }
.consent input { margin: 4px 0 0; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--blue); }
.service-state { font-size: 12px; color: var(--muted); margin: 12px 0; }
button { width: 100%; min-height: 50px; border: 0; border-radius: 10px; background: var(--blue); color: white; font: inherit; font-size: 15px; cursor: pointer; display: flex; justify-content: center; gap: 14px; align-items: center; }
button:hover:not(:disabled) { background: #005e9f; } button:disabled { background: #dbe6ed; color: #647886; cursor: not-allowed; }
#result { font-size: 13px; margin: 14px 0 0; overflow-wrap: anywhere; } #result:empty { display: none; } #result[data-kind=success] { color: #246840; } #result[data-kind=error] { color: #a33629; }
footer { padding: 35px 0 28px; color: #6b7d89; font-size: 11px; } footer span { float: right; }
@media (max-width: 850px) { main { grid-template-columns: minmax(0, 1fr); } aside { position: static; } .aside-card { display: none; } .draft-note { margin: -24px 5px 0; } }
@media (max-width: 540px) { .page { padding: 0 18px; } header { padding: 88px 0 28px; } .intro { font-size: 13px; } .card { padding: 23px 19px; border-radius: 15px; } .grid { grid-template-columns: 1fr; gap: 0; } h2 { font-size: 17px; } input:not([type=checkbox]), textarea { font-size: 16px; } footer span { float: none; display: block; margin-top: 3px; } }

@media (max-width: 600px) { .home-back-btn, .top-right-btn { top: 16px; } .home-back-btn { left: 16px; } .top-right-btn { right: 16px; } .home-back-btn a, .top-right-btn a { width: 38px; height: 38px; } .home-back-btn svg, .top-right-btn svg { width: 18px; height: 18px; } }
@media (prefers-reduced-motion: reduce) { .home-back-btn a, .top-right-btn a { transition: none; } }
