:root {
  color-scheme: light;
  background: #f6f5ee;
  color: #173f35;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { cursor: pointer; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 6vw, 5rem);
}
.masthead, footer { padding: 1.4rem 0; }
.masthead { display: flex; align-items: baseline; gap: .55rem; font-size: 1rem; }
.masthead .account-link { margin-left: auto; align-self: center; text-align: right; font-weight: 600; }
.masthead img { align-self: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; }
.wordmark { font-size: 2rem; letter-spacing: -.09em; font-weight: 750; }
.wordmark span { color: #647e54; }
main {
  flex: 1;
  display: flex;
  gap: clamp(1.5rem, 6vw, 6rem);
  align-items: center;
  justify-content: space-between;
  padding: clamp(2rem, 7vh, 5.5rem) 0;
}
.offer { flex: 1 1 45%; min-width: 0; }
.offer .directions-link { display: inline-block; margin-top: .8rem; }
h1 { font-size: clamp(2.9rem, 5.8vw, 5.6rem); line-height: 1; letter-spacing: -.065em; margin: 0; }
.offer p { margin: 1.5rem 0 0; max-width: 26rem; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.6; }
.calculator {
  flex: 1 1 25rem;
  width: 100%;
  max-width: 30rem;
  min-width: 0;
  padding: clamp(1.25rem, 3.1vw, 2.25rem);
  border: 1px solid #cbd3c8;
  border-radius: 1.6rem;
  background: #fffefa;
}
.calculator h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -.045em; line-height: 1.12; }
.hint { color: #51645b; margin: .5rem 0 1.5rem; font-size: .95rem; line-height: 1.45; }
.amount { display: block; cursor: text; padding: .8rem 1rem; margin-top: .55rem; border: 1px solid #c7d1c7; border-radius: .9rem; }
.amount:focus-within { border-color: #376751; box-shadow: 0 0 0 2px #376751; }
.amount:has([aria-invalid="true"]) { border-color: #9b462e; }
.amount > span:first-child { display: block; color: #51645b; font-size: .88rem; }
.amount-row { display: flex; align-items: baseline; gap: .65rem; margin-top: .3rem; }
.amount input { flex: 1; min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: inherit; font-family: inherit; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.amount input::placeholder { color: #819086; opacity: 1; }
.amount-row b { font-size: .95rem; }
.terms { display: grid; gap: .55rem; margin: 1.3rem 0; font-size: .92rem; }
.terms div { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.terms dt { color: #51645b; }
.terms dd { margin: 0 0 0 auto; font-weight: 650; font-variant-numeric: tabular-nums; }
#message { margin: 0 0 1rem; line-height: 1.45; }
#message:empty { display: none; }
#message.error { color: #893828; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.3rem;
  min-height: 3.15rem;
  padding: .8rem 1.3rem;
  border-radius: .85rem;
  color: #fff;
  background: #173f35;
  font-weight: 650;
  text-decoration: none;
  border: 0;
}
.action:hover { background: #245847; }
a:focus-visible, button:focus-visible, select:focus-visible, .field input:focus-visible, .consent input:focus-visible { outline: 3px solid #86601c; outline-offset: 3px; }
.action:disabled { cursor: default; color: #45574c; background: #dbe2d8; }
.quiet-link, .text-button { color: #254f40; text-underline-offset: .2em; }
.text-button { border: 0; background: none; padding: 0; text-decoration: underline; }
.alternative { display: block; text-align: center; margin: 1rem 0 0; }
.back { margin-bottom: 1rem; }
.summary { padding: 1rem 0; border-top: 1px solid #dce2d9; border-bottom: 1px solid #dce2d9; }
.summary dd { font-size: 1.08rem; }
#order-fields { min-width: 0; border: 0; margin: 0; padding: 0; }
.field { display: block; margin: 1rem 0 0; font-size: .93rem; font-weight: 600; }
.field input, .field select {
  display: block; margin-top: .4rem; padding: .68rem .8rem; min-height: 2.8rem; width: 100%;
  border: 1px solid #b7c6bc; border-radius: .65rem; background: #fff; color: #173f35; font-size: 1rem; font-weight: 450;
}
.field-hint, .feedback { font-size: .9rem; color: #51645b; line-height: 1.45; margin: .5rem 0 0; }
.feedback:empty { display: none; }
.feedback { margin: 0 0 1rem; }
.feedback.error { color: #893828; }
.consent { display: flex; align-items: flex-start; gap: .65rem; margin: 1.3rem 0; line-height: 1.5; font-size: .92rem; }
.consent input { flex: none; margin: .15rem 0 0; width: 1.12rem; height: 1.12rem; accent-color: #214e40; }
.step { margin: 1rem 0; line-height: 1.55; }
.verification { display: flex; gap: .7rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.order-actions { display: grid; justify-items: start; gap: .95rem; }
#order-message { margin: 1rem 0 0; }
dialog { width: min(39rem, calc(100% - 2rem)); max-height: 85vh; padding: 1.4rem; border: 1px solid #bdcbbf; border-radius: 1.1rem; color: inherit; background: #fffefa; }
dialog::backdrop { background: rgb(20 46 35 / .5); }
.dialog-header { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; }
.dialog-header h2 { margin: 0; font-size: 1.5rem; }
.dialog-header button { border: 1px solid #b7c6bc; border-radius: .6rem; background: #fff; padding: .45rem .65rem; color: inherit; }
#conditions-content h3 { margin: 1.4rem 0 .5rem; font-size: 1.05rem; }
#conditions-content p, #conditions-content li { line-height: 1.55; }
#conditions-content p { margin: .55rem 0; }
footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 2rem; border-top: 1px solid #cbd3c8; }
footer h2 { margin: 0; font-size: 1rem; }
footer div { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; }
footer a { color: inherit; padding: .3rem 0; text-underline-offset: .2em; }
@media (max-width: 48rem) {
  main { flex-direction: column; align-items: stretch; justify-content: center; gap: 1.6rem; padding: 1.3rem 0 2rem; }
  .calculator, .offer { flex: none; }
  .offer p { margin-top: .7rem; }
  .calculator { max-width: none; }
}
.rules-page { display: block; width: min(100%, 46rem); margin-inline: auto; line-height: 1.6; overflow-wrap: anywhere; }
.rules-page h1 { margin-top: 1.25rem; }
.rules-page h2 { margin: 2rem 0 .6rem; font-size: clamp(1.35rem, 3vw, 1.65rem); line-height: 1.2; }
.rules-page p, .rules-page ul { margin: .75rem 0; }
.rules-page ul { padding-inline-start: 1.4rem; }
.rules-page li + li { margin-top: .45rem; }
#rules-return { display: inline-block; margin-top: 1.5rem; }
