:root { --app-width: 1180px; }
html { width: 100%; overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; }
body { min-width: 0; width: 100%; max-width: 100%; min-height: 100vh; overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; font-family: 'Manrope', Arial, sans-serif; direction: ltr; text-align: left; }
.app-header { grid-template-columns: auto 1fr auto; }
.header-controls { display: flex; align-items: center; gap: 12px; }
.header-controls form { margin: 0; }
.quiet-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-weight: 700; padding: 8px; }
.quiet-button:hover, .text-link { color: var(--gold-bright); }
.flash-messages { max-width: var(--app-width); margin: 16px auto; padding: 0 18px; }
.flash-messages p { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: var(--surface); }
.app-bank-strip .bank-partners-inner { grid-template-columns: minmax(250px,.7fr) 1fr; }
.app-hero .hero-inner { min-height: 78svh; }
.app-hero .hero-copy { padding-block: 24px; }
.app-hero .hero h1, .app-hero h1 { font-size: clamp(3.6rem, 8vw, 7rem); }
.app-calculator { align-self: center; }
.calculator-intro { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.app-calculator .loan-form { gap: 17px; }
.app-calculator .field { gap: 7px; }
.app-calculator .input-wrap input { min-height: 52px; }
.range-ends { display: flex; justify-content: space-between; direction: ltr; margin: -14px 2px 2px; color: var(--muted); font-size: .78rem; }
.live-estimate { border: 1px solid rgba(255,229,154,.26); border-radius: 8px; background: linear-gradient(135deg,rgba(255,229,154,.15),rgba(15,89,97,.22)); padding: 16px; }
.live-estimate span { display: block; color: var(--muted); font-size: .86rem; }
.live-estimate strong { display: block; color: var(--gold-bright); font-size: clamp(1.6rem,3vw,2.3rem); line-height: 1.25; margin-top: 3px; }
.live-estimate p { margin: 3px 0 0; min-height: 1.4em; color: var(--muted); font-size: .83rem; line-height: 1.5; }
.live-estimate p.is-warning { color: #ffd29f; }
.field-error, .form-error { color: #ffd3b8; }
.field-error { font-size: .8rem; font-weight: 600; }
.form-error { border: 1px solid rgba(255,154,119,.5); border-radius: 8px; background: rgba(97,31,18,.45); padding: 12px 16px; line-height: 1.6; }
.form-error ul { margin: 0; padding-inline-start: 20px; }
.app-trust { margin-bottom: 36px; }
.app-process { scroll-margin-top: 100px; }
.interior-page { min-height: calc(100vh - 280px); padding: clamp(48px,8vw,96px) 18px 100px; }
.interior-wrap { width: min(var(--app-width),100%); margin: auto; }
.interior-wrap.narrow { width: min(720px,100%); }
.interior-page h1 { margin: 0; font-size: clamp(2rem,4vw,3.6rem); line-height: 1.14; }
.page-lead { color: var(--muted); line-height: 1.7; max-width: 64ch; font-size: 1.02rem; }
.summary-grid, .profile-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 30px; }
.summary-grid > div, .profile-strip > div { border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: var(--surface); min-width: 0; }
.summary-grid span, .profile-strip span { display: block; color: var(--muted); font-size: .83rem; }
.summary-grid strong, .profile-strip strong { display: block; margin-top: 10px; font-size: clamp(1.08rem,2vw,1.5rem); overflow-wrap: anywhere; }
.notice-box, .privacy-note { padding: 16px 18px; border: 1px solid rgba(255,229,154,.35); border-radius: 8px; background: rgba(199,153,62,.12); line-height: 1.7; }
.notice-box { margin-top: 28px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.account-form { display: grid; gap: 20px; margin-top: 28px; padding: clamp(22px,4vw,36px); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.account-form .field { align-content: start; }
.account-form .input-wrap { display: flex; }
.account-form input, .account-form select { width: 100%; min-height: 52px; border: 0; outline: 0; padding: 10px 15px; background: transparent; color: var(--ink); font: inherit; direction: ltr; text-align: left; }
.account-form select { color-scheme: dark; cursor: pointer; }
.account-form input:focus-visible, .account-form select:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -2px; }
.account-form .privacy-note { margin: 0; color: var(--muted); font-size: .88rem; }
.account-form [hidden] { display: none; }
.dashboard-heading { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.customer-id-card { border: 1px solid rgba(255,229,154,.44); border-radius: 10px; padding: 18px 24px; background: linear-gradient(135deg,rgba(199,153,62,.2),rgba(5,24,28,.95)); min-width: 235px; }
.customer-id-card span, .customer-id-card small { display: block; color: var(--muted); }
.customer-id-card strong { display: block; color: var(--gold-bright); margin: 7px 0; font-size: 1.22rem; letter-spacing: .04em; }
.profile-strip { margin-top: 36px; }
.profile-strip strong { font-size: 1rem; }
.dashboard-section { margin-top: 76px; }
.section-topline { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 24px; }
.section-topline h2, .contact-panel h2 { margin: 0; font-size: clamp(1.7rem,3vw,2.6rem); }
.application-card { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(160deg,rgba(255,229,154,.08),transparent 28%),var(--surface); box-shadow: var(--shadow); padding: clamp(20px,4vw,32px); margin-bottom: 18px; }
.application-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.application-head span:not(.status-pill) { color: var(--muted); display: block; font-size: .83rem; }
.application-head strong { color: var(--gold-bright); font-size: 1.12rem; }
.status-pill { border: 1px solid rgba(255,229,154,.34); border-radius: 100px; padding: 7px 12px; background: rgba(199,153,62,.13); color: var(--gold-bright); font-size: .82rem; white-space: nowrap; }
.status-declined { color: #ffd3b8; border-color: rgba(255,154,119,.4); background: rgba(97,31,18,.24); }
.status-contract_ready { display: inline-flex; align-items: center; gap: 9px; color: #b8f7c1; border-color: rgba(95,216,123,.55); background: rgba(34,113,56,.25); white-space: normal; }
.approval-light { display: inline-block; width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #55e77a; box-shadow: 0 0 0 3px rgba(85,231,122,.18), 0 0 13px #55e77a; animation: approval-pulse 1.8s ease-in-out infinite; }
.approval-message { display: flex; align-items: flex-start; gap: 14px; margin-top: 22px; padding: 18px; border: 1px solid rgba(95,216,123,.5); border-radius: 10px; background: linear-gradient(120deg,rgba(28,102,53,.35),rgba(7,30,35,.88)); }
.approval-message .approval-light { margin-top: 7px; }
.approval-message strong { color: #d5ffdc; }
.approval-message p { color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
@keyframes approval-pulse { 50% { opacity: .38; box-shadow: 0 0 0 6px rgba(85,231,122,.07), 0 0 5px #55e77a; } }
@media (prefers-reduced-motion: reduce) { .approval-light { animation: none; } }
.application-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 24px 0; }
.application-facts > div { border-radius: 8px; padding: 14px; background: rgba(255,246,223,.06); }
.application-facts span { display: block; color: var(--muted); font-size: .8rem; }
.application-facts strong { display: block; margin-top: 7px; font-size: 1.12rem; }
.contract-area { border-top: 1px solid var(--line); padding-top: 18px; }
.contract-area h3 { margin: 0 0 12px; font-size: 1.08rem; }
.waiting-text { color: var(--muted); margin: 0; }
.contract-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.contract-row p { color: var(--muted); margin: 4px 0 0; line-height: 1.5; }
.employment-docs-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 22px; padding: 18px; border: 1px solid rgba(255,229,154,.34); border-radius: 10px; background: rgba(199,153,62,.1); }
.employment-docs-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.employment-docs-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.employment-status { color: var(--gold-bright); font-weight: 700; }
.held-money-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 14px; padding: 18px; border: 1px solid rgba(255,229,154,.4); border-radius: 10px; background: linear-gradient(110deg,rgba(199,153,62,.17),rgba(7,30,35,.9)); }
.held-money-card h3 { margin: 0; font-size: 1.1rem; }
.held-money-card strong { color: var(--gold-bright); font-size: clamp(1.25rem,3vw,1.65rem); white-space: nowrap; }
.contract-next-step { display: grid; justify-items: start; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.contract-next-step p { margin: 0; color: var(--muted); line-height: 1.5; }
.contact-panel .manager-name { margin: 10px 0; }
.contact-panel { display: flex; justify-content: space-between; align-items: center; gap: 26px; margin-top: 56px; padding: clamp(20px,4vw,36px); border: 1px solid rgba(255,229,154,.28); border-radius: 12px; background: linear-gradient(120deg,rgba(15,89,97,.35),rgba(199,153,62,.12)); }
.contact-panel p:last-child { color: var(--muted); line-height: 1.6; max-width: 65ch; }
.telegram-link-dialog { width: min(540px, calc(100% - 28px)); max-height: min(90vh, 780px); padding: 0; border: 1px solid rgba(255,229,154,.42); border-radius: 12px; background: #071e23; color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.telegram-link-dialog::backdrop { background: rgba(0,5,7,.78); }
.telegram-link-content { position: relative; padding: clamp(22px,4vw,34px); }
.telegram-link-content h2 { margin: 0 0 12px; font-size: clamp(1.5rem,4vw,2rem); }
.telegram-link-content p { color: var(--muted); line-height: 1.6; }
.telegram-link-close { position: absolute; top: 13px; right: 16px; border: 0; background: transparent; color: var(--ink); font-size: 2rem; cursor: pointer; }
#linkCodeRequestForm[hidden] { display: none; }
.telegram-link-code-wrap { display: grid; gap: 10px; margin-top: 24px; padding: 18px; border: 1px solid rgba(255,229,154,.35); border-radius: 10px; background: rgba(199,153,62,.1); }
.telegram-link-code-wrap span { color: var(--muted); }
.telegram-link-code-wrap strong { color: var(--gold-bright); font-size: clamp(1.1rem,4vw,1.55rem); letter-spacing: .06em; overflow-wrap: anywhere; user-select: all; }
.telegram-link-code-wrap .button { justify-self: start; }
.telegram-link-dialog .telegram-link-feedback { min-height: 1.5em; margin: 12px 0; }
.telegram-link-dialog button:disabled { opacity: .5; cursor: not-allowed; }
#telegramChatForm .button { width: 100%; }
.empty-state { border: 1px dashed var(--line); border-radius: 12px; padding: 30px; background: var(--surface); }
.app-footer { margin-top: 0; }
.brand-scene { position: relative; width: min(var(--app-width),calc(100% - 36px)); height: clamp(210px,26vw,360px); margin: 0 auto 42px; overflow: hidden; border: 1px solid rgba(255,229,154,.35); border-radius: 12px; box-shadow: var(--shadow); background: #071e23; }
.brand-scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.brand-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,rgba(1,5,7,.2),transparent 40%,rgba(1,5,7,.16)); }
.app-hero { isolation: isolate; }
.app-hero::after { content: ""; position: absolute; z-index: 0; right: 3%; top: 8%; width: min(36vw, 460px); height: min(54vw, 650px); border: 1px solid rgba(255,229,154,.16); border-radius: 48% 48% 10px 10px; background: repeating-linear-gradient(45deg,transparent 0 20px,rgba(255,229,154,.035) 20px 21px),radial-gradient(circle at 50% 30%,rgba(199,153,62,.13),transparent 65%); pointer-events: none; }
.app-hero .hero-inner { position: relative; z-index: 1; }
.app-hero .hero-copy::before { content: ""; display: block; width: 58px; height: 3px; margin-bottom: 20px; border-radius: 4px; background: linear-gradient(90deg,var(--gold-bright),var(--gold)); }
.app-calculator { border-color: rgba(255,229,154,.45); box-shadow: 0 26px 74px rgba(0,0,0,.4),inset 0 1px rgba(255,229,154,.12); }
.app-bank-strip { margin-top: 0; }
.app-trust { width: min(var(--app-width),calc(100% - 36px)); margin-inline: auto; margin-top: 48px; border: 1px solid rgba(255,229,154,.2); border-radius: 12px; overflow: hidden; }
.app-process { border-top: 1px solid rgba(255,229,154,.12); }
.dashboard-heading { padding: clamp(18px,3vw,32px); border: 1px solid rgba(255,229,154,.25); border-radius: 12px; background: radial-gradient(circle at 12% 0,rgba(199,153,62,.16),transparent 33%),linear-gradient(120deg,rgba(8,35,40,.96),rgba(4,17,20,.96)); }
.application-card { border-left: 3px solid rgba(255,229,154,.45); }
.application-card[data-status="contract_ready"] { border-left-color: #55e77a; }
.app-hero .hero-inner { min-height: 0; align-items: start; }
.app-hero h1 { font-size: clamp(3.4rem, 6vw, 5.5rem); }
.app-hero .hero-copy { position: relative; }
.app-calculator { scroll-margin-top: 88px; }
.app-trust .trust-item, .app-process .steps-list li { border-color: rgba(255,229,154,.25); }
.profile-details { margin-top: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.profile-details summary { padding: 18px 22px; color: var(--gold-bright); font-weight: 700; cursor: pointer; }
.profile-details .profile-strip { margin: 0; padding: 0 16px 16px; }
.dashboard-page .dashboard-section { margin-top: 42px; }
@media (max-width: 640px) { .employment-docs-card, .held-money-card { align-items: stretch; flex-direction: column; } .employment-docs-card .button { width: 100%; } }
@media (max-width: 980px) { .app-bank-strip .bank-partners-inner { grid-template-columns: 1fr; } .summary-grid,.profile-strip,.application-facts { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) { .app-header { justify-content: space-between; } .app-header .brand { display: inline-flex; } .app-header .brand-text { display: none; } .app-hero .hero-inner { padding-top: 48px; } .hero-stats { grid-template-columns: repeat(3,minmax(0,1fr)); } .hero-stats div { padding: 12px; min-height: 80px; } .hero-stats dt { font-size: 1.2rem; } .hero-stats dd { font-size: .74rem; } .form-grid,.summary-grid,.profile-strip,.application-facts { grid-template-columns: 1fr; } .dashboard-heading,.section-topline,.contact-panel,.contract-row { align-items: stretch; flex-direction: column; } .customer-id-card { min-width: 0; } .application-head { align-items: flex-start; flex-direction: column; } .page-actions { align-items: stretch; flex-direction: column; } .page-actions form,.page-actions .button,.contact-panel .button { width: 100%; } }
@media (max-width: 640px) {
  .brand-scene { width: min(calc(100% - 28px),1180px); height: 190px; margin-bottom: 24px; }
  .app-hero::after { display: none; }
  .app-hero .hero-copy::before { margin: 0 auto 15px; }
  .app-trust { width: min(calc(100vw - 28px),1180px); margin-top: 24px; }
  .dashboard-heading { padding: 14px; }
  .app-hero .hero-inner { padding-top: 22px; gap: 24px; }
  .app-hero .hero-copy { padding: 0; }
  .app-hero h1 { font-size: clamp(2.6rem, 12vw, 3.3rem); }
  .app-hero .hero-lead { line-height: 1.48; margin-top: 14px; }
  .app-hero .hero-actions { margin-top: 18px; }
  .app-hero .hero-actions .button { width: 100%; min-height: 50px; }
  .app-hero .hero-stats { margin-top: 20px; }
  .app-calculator { scroll-margin-top: 76px; }
  .dashboard-page { padding-top: 28px; }
  .dashboard-heading { gap: 14px; }
  .dashboard-heading .page-lead { margin: 8px 0 0; }
  .customer-id-card { padding: 13px 16px; }
  .customer-id-card small { display: none; }
  .customer-id-card strong { margin-bottom: 0; }
  .dashboard-page .dashboard-section { margin-top: 32px; }
  .dashboard-page .section-topline { margin-bottom: 14px; }
  .profile-details .profile-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0 10px 10px; }
  .profile-details .profile-strip > div { padding: 12px; }
  .profile-details .profile-strip strong { font-size: .9rem; }
  .application-card { padding: 16px; }
  .application-head strong { overflow-wrap: anywhere; }
  .application-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .application-facts > div { padding: 10px; }
  .contract-next-step .button, .contract-row .button { width: 100%; }
  .telegram-link-code-wrap .button { width: 100%; }
}
