:root {
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --ink: #11110f;
  --muted: #6f716f;
  --line: #e8e5dd;
  --paper: #f7f6f2;
  --white: #ffffff;
  --success: #257a50;
  --danger: #b54736;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 12, 11, 0.88);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 150px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.brand {
  width: 210px;
  height: 141px;
  display: block;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-self: end;
  color: #d7d7d4;
  font-size: 0.86rem;
}

nav a {
  transition: color 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--amber-light);
}

.button {
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--amber);
  color: #17130b;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--amber-light);
  transform: translateY(-1px);
}

.button-small {
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.88rem;
}

.hero {
  min-height: 780px;
  position: relative;
  overflow: hidden;
  padding: 214px 0 86px;
  background:
    radial-gradient(circle at 11% 80%, rgba(245, 158, 11, 0.12), transparent 26%),
    linear-gradient(135deg, #0b0c0b 0%, #151513 65%, #0d0d0c 100%);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, black, transparent 72%);
}

.hero-glow {
  position: absolute;
  top: 12%;
  right: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 76px rgba(245, 158, 11, 0.025), 0 0 0 152px rgba(245, 158, 11, 0.018);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--amber-light);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--amber);
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(3.2rem, 5vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-lead {
  max-width: 570px;
  margin: 30px 0 0;
  color: #b9bbb7;
  font-size: 1.1rem;
  line-height: 1.7;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.highlight {
  padding: 22px 18px 0 0;
}

.highlight + .highlight {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.highlight strong,
.highlight span {
  display: block;
}

.highlight strong {
  color: var(--amber-light);
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.highlight span {
  margin-top: 4px;
  color: #8d8f8b;
  font-size: 0.73rem;
  line-height: 1.4;
}

.hero-contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-contacts strong {
  color: var(--amber-light);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-contacts a {
  color: #ededeb;
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.hero-contacts a:hover,
.hero-contacts a:focus-visible {
  color: var(--amber-light);
}

.calculator-card {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.985);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.card-heading .section-kicker {
  margin-bottom: 5px;
  color: #a96700;
}

.card-heading h2 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.035em;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f2f8f4;
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 750;
  white-space: nowrap;
}

.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34a36a;
  box-shadow: 0 0 0 4px rgba(52, 163, 106, 0.12);
}

.calculator-explainer {
  margin: -5px 0 24px;
  padding: 13px 15px;
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0;
  background: #fff7e7;
}

.calculator-explainer strong {
  display: block;
  margin-bottom: 2px;
  color: #6f4700;
  font-size: 0.84rem;
}

.calculator-explainer p {
  margin: 0;
  color: #806c49;
  font-size: 0.79rem;
  line-height: 1.5;
}

.field {
  margin-bottom: 21px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: #2e2f2c;
  font-size: 0.9rem;
  font-weight: 800;
}

.range-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.range-heading label {
  margin: 0;
}

.range-heading output {
  padding: 5px 9px;
  border-radius: 7px;
  background: #fff3da;
  color: #805000;
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.field-help {
  margin: -1px 0 9px;
  color: #676762;
  font-size: 0.75rem;
  line-height: 1.5;
}

.field-row .field-help {
  min-height: 58px;
}

.funding-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #e6e1d7;
  border-radius: 11px;
  background: #faf8f3;
}

.funding-compact > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 2px 9px;
}

.funding-compact span {
  color: #5e5f59;
  font-size: 0.73rem;
  font-weight: 750;
}

.funding-compact strong {
  color: #805000;
  font-size: 0.9rem;
}

.funding-compact small {
  grid-column: 1 / -1;
  color: #88867f;
  font-size: 0.66rem;
}

.range-field input[type="range"] {
  --range-progress: 50%;
  width: 100%;
  height: 22px;
  margin: 0;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.range-field input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--amber) 0 var(--range-progress), #e9e6df var(--range-progress) 100%);
}

.range-field input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #e9e6df;
}

.range-field input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--amber);
}

.range-field input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 4px solid var(--white);
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--amber);
  box-shadow: 0 2px 10px rgba(67, 44, 4, 0.28);
}

.range-field input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 2px 10px rgba(67, 44, 4, 0.28);
}

.range-field input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.22), 0 2px 10px rgba(67, 44, 4, 0.28);
}

.range-limits {
  display: flex;
  justify-content: space-between;
  margin-top: -2px;
  color: #77766f;
  font-size: 0.69rem;
  font-weight: 700;
}

.results {
  margin-top: 27px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.score-summary {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 18px;
}

.score-ring {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--amber) 0deg 144deg, #eeece7 144deg 360deg);
  transition: background 0.3s ease;
}

.score-ring::before {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: white;
}

.score-ring > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.score-ring strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.score-ring span {
  color: #96948e;
  font-size: 0.62rem;
}

