:root {
  --ink: #1f1e1c;
  --muted: #716e67;
  --paper: #f6f5f2;
  --gold: #d7b27b;
  --gold-dark: #86632f;
  --line: #e6e2d9;
  --green: #42734d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'TT Firs Neue', Arial, sans-serif; line-height: 1.5; }
a { color: inherit; text-underline-offset: 3px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 3px solid #86632f; outline-offset: 4px; }
input:focus-visible { outline-offset: 1px; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { width: 182px; height: auto; display: block; }
.header-link { font-size: 14px; color: var(--muted); text-decoration: none; }
.header-link:hover, .text-link:hover { color: var(--gold-dark); }
.header-user { display: flex; align-items: center; gap: 20px; min-width: 0; }
.user-name { font-size: 14px; max-width: 250px; overflow-wrap: anywhere; }
.text-button { min-height: 44px; padding: 0 6px; background: none; border: 0; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.auth-main { min-height: calc(100vh - 168px); padding-block: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.auth-intro { padding-top: 40px; max-width: 440px; }
.auth-intro h1 { margin: 0 0 24px; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.13; letter-spacing: -.04em; font-weight: 700; }
.auth-intro p { color: var(--muted); font-size: 17px; max-width: 390px; }
.intro-steps { padding: 0; list-style: none; margin-top: 36px; }
.intro-steps li { display: flex; align-items: center; gap: 14px; margin-block: 16px; font-size: 15px; }
.intro-steps span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-dark); background: #ede4d4; flex: 0 0 auto; font-size: 13px; }
.auth-card { padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
h2 { font-size: 27px; letter-spacing: -.035em; line-height: 1.2; margin: 0 0 12px; }
.card-description { color: var(--muted); margin: 0 0 26px; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #d6d2c9; border-radius: 10px; background: #fff; color: var(--ink); min-width: 0; }
.field input:focus { border-color: var(--gold-dark); }
.field input[aria-invalid="true"] { border-color: #ad4135; }
.field small { color: var(--muted); font-size: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.password-input { position: relative; }
.password-input input { padding-right: 82px; }
.password-toggle { position: absolute; top: 3px; right: 5px; bottom: 3px; padding: 0 8px; color: var(--muted); font-size: 12px; background: none; border: 0; border-radius: 6px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; gap: 10px; padding: 12px 22px; border: 1px solid transparent; border-radius: 10px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.button:hover:not(:disabled) { background: #393731; }
.button-gold { background: var(--gold); color: var(--ink); }
.button-gold:hover:not(:disabled) { background: #cda56d; }
.button-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.button-secondary:hover:not(:disabled) { background: var(--paper); }
.full-width { width: 100%; }
.form-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 20px; font-size: 13px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.consent input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--gold-dark); }
.notice { padding: 14px 16px; border-radius: 10px; background: #f7ebe8; color: #873a2d; font-size: 14px; margin: 0 0 20px; overflow-wrap: anywhere; }
.notice-success { background: #edf4ed; color: #335c3c; }
.notice-neutral { background: var(--paper); color: var(--muted); }
.site-footer { padding: 20px 0 28px; color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.account-main { padding-block: 48px 64px; max-width: 920px; }
.account-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.account-title h1 { font-size: 40px; line-height: 1.15; letter-spacing: -.04em; margin: 0 0 10px; }
.account-title p { margin: 0; color: var(--muted); font-size: 15px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; }
.service-heading { display: flex; align-items: start; gap: 18px; margin-bottom: 28px; }
.service-icon { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 15px; display: grid; place-items: center; background: #edf3eb; color: var(--green); }
.service-icon svg { width: 30px; height: 30px; }
.service-name { flex: 1; min-width: 0; }
.service-name h2 { font-size: 25px; margin-bottom: 6px; }
.service-name p { color: var(--muted); font-size: 14px; margin: 0; }
.status { padding: 7px 12px; border-radius: 20px; white-space: nowrap; background: #f1eadc; color: var(--gold-dark); font-size: 12px; font-weight: 600; }
.status-active { background: #e7f1e6; color: var(--green); }
.route-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0 0 28px; padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.route-steps li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; }
.step-number { display: grid; place-items: center; width: 27px; height: 27px; background: var(--paper); border: 1px solid var(--line); border-radius: 50%; flex: 0 0 auto; font-size: 12px; }
.step-copy strong { display: block; font-weight: 600; color: inherit; }
.step-copy span { display: block; font-size: 12px; margin-top: 2px; }
.route-steps li.current { color: var(--ink); }
.route-steps li.current .step-number { background: var(--gold); border-color: var(--gold); }
.route-steps li.complete .step-number { background: #e7f1e6; border-color: #d5e3d2; color: var(--green); }
.service-content h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.025em; margin: 0 0 10px; }
.service-content p { color: var(--muted); font-size: 14px; max-width: 640px; margin: 0 0 22px; }
.service-price { font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -.04em; margin-bottom: 22px; }
.service-price del { margin-left: 14px; font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.text-link { color: var(--muted); font-size: 14px; }
.finam-form { max-width: 540px; }
.finam-help { padding: 18px; background: var(--paper); border-radius: 12px; margin-bottom: 24px; font-size: 14px; }
.finam-help p { margin: 8px 0 0; font-size: 13px; }
.progress-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.turnover { font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.turnover small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.progress-percent { font-size: 23px; font-weight: 600; }
progress { display: block; width: 100%; height: 12px; border: 0; border-radius: 10px; overflow: hidden; background: #e8e9e7; accent-color: var(--green); }
progress::-webkit-progress-bar { background: #e8e9e7; border-radius: 10px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 10px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 10px; }
.progress-note { margin-top: 14px !important; }
.support-strip { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.support-strip p { margin: 0; }
.loading { color: var(--muted); padding-block: 28px; }
dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: #fff; }
dialog::backdrop { background: rgb(31 30 28 / 38%); }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dialog-heading h2 { margin: 8px 0 0; font-size: 24px; }
.dialog-close { width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--paper); color: var(--muted); font-size: 24px; }
.dialog-copy { color: var(--muted); font-size: 14px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.quote-price { font-size: 32px; font-weight: 700; margin: 20px 0; }
@media (max-width: 900px) {
  .auth-main { gap: 36px; grid-template-columns: .8fr 1fr; }
  .auth-card { padding: 28px; }
  .auth-intro h1 { font-size: 34px; }
  .route-steps { gap: 12px; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 72px; gap: 14px; }
  .brand img { width: 140px; }
  .header-link { font-size: 12px; }
  .auth-main { display: block; padding-block: 28px; }
  .auth-intro { padding: 0; margin-bottom: 24px; max-width: none; }
  .auth-intro h1 { font-size: 30px; margin-bottom: 12px; }
  .auth-intro p { font-size: 14px; margin-bottom: 0; }
  .intro-steps { display: none; }
  .auth-card { padding: 24px 20px; border-radius: 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  h2 { font-size: 25px; }
  .user-name { max-width: 130px; font-size: 12px; }
  .header-user { gap: 8px; }
  .account-main { padding-block: 30px 40px; }
  .account-title { align-items: start; gap: 8px; }
  .account-title h1 { font-size: 32px; }
  .account-title p { font-size: 13px; }
  .service-card { padding: 24px 20px; border-radius: 18px; }
  .service-heading { flex-wrap: wrap; gap: 14px; }
  .service-icon { width: 48px; height: 48px; border-radius: 12px; }
  .service-name h2 { font-size: 22px; }
  .service-name { flex-basis: calc(100% - 62px); }
  .status { margin-left: 62px; }
  .route-steps { grid-template-columns: 1fr; gap: 16px; }
  .step-copy span { display: inline; }
  .button { min-height: 44px; }
  .service-actions .button { width: 100%; }
  .support-strip { flex-direction: column; gap: 8px; }
  .turnover { font-size: 22px; }
  .turnover small { display: block; margin-top: 4px; }
  .progress-percent { font-size: 21px; }
  .footer-inner { gap: 12px; }
}
@media (max-width: 360px) {
  .brand img { width: 124px; }
  .header-user { flex-wrap: wrap; justify-content: flex-end; gap: 0; }
  .user-name { max-width: 100px; }
  .service-name h2 { font-size: 20px; }
  .service-name p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
