@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/font-400.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/font-500.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/font-600.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/font-700.woff2") format("woff2");
}


@font-face {
  font-family: Poster;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./assets/display-regular.ttf") format("truetype");
}

@font-face {
  font-family: Poster;
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("./assets/display-italic.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --panel: #f7f6f4;
  --surface: #fff;
  --form-text: #181818;
  --muted: #666;
  --border: #d6d3cf;
  --action: #4f0014;
  --action-gradient: linear-gradient(180deg, #5d0019, #4f0014);
  --focus: #4f0014;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
}

* { box-sizing: border-box; }
html { background: var(--panel); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--form-text); font-family: Montserrat, 'Helvetica Neue', Arial, sans-serif; }
button, input { font: inherit; }
a { color: var(--action); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.landing { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(440px, 1fr) auto; min-height: 100svh; position: relative; isolation: isolate; }
.landing-content { grid-column: 1; grid-row: 2; padding: 18px clamp(28px, 4vw, 72px) 12px; background: var(--panel); }
.application, .page-footer { width: 100%; max-width: 420px; margin-inline: auto; }
.scene { grid-column: 1; grid-row: 1; margin: 0; position: relative; min-width: 0; background: #385873; isolation: isolate; }
.landing-picture { display: contents; }
.landing-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; z-index: -2; }
.scene::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #244668b3 0%, #24466875 30%, transparent 62%); z-index: -1; pointer-events: none; }
.offer { position: relative; padding-top: 40px; width: calc(100% - 80px); max-width: 800px; margin-inline: auto; color: #fff; font-family: Poster, Montserrat, sans-serif; text-align: center; }
.offer-meta { display: grid; grid-template-columns: auto minmax(20px, 1fr) auto; gap: 24px; align-items: center; font-size: 12px; font-weight: 200; letter-spacing: .035em; line-height: 1.1; text-transform: uppercase; }
.offer-meta p { margin: 0; text-align: left; }
.offer-meta .location { text-align: right; }
.offer-rule { height: 1px; background: #ffffff70; }
.offer-title { margin: 32px 0 0; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -.015em; text-transform: uppercase; }
.offer-title span { display: block; white-space: nowrap; }
.title-strong { font-weight: 700; font-style: italic; }
.title-light { font-weight: 100; font-style: normal; }
.payment-terms { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 22px auto 0; width: 100%; max-width: 600px; }
.payment-terms p { display: flex; align-items: baseline; justify-content: center; gap: 8px; width: 100%; margin: 0; padding: 9px 14px; border-radius: 16px; background: #24425db3; }
.payment-terms span { font-size: clamp(12px, 1.25vw, 18px); font-weight: 300; text-transform: uppercase; white-space: nowrap; }
.payment-terms strong { font-size: clamp(16px, 1.55vw, 22px); font-weight: 700; white-space: nowrap; }
.application { margin-top: 0; }
.application h2 { margin: 0 0 12px; font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field label { font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.3; }
.form-field input { width: 100%; min-width: 0; height: 46px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; background: var(--surface); color: var(--form-text); font-size: 16px; line-height: 1.2; }
.form-field input::placeholder { color: var(--muted); opacity: 1; }
.form-field input[aria-invalid='true'] { border-color: #820027; }
.form-field input:focus-visible { border-color: var(--action); }
.consents { display: flex; flex-direction: column; align-items: center; gap: 9px; margin: 13px 0; }
.consent-row { display: flex; align-items: flex-start; justify-content: center; gap: 8px; max-width: 100%; color: var(--muted); font-size: 11px; line-height: 1.4; text-align: center; }
.consent-row input { flex-shrink: 0; width: 16px; height: 16px; margin: 0; accent-color: var(--action); cursor: pointer; }
.consent-row label { cursor: pointer; }
.consent-text { display: flex; flex-direction: column; align-items: center; min-width: 0; }
#form-security { width: 100%; max-width: 320px; margin-inline: auto; }
.security-notice { grid-column: 1 / -1; margin: 0; font-size: 10px; line-height: 1.3; text-align: center; color: #555; }
.security-notice a { color: inherit; }
.submit-button { display: block; width: 100%; min-height: 48px; border: 0; border-radius: 100px; padding: 12px 16px; background: var(--action-gradient); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.25; cursor: pointer; transition: filter .15s; }
.submit-button:hover:not(:disabled) { filter: brightness(1.12); }
.submit-button:disabled { opacity: .8; cursor: default; }
.form-status { margin: 0; font-size: 12px; line-height: 1.4; }
.form-status:not(:empty) { margin-top: 12px; }
.form-status[data-state='error'] { color: #820027; }
.script-warning { font-size: 12px; line-height: 1.4; }
.page-footer { margin-top: 13px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.page-footer p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (min-width: 1200px) {
  .landing { width: 100%; aspect-ratio: 1672 / 941; min-height: 0; margin-inline: auto; grid-template-rows: minmax(0, 1fr); }
  .scene { overflow: hidden; }
  .landing-background { object-fit: contain; object-position: center; }
  .offer { width: min(44vw, 640px); max-width: none; margin-left: clamp(48px, 5vw, 96px); margin-right: 0; padding-top: clamp(28px, 5svh, 56px); }
  .offer-title { margin-top: 28px; font-size: clamp(38px, 3.2vw, 56px); }
  .payment-terms { max-width: 520px; margin-top: 18px; }
  .landing-content { grid-row: 1; align-self: end; position: sticky; bottom: 16px; z-index: 1; width: min(660px, calc(100% - 48px)); margin: 0 auto 16px; padding: 12px 16px 10px; background: #f7f6f4b8; border: 1px solid #ffffff73; border-radius: 16px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .application { max-width: none; }
  .application h2, .form-field-phone > label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  #lead-form { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 8px 12px; align-items: end; }
  .form-fields { grid-column: 1; grid-row: 1; }
  .form-field input { height: 40px; padding: 8px 12px; font-size: 15px; }
  .submit-button { grid-column: 2; grid-row: 1; min-height: 40px; padding: 9px 12px; font-size: 14px; }
  .consents { grid-column: 1 / -1; grid-row: 2; gap: 6px; margin: 0; }
  .consent-row { font-size: 10.5px; }
  #form-security { grid-column: 1 / -1; }
  #form-security:empty { display: none; }
  .form-status { grid-column: 1 / -1; }
  .form-status:not(:empty) { margin-top: 0; }
  .form-status:empty { display: none; }
  .form-status { font-size: 11px; }
  .page-footer { max-width: none; margin-top: 6px; font-size: 9px; text-align: center; }
}

@media (max-width: 1199px) {
  .landing { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: 'offer' 'form' 'footer'; min-height: 100svh; padding-bottom: 12px; background: #385873; }
  .landing-content, .scene { display: contents; }
  .landing-background { position: fixed; height: 100svh; object-position: 50% 100%; }
  .scene::before { position: fixed; background: linear-gradient(180deg, #2446689c 0%, #24466842 36%, transparent 60%, #142c4d42 100%); }
  .offer { grid-area: offer; width: calc(100% - 40px); max-width: 620px; min-height: max(430px, 74svh); padding-top: clamp(28px, 6svh, 70px); }
  .offer-meta { gap: 20px; font-size: clamp(9px, 1.8vw, 13px); }
  .offer-title { margin-top: clamp(28px, 4svh, 42px); font-size: clamp(28px, 8.4vw, 52px); }
  .payment-terms { margin-top: 18px; gap: 8px; max-width: 540px; }
  .payment-terms p { padding: 8px 10px; gap: 7px; border-radius: 12px; }
  .payment-terms span { font-size: clamp(10px, 2.85vw, 15px); }
  .payment-terms strong { font-size: clamp(15px, 4.1vw, 21px); }
  .application { grid-area: form; max-width: 520px; width: calc(100% - 32px); margin: 0 auto; padding: 18px; background: var(--panel); border-radius: 14px; }
  .application h2 { margin-bottom: 10px; font-size: 16px; }
  .form-field input { height: 44px; }
  .consents { margin: 11px 0; gap: 7px; }
  .consent-row { font-size: 11px; line-height: 1.35; }
  .submit-button { min-height: 46px; }
  .page-footer { grid-area: footer; max-width: 520px; width: calc(100% - 40px); margin-top: 10px; color: #fff; text-shadow: 0 1px 3px #142c4d; text-align: center; }
}

@media (min-width: 600px) and (max-width: 1199px) {
  .landing-background { object-position: 50% 75%; }
  .offer-title { font-size: clamp(42px, 6.8vw, 52px); }
  .consent-row { font-size: 12px; }
}

@media (min-width: 600px) and (max-width: 1199px) and (max-height: 850px) {
  .landing-background { object-position: 50% 54%; }
  .offer { min-height: max(430px, 74svh); padding-top: 30px; }
  .offer-title { font-size: 42px; margin-top: 24px; }
}

@media (max-width: 599px) and (max-height: 700px) {
  .offer { width: calc(100% - 32px); }
  .offer-title { margin-top: 26px; }
  .payment-terms { margin-top: 16px; }
  .payment-terms p { padding-block: 7px; }
  .application { padding: 14px 16px; }
  .application h2 { font-size: 15px; margin-bottom: 8px; }
  .form-field { gap: 4px; }
  .consents { margin: 9px 0; gap: 6px; }
}

@media (min-width: 1200px) and (max-height: 700px) {
  .offer { padding-top: 24px; }
  .offer-title { margin-top: 22px; font-size: 38px; }
  .payment-terms { margin-top: 18px; }
}

@media (min-width: 1200px) and (max-height: 520px) {
  .landing-content { position: relative; bottom: auto; }
}

.legal-page {
  --focus: var(--action);
  min-height: 100vh;
  padding: var(--space-4);
  background: var(--panel);
  color: var(--form-text);
}

.legal-document {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem);
  background: #fff;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.legal-document h1 {
  margin: var(--space-8) 0 var(--space-4);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.15;
}

.legal-document h2 {
  margin: var(--space-8) 0 var(--space-3);
  font-size: 1.25rem;
  line-height: 1.3;
}

.legal-document p {
  margin: var(--space-4) 0;
}

.legal-document a {
  color: var(--action);
}
