:root {
  --navy: #193062;
  --ink: #17213a;
  --line: #e5e9f2;
  --banner-border: #c9d9fb;
  --yellow: #fae07e;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Aptos, "Trebuchet MS", Arial, Helvetica, sans-serif;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 14px 34px 22px;
}

.logo-link { display: inline-flex; align-items: center; width: fit-content; }
.logo { display: block; width: 136px; height: auto; }
.main-nav { display: flex; justify-content: flex-end; gap: 22px; color: var(--navy); font-size: 14px; font-weight: 700; }
.main-nav a { position: relative; padding: 8px 0; color: inherit; text-decoration: none; }
.main-nav a::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; content: ""; background: transparent; }
.main-nav a.active::after, .main-nav a:hover::after, .main-nav a:focus-visible::after { background: var(--yellow); }

.language-switcher { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border: 1px solid var(--banner-border); border-radius: 6px; background: #f7f9ff; }
.language-switcher a { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 34px; border-radius: 4px; color: var(--navy); font-size: 13px; font-weight: 800; text-decoration: none; }
.language-switcher a[aria-current="page"] { background: var(--navy); color: #fff; }

.claim-form-page, .result-page { width: min(100%, 1040px); margin: 0 auto; padding: 32px 36px 72px; }
.claim-form-page__intro { max-width: 790px; margin-bottom: 36px; }
.eyebrow { margin: 0 0 10px; color: var(--navy); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.claim-form-page h1, .result-page h1 { margin: 0 0 16px; color: var(--navy); font-size: clamp(36px, 5vw, 54px); font-weight: 900; letter-spacing: -.03em; line-height: 1.08; }
.claim-form-page__intro > p:last-child, .result-card > p:not(.eyebrow) { margin: 0; color: #334155; font-size: 17px; line-height: 1.65; }

.claim-form { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-top: 5px solid var(--yellow); border-radius: 8px; background: #fff; box-shadow: 0 14px 34px rgba(25, 48, 98, .08); }
.required-note { margin: 0 0 24px; color: #475569; font-size: 14px; font-weight: 700; }
.required-note span { color: #a71930; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.form-field { min-width: 0; }
.form-field--wide { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 7px; color: #1e293b; font-size: 15px; font-weight: 800; }
.form-field input, .form-field select, .form-field textarea { display: block; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #94a3b8; border-radius: 4px; background: #fff; color: #17213a; font: inherit; line-height: 1.4; }
.form-field textarea { min-height: 128px; resize: vertical; }
.form-field select { appearance: auto; }
.form-field input::placeholder { color: #64748b; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid rgba(35, 91, 185, .25); outline-offset: 1px; border-color: #235bb9; }
.field-hint { margin: 8px 0 0; color: #475569; font-size: 13px; line-height: 1.45; }
.field-validation, .validation-summary { display: block; margin-top: 6px; color: #a71930; font-size: 13px; font-weight: 700; }
.validation-summary:empty { display: none; }
.validation-summary ul { margin: 0 0 20px; padding-left: 20px; }
.input-validation-error { border-color: #a71930 !important; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 22px; border: 2px solid transparent; border-radius: 4px; font-size: 15px; font-weight: 800; line-height: 1.2; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.button--primary { background: var(--navy); color: #fff; }
.button--primary:hover { background: #0e214e; color: #fff; }
.button:focus-visible { outline: 3px solid rgba(35, 91, 185, .35); outline-offset: 3px; }

.result-page { display: grid; min-height: 520px; place-items: center; }
.result-card { width: min(100%, 680px); padding: clamp(32px, 7vw, 66px); border: 1px solid var(--line); border-top: 5px solid var(--yellow); border-radius: 8px; background: #fff; box-shadow: 0 14px 34px rgba(25, 48, 98, .08); text-align: center; }
.result-icon { display: inline-grid; width: 56px; height: 56px; margin-bottom: 24px; place-items: center; border-radius: 50%; font-size: 32px; font-weight: 900; line-height: 1; }
.result-icon--success { background: #dff4e5; color: #146c2e; }
.result-icon--error { background: #fde7e9; color: #a71930; }
.result-card .button { margin-top: 28px; }

.site-footer { width: min(100%, 1210px); margin: 0 auto; padding: 24px 36px 28px; border-top: 1px solid var(--line); color: #111827; }
.site-footer h2 { margin: 0 0 4px; color: var(--navy); font-size: 14px; font-weight: 900; line-height: 1.25; }
.site-footer p { max-width: 1180px; margin: 0 0 12px; font-size: 13px; font-weight: 700; line-height: 1.55; }
.site-footer a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; gap: 16px; padding: 16px 22px 18px; }
  .logo { width: 124px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 18px; }
  .claim-form-page, .result-page, .site-footer { padding-right: 24px; padding-left: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--wide { grid-column: auto; }
}

@media (max-width: 430px) {
  .site-header { grid-template-columns: 1fr; }
  .language-switcher { width: 100%; }
  .language-switcher a { width: 100%; }
  .claim-form-page, .result-page { padding-top: 18px; padding-bottom: 44px; }
  .claim-form { padding: 22px 18px; }
  .claim-form-page h1, .result-page h1 { font-size: 34px; }
  .form-actions { justify-content: stretch; }
  .form-actions .button { width: 100%; }
}