.result-label {
  margin: 0 0 2px;
  color: #676762;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.score-summary h3 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.score-summary p:last-child {
  margin: 3px 0 0;
  color: #696964;
  font-size: 0.77rem;
  line-height: 1.45;
}

.money-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid #eeeae1;
  border-radius: 12px;
  background: #eeeae1;
}

.money-results > div {
  min-width: 0;
  padding: 14px 15px;
  background: #faf9f6;
}

.money-results span,
.money-results strong,
.money-results small {
  display: block;
}

.money-results span {
  color: #63635f;
  font-size: 0.75rem;
}

.money-results strong {
  margin-top: 4px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.money-results small {
  margin-top: 2px;
  color: #77766f;
  font-size: 0.69rem;
}

.breakdown {
  display: grid;
  gap: 12px;
}

.breakdown-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 5px;
  color: #60605b;
  font-size: 0.75rem;
}

.breakdown-row strong {
  color: #383936;
}

.bar {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #efede7;
}

.bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e18a00, var(--amber-light));
  transition: width 0.35s ease;
}

.info-section {
  padding: 82px 0 92px;
}

.compact-info {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 64px;
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 55px rgba(31, 29, 24, 0.06);
}

.compact-info h2 {
  max-width: 470px;
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.compact-info-lead {
  max-width: 500px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.download-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 13px 15px;
  border: 1px solid #ead8b7;
  border-radius: 12px;
  background: #fff9ec;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.download-guide:hover,
.download-guide:focus-visible {
  border-color: var(--amber);
  background: #fff4d8;
  transform: translateY(-1px);
}

.download-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--amber);
  color: #241b0b;
  font-size: 1.2rem;
  font-weight: 900;
}

.download-guide strong,
.download-guide small {
  display: block;
}

.document-status {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #352a19;
  color: #ffd783;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.download-guide strong {
  color: #3d3424;
  font-size: 0.77rem;
}

.download-guide small {
  margin-top: 2px;
  color: #8f846f;
  font-size: 0.64rem;
}

.program-facts {
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
}

.program-facts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.program-facts dt {
  color: #777670;
  font-size: 0.76rem;
}

.program-facts dd {
  margin: 0;
  color: #33332f;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.eligibility-list {
  padding: 30px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--white);
}

.eligibility-list .section-kicker {
  margin-bottom: 7px;
}

.eligibility-list h3 {
  margin: 0 0 23px;
  font-size: 1.4rem;
  letter-spacing: -0.035em;
}

.eligibility-list ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eligibility-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #d8d9d6;
  font-size: 0.78rem;
  line-height: 1.45;
}

.eligibility-list li span {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.13);
  color: var(--amber-light);
  font-size: 0.7rem;
  font-weight: 900;
}

.info-note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #92948f;
  font-size: 0.68rem;
  line-height: 1.6;
}

.info-note strong {
  color: #d6d7d3;
}

footer {
  padding: 32px 0;
  border-top: 1px solid #292a27;
  background: #0d0e0d;
  color: #8d8f8b;
}

.footer-inner {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 34px;
}

.footer-logo {
  width: 145px;
  height: 108px;
  object-fit: contain;
}

.footer-copy p {
  max-width: 650px;
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.6;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 10px;
}

.footer-contacts a {
  color: #f1f1ee;
  font-size: 0.76rem;
  font-weight: 750;
}

.footer-contacts a:hover,
.footer-contacts a:focus-visible {
  color: var(--amber-light);
}

.footer-inner a {
  color: #c9c9c5;
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  .hero {
    padding-top: 135px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  .calculator-card {
    max-width: 680px;
  }

  .compact-info {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .site-header nav {
    display: none;
  }

  .header-inner {
    min-height: 132px;
    grid-template-columns: 1fr;
  }

  .brand {
    width: 190px;
    height: 127px;
  }

  .site-header .button-small {
    display: none;
  }

  .hero {
    padding: 178px 0 58px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.3rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-contacts {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .highlights {
    grid-template-columns: 1fr;
  }

  .highlight,
  .highlight + .highlight {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    padding: 15px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .calculator-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .field-row,
  .money-results {
    grid-template-columns: 1fr;
  }

  .field-row .field-help {
    min-height: 0;
  }

  .funding-compact {
    align-items: flex-start;
  }

  .funding-compact > div {
    grid-template-columns: 1fr;
  }

  .funding-compact small {
    grid-column: auto;
  }

  .card-heading {
    align-items: center;
  }

  .score-summary {
    grid-template-columns: 82px 1fr;
  }

  .score-ring {
    width: 82px;
    height: 82px;
  }

  .score-ring::before {
    width: 64px;
    height: 64px;
  }

  .info-section {
    padding: 76px 0;
  }

  .compact-info {
    gap: 32px;
    padding: 30px 22px;
    border-radius: 22px;
  }

  .eligibility-list {
    padding: 26px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-logo {
    width: 165px;
    height: 124px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
