:root {
  --paper: #ffffff;
  --paper-deep: #eef4f0;
  --card: #ffffff;
  --ink: #172117;
  --ink-soft: #3c4a3d;
  --muted: #667066;
  --line: #d0d8d3;
  --field: #1b6b43;
  --field-dark: #0f442b;
  --field-deep: #0c2418;
  --on-field: #f3f8f5;
  --on-field-soft: #c7d6cc;
  --wheat: #e2a33a;
  --wheat-deep: #b7791f;
  --danger: #8f332c;
  --shadow: 0 24px 60px rgba(23, 40, 24, 0.08);
  --radius: 22px;
  --header: 76px;
  --lead-to-content: 28px;
  --serif: Onest, "Segoe UI", sans-serif;
  --sans: Onest, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background: var(--paper);
}
@supports (font: -apple-system-body) {
  html {
    scrollbar-gutter: auto;
    min-height: -webkit-fill-available;
  }
  body { min-height: -webkit-fill-available; }
}
html.is-nav-locked {
  overscroll-behavior: none;
}
html.is-nav-locked body {
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.nowrap { white-space: nowrap; }
h1, h2, .logo__name, .stat b, .step__num {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
}

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 20;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: var(--ink);
  color: white;
}
.skip:focus {
  width: auto;
  height: auto;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
}

.tg-announce {
  padding: 18px 0 2px;
  background: var(--paper);
}
.home .tg-announce + .hero {
  padding-top: 22px;
}
.tg-announce__card {
  position: relative;
  border: 1px solid var(--field);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 18px 48px rgba(23, 40, 24, 0.07);
  overflow: hidden;
}
.tg-announce__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--field-dark);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.tg-announce__close:hover { color: var(--field); background: #eef4f0; }
.tg-announce__body {
  padding: 20px 20px 18px;
}
.tg-announce__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 28px;
  margin-bottom: 0;
}
.tg-announce__icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: block;
  border-radius: 50%;
  background: none;
  box-shadow: none;
  text-decoration: none;
  line-height: 0;
}
.tg-announce__icon img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.tg-announce__intro {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-width: 0;
  padding-top: 0;
}
.tg-announce__eyebrow {
  margin: 0;
  color: #229ed9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.25;
}
.tg-announce__intro h2 {
  margin: 0;
  font-size: clamp(20px, 4.5vw, 26px);
  line-height: 1.18;
}
.tg-announce__desc {
  margin: 12px 0 16px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}
.tg-announce__open.btn {
  position: relative;
  min-height: 0;
  height: auto;
  padding: 12px 44px 12px 18px;
  font-size: 16px;
  gap: 8px;
  line-height: 1.2;
  justify-content: center;
}
.tg-announce__open .role-card__arrow.tg-announce__open-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}
.tg-announce__more {
  border-top: 1px solid var(--line);
  background: #fff;
}
.tg-announce__more-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 14px 18px;
  color: var(--field-dark);
  font-size: 14px;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tg-announce__more-toggle > span:first-child {
  flex: 1;
  min-width: 0;
  padding-right: 6px;
}
.tg-announce__more-toggle::-webkit-details-marker { display: none; }
.tg-announce__chev {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background-color: var(--field-dark);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-size: 16px 16px;
  mask-size: 16px 16px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transform: rotate(90deg);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tg-announce__more[open]:not(.tg-announce__more--closing) .tg-announce__chev {
  transform: rotate(-90deg);
}
.tg-announce__more-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.tg-announce__more[open]:not(.tg-announce__more--closing) .tg-announce__more-panel {
  grid-template-rows: 1fr;
}
.tg-announce__more[open].tg-announce__more--closing .tg-announce__more-panel {
  grid-template-rows: 0fr;
}
.tg-announce__more-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 18px 16px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.tg-announce__more[open]:not(.tg-announce__more--closing) .tg-announce__more-inner {
  opacity: 1;
  transition-delay: 0.06s;
}
.tg-announce__more[open].tg-announce__more--closing .tg-announce__more-inner {
  opacity: 0;
  transition-delay: 0s;
}
.tg-announce__tip-lead {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.tg-announce__copyfield {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.tg-announce__link {
  flex: 1;
  min-width: 0;
  align-self: center;
  padding: 6px 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tg-announce__copy-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--field-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}
.tg-announce__copy-btn:hover { background: var(--paper-deep); border-color: #c5cdc7; }
.tg-announce__copy-btn svg { flex: 0 0 18px; }
.tg-announce__live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 721px) {
  .tg-announce__body { padding: 20px 22px 18px; }
}
@media (max-width: 480px) {
  .tg-announce { padding-top: 12px; }
  .tg-announce__body { padding: 16px 16px 14px; }
  .tg-announce__head { gap: 12px; }
  .tg-announce__icon,
  .tg-announce__icon img { flex-basis: 58px; width: 58px; height: 58px; }
  .tg-announce__copyfield {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 10px 8px;
  }
  .tg-announce__link {
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: unset;
  }
  .tg-announce__copy-btn { justify-content: center; width: 100%; }
}

.topbar {
  background: var(--field-deep);
  color: var(--on-field);
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}
.topbar span { opacity: 0.9; }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid transparent;
}
.header.is-stuck { border-bottom-color: var(--line); }
.header__inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--green);
  flex: 0 0 46px;
}
.logo__mark svg { display: none; }
.logo > span:last-child {
  display: inline-grid;
  justify-items: stretch;
}
.header .logo > span:last-child { transform: translateY(2px); }
.logo__name {
  display: block;
  color: var(--field-dark);
  font-size: 28px;
  line-height: 0.9;
}
.logo small {
  display: block;
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
  margin-top: 2px;
  padding-left: 2px;
  color: var(--field-dark);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-align: justify;
  text-align-last: justify;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo small::before,
.logo small::after { content: none; }
.logo__dot {
  display: inline-block;
  font-size: 1.85em;
  line-height: 1;
  vertical-align: -0.12em;
}

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14.5px; font-weight: 650; color: var(--ink-soft); }
.nav a:hover, .nav a.is-active { color: var(--field-dark); }
.header__actions { display: flex; gap: 10px; align-items: center; }
@media (min-width: 981px) {
  [data-auth-member] { display: none !important; }
  .home .account-chip {
    height: 52px;
    max-width: 320px;
    padding: 6px 14px 6px 6px;
    gap: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    font-weight: 750;
  }
  .home .account-chip__icon { display: none; }
  .home .account-chip::before {
    content: attr(data-letter);
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--field-deep);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
  }
  .home .account-chip__chevron { width: 16px; height: 16px; flex-basis: 16px; color: var(--ink); }
}
.account-menu { position: relative; }
.account-chip {
  height: 44px;
  max-width: 220px;
  padding: 0 14px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--field);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}
.account-chip [data-account-name] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chip__icon, .account-chip__chevron { width: 18px; height: 18px; flex: 0 0 18px; }
.account-chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-menu__list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  min-width: 236px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 40, 24, 0.12);
}
.account-menu__list a,
.account-menu__list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.account-menu__list svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account-menu__list a:hover,
.account-menu__list button:hover { background: var(--paper); }
@media (max-width: 980px) {
  .header__inner > .account-menu { margin-left: auto; }
  .header__inner > .account-menu ~ .burger { margin-left: 0; }
  .header__inner > .account-menu .account-chip {
    width: 44px;
    height: 44px;
    max-width: none;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    justify-content: center;
  }
  .header__inner > .account-menu .account-chip__icon,
  .header__inner > .account-menu .account-chip__chevron,
  .header__inner > .account-menu [data-account-name] { display: none; }
  .header__inner > .account-menu .account-chip::before {
    content: attr(data-letter);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--field-deep);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
  }
  .header__inner > .account-menu .account-menu__list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    margin-top: 0;
    box-shadow: 0 16px 40px rgba(23, 40, 24, 0.12);
  }
}
.burger {
  display: none;
  margin-left: auto;
  width: auto;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
}
.burger__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  text-transform: uppercase;
  padding-top: 2px;
  padding-bottom: 0;
}
.burger__label::before,
.burger__label::after {
  content: none;
  display: none;
}
.burger__bars {
  width: 18px;
  height: 13px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.burger__bars > span,
.burger__bars > span:before,
.burger__bars > span:after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.32s ease, top 0.32s ease, background-color 0.2s ease;
}
.burger__bars > span:before,
.burger__bars > span:after { content: ""; position: absolute; left: 0; }
.burger__bars > span:before { top: -6px; }
.burger__bars > span:after { top: 6px; }
.header.is-open .burger__bars > span { background: transparent; }
.header.is-open .burger__bars > span:before { top: 0; transform: rotate(45deg); }
.header.is-open .burger__bars > span:after { top: 0; transform: rotate(-45deg); }
.header__panel,
.header__panel-inner { display: contents; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 750;
  cursor: pointer;
  background: transparent;
}
.btn--primary { background: var(--field); color: white; }
.btn--primary:hover { background: var(--field-dark); }
.btn.is-loading {
  pointer-events: none;
  opacity: .88;
}
.btn.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn--dark { background: var(--field-deep); color: var(--on-field); }
.btn--dark:hover { background: #081910; }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--wheat { background: var(--wheat); color: #2a1c06; }
.btn--wheat:hover { background: #efb34d; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--wheat-deep);
  outline-offset: 2px;
}

.hero { padding: 42px 0 20px; position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: start;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--field-dark);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wheat);
}
h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.16; }
.hero h1,
.auth-hero h1 {
  line-height: 1.06;
}
.hero__title-tail {
  position: relative;
  display: inline-block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  vertical-align: baseline;
}
.hero__lottie {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  display: block;
  width: clamp(64px, 12vw, 80px);
  height: clamp(64px, 12vw, 80px);
  margin: 0;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-50%);
}
.hero__lottie svg {
  display: block;
  width: 100%;
  height: 100%;
}
.lead { margin-top: 18px; font-size: 18px; color: var(--ink-soft); max-width: 560px; }
.hero .lead,
.auth-hero .lead {
  margin-bottom: 0;
  line-height: 1.4;
}
.hero__column {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
.hero__copy {
  width: 100%;
  min-width: 0;
}
.hero__aside {
  min-width: 0;
}
.hero__calc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.hero__actions {
  margin-top: 20px;
}
.borrow-page .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  max-width: 100%;
}
.hero__actions .role-pick { width: min(100%, 520px); }
.hero__actions a.role-card,
a.hero__calc-cta,
#register-form .role-card {
  border: 1.5px solid var(--field);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.16s ease;
}
a.role-card {
  color: inherit;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .hero__actions a.role-card:hover,
  a.hero__calc-cta:hover,
  #register-form .role-card:hover {
    border-color: var(--field);
    background: rgba(27, 107, 67, 0.08);
  }
}
@media (hover: none) and (pointer: coarse) {
  .hero__actions a.role-card:active,
  a.hero__calc-cta:active,
  #register-form .role-card:active {
    border-color: var(--field);
    background: rgba(27, 107, 67, 0.08);
  }
}
.trustrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero__trustrow {
  width: 100%;
  max-width: min(100%, 520px);
}
.hero__showcase {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
  width: 100%;
}
.hero__roles-copy {
  order: 1;
  max-width: 52ch;
}
.hero__roles-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__roles-title__mob {
  display: none;
}
.hero__roles-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero__showcase .hero__mockup {
  order: 2;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  max-width: min(100%, 520px);
  padding: 0;
  margin: 0;
}
.hero__mockup-img {
  display: block;
  flex: 0 0 calc((100% - 12px) / 2);
  width: calc((100% - 12px) / 2);
  min-width: 0;
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}
@media (min-width: 1180px) {
  .hero__showcase {
    flex-direction: row;
    align-items: center;
    gap: clamp(24px, 3.5vw, 44px);
    margin-top: 24px;
    max-width: 100%;
  }
  .hero__showcase .hero__mockup {
    order: 1;
    flex: 0 0 min(52%, 340px);
    max-width: 340px;
    margin-top: 0;
    padding: 0;
  }
  .hero__roles-copy {
    order: 2;
    flex: 1 1 0;
    min-width: min(100%, 260px);
    max-width: 40ch;
    padding: 0;
  }
}
.pill {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.calc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
}
.calc h2 { font-size: 28px; line-height: 1.15; }
.calc__note { color: var(--muted); font-size: 13px; margin: 6px 0 16px; }
.calc__limit { color: var(--ink-soft); font-size: 13px; margin: -4px 0 14px; }
.field { margin-bottom: 14px; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.field__top output { font-family: var(--serif); font-size: 22px; font-weight: 560; }
input[type="range"] {
  width: 100%;
  accent-color: var(--field);
  height: 28px;
}
.calc__result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 0;
}
.result {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.result > span { display: block; color: var(--muted); font-size: 12px; }
.result b { font-size: 20px; white-space: nowrap; }
.result .byn-sign {
  display: inline-block;
  font-size: 20px;
  height: 0.72em;
  color: inherit;
}
.field__top output .byn-sign {
  font-size: 22px;
  height: 0.72em;
}
.result--wide {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
}
.result--wide > span {
  color: var(--muted);
}
.result--wide b {
  color: var(--field);
  font-weight: 800;
}
.result--wide .byn-sign {
  color: var(--field);
}

.section { padding: 72px 0; }
main > .section:last-child { padding-bottom: 48px; }
.section--tight { padding-top: 28px; }
.section__head { max-width: 680px; margin-bottom: var(--lead-to-content); }
.section__head h2, .band h2, .page-hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
.section__head p, .page-hero p:not(.crumbs) { margin-top: 12px; color: var(--ink-soft); font-size: 17px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transform: translateY(0);
  box-shadow: 0 0 0 transparent;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.card--fill { background: var(--field); color: var(--on-field); border-color: transparent; }
.card--dark { background: var(--field-deep); color: var(--on-field); border-color: transparent; }
.card h3 { font-size: 26px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); flex: 1; }
.card--fill p,
.card--dark p { color: inherit; }
.card__more { margin-top: 18px; font-weight: 800; font-size: 14px; }
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(12, 36, 24, 0.12);
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.step__num { font-size: 42px; color: var(--wheat-deep); display: block; }
.step h3 { margin: 8px 0; font-size: 20px; }
.step p { color: var(--ink-soft); }

.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.advantage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.advantage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.advantage strong { display: block; margin-bottom: 4px; }
.advantage p { color: var(--muted); font-size: 14px; }
.icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e7f3eb;
  color: var(--field-dark);
  margin-bottom: 10px;
}

.needs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.needs span, .chip {
  background: var(--paper-deep);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
}

.band {
  background: var(--field-deep);
  color: var(--on-field);
  border-radius: 32px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: center;
}
.band p { color: var(--on-field-soft); margin-top: 12px; }
.stats { display: grid; gap: 10px; }
.stat { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 14px 16px; }
.stat b { display: block; font-size: 28px; color: var(--wheat); }
.stat span { color: var(--on-field-soft); font-size: 14px; }
.byn-sign {
  display: inline-block;
  height: 0.66em;
  aspect-ratio: 549 / 641;
  width: auto;
  margin-left: 0.1em;
  vertical-align: baseline;
  background: currentColor;
  -webkit-mask: url("../img/byn-sign.png?v=2") center / 100% 100% no-repeat;
  mask: url("../img/byn-sign.png?v=2") center / 100% 100% no-repeat;
}
.stat .byn-sign {
  margin-left: 0.1em;
  color: inherit;
  font-size: inherit;
}

.compliance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.compliance article {
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  min-height: 150px;
}
.compliance h3 { font-size: 16px; margin-bottom: 6px; }
.compliance p { color: var(--muted); font-size: 14px; }

#faq,
#products,
#how,
#about,
#main,
#contacts {
  scroll-margin-top: calc(var(--header) + 20px);
}
.faq { display: grid; gap: 8px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  scroll-margin-top: calc(var(--header) + 20px);
}
.faq summary {
  cursor: pointer;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.faq summary::-webkit-details-marker,
.faq summary::marker {
  display: none;
}
.faq summary::before {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-size: 14px 14px;
  mask-size: 14px 14px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transform: rotate(0deg);
  transition: transform 0.28s ease;
}
.faq details[open] summary::before {
  transform: rotate(90deg);
}
.faq details[open].faq-details--closing summary::before {
  transform: rotate(0deg);
}
.faq details[open].faq-details--closing > :not(summary) {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}
.faq details > :not(summary) {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition:
    max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    margin-top 0.32s ease;
}
.faq details[open] > :not(summary) {
  max-height: 48em;
  opacity: 1;
}
.faq p { color: var(--ink-soft); }
.faq details[open] > p {
  margin-top: 10px;
}
.faq details[open] > p + p {
  margin-top: 8px;
}
.faq ul {
  padding-left: 18px;
  color: var(--ink-soft);
  display: grid;
  gap: 6px;
}
.faq details[open] > ul {
  margin-top: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .faq summary::before,
  .faq details > :not(summary),
  .tg-announce__chev,
  .tg-announce__more-panel,
  .tg-announce__more-inner {
    transition: none;
  }
}
#software {
  scroll-margin-top: calc(var(--header) + 16px);
}
.section__head a,
.page-hero p a,
.hero__roles-text a { color: var(--field-dark); text-decoration: underline; text-underline-offset: 0.14em; }
.operator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
  align-items: start;
}
.operator-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}
.operator-card h3 {
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 18px;
}
.operator-card__label {
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.operator-card__label:first-of-type { margin-top: 0; }
.operator-card > p {
  color: var(--ink-soft);
}
.operator-card a { color: var(--field-dark); text-decoration: underline; }
.facts {
  display: grid;
  gap: 14px;
  margin: 0;
}
.facts > div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.facts > div:first-child {
  padding-top: 0;
  border-top: 0;
}
.facts dt {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}
.section > .container > .operator-card { max-width: 760px; }
.disclosure-copy {
  display: grid;
  gap: 32px;
  max-width: 760px;
  margin-top: 36px;
}
.disclosure-copy h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
  margin-bottom: 12px;
  scroll-margin-top: calc(var(--header) + 16px);
}
.disclosure-copy p,
.disclosure-copy li {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}
.disclosure-copy p + p { margin-top: 12px; }
.disclosure-copy ul {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.disclosure-copy a { color: var(--field-dark); text-decoration: underline; }

.split-contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 20px; }
.contact-card, .form, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
}
.contact-card a { color: var(--field-dark); font-weight: 750; }
.contact-list { display: grid; gap: 12px; margin-top: 16px; }
.contact-list div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.contact-list span { color: var(--muted); }

.form { display: grid; gap: 12px; }
.auth .form { background: transparent; border: 0; border-radius: 0; padding: 0; }
label span { display: block; font-size: 13px; font-weight: 750; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 12px;
}
textarea { min-height: 110px; resize: vertical; }
.choice { display: flex; gap: 8px; }
.choice label {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.role-pick {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#register-form > .role-pick + label {
  margin-top: calc(var(--lead-to-content) - 12px);
}
#register-form .role-card {
  padding-right: 16px;
}
.role-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 12px 40px 12px 16px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.role-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.role-card:has(input:checked) {
  border-color: var(--field);
  box-shadow: 0 0 0 3px rgba(27, 107, 67, 0.12);
}
.role-card:has(input:not(:checked)):hover {
  border-color: #b8c4bc;
}
.role-card:has(input:focus-visible) { outline: 2px solid var(--field); outline-offset: 3px; }
.role-card__head {
  grid-row: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 0;
}
.role-card__icon {
  flex: 0 0 48px;
  display: block;
  width: 48px;
  height: 48px;
  min-width: 48px;
  max-width: 48px;
  overflow: hidden;
  color: #1c1c1c;
}
.role-card__icon svg { display: block; width: 48px; height: 48px; }
.role-card__lottie { line-height: 0; pointer-events: none; }
.role-card__lottie svg { display: block; width: 48px; height: 48px; max-width: 48px; max-height: 48px; }
.role-card__copy {
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.role-card__copy strong {
  color: #1c1c1c;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}
.role-card span,
.role-card strong {
  margin: 0;
}
.role-card__copy span {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}
.role-card__arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--field);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}
.role-card__mark {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}
.role-card:has(input:checked) .role-card__mark {
  border-color: var(--field);
  background: var(--field);
  box-shadow: inset 0 0 0 3px #fff;
}
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
#register-form > .check { margin-top: 25px; }
#register-form > .check ~ .check { margin-top: 0; }
.check span { display: inline; min-width: 0; margin: 0; font-size: inherit; font-weight: inherit; }
.check a { color: var(--field-dark); font-size: inherit; font-weight: inherit; text-decoration: underline; }
.error {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.35;
  min-height: 36px;
  margin: 0;
}
#login-form > .error[role="alert"],
#register-form > .error[role="alert"],
#admin-login > .error[role="alert"] {
  display: flex;
  align-items: flex-end;
  min-height: 36px;
}
.success {
  display: none;
  background: #e8f6ee;
  border: 1px solid #b7dfc8;
  border-radius: 16px;
  padding: 16px;
}
.success.is-on { display: block; }
.auth .success { width: min(560px, 100%); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters button[aria-pressed="true"] { background: var(--field-deep); color: white; border-color: transparent; }

.page-hero { padding: 28px 0 0; }
.page-hero p:not(.crumbs) { max-width: 680px; }
.page-hero + .section {
  padding-top: var(--lead-to-content);
  padding-bottom: 56px;
}
.crumbs {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 12px;
}
.crumbs a {
  color: var(--field-dark);
  text-decoration: underline;
}

.auth-header--logo-only .header__inner { justify-content: flex-start; }
.hero.auth-hero {
  padding: 42px 0 0;
}
.auth-hero .btn { display: flex; width: min(480px, 100%); margin-top: 28px; }
.auth {
  padding: var(--lead-to-content) 0 64px;
}
.auth__card { width: min(480px, 100%); }
body:has(.auth-signup) { min-height: 100vh; display: flex; flex-direction: column; }
body:has(.auth-signup) > main { flex: 1; display: flex; flex-direction: column; }
body:has(.auth-signup) .auth { padding-bottom: 0; }
.auth-signup { margin-top: auto; padding: 28px 0 12px; }
.auth-signup p,
.auth-signup a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
}

.footer { background: var(--paper); color: var(--ink-soft); padding: 48px 0 40px; margin-top: 0; border-top: 1px solid var(--line); }
.footer .logo {
  width: fit-content;
  height: auto;
  gap: 16px;
}
.footer .logo__mark {
  width: 60px;
  height: 60px;
  flex-basis: 60px;
  border-radius: 18px;
}
.footer .logo__name {
  font-size: 36px;
}
.footer .logo small {
  font-size: 13px;
  margin-top: 3px;
  padding-left: 3px;
  gap: 8px;
}
.footer .logo small::before,
.footer .logo small::after {
  width: 17px;
}
.footer .logo__name,
.footer .logo small { color: var(--field-dark) !important; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--field-dark); }
.footer__grid { display: grid; grid-template-columns: minmax(280px, 1fr) auto; gap: 28px 32px; align-items: start; justify-content: space-between; }
.footer h3 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.footer__legal {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.footer__warn {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.footer__warn p { margin: 0; }
.footer__warn a { color: var(--field-dark); text-decoration: underline; }
.footer__note {
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.need-data {
  display: inline;
  padding: 0.04em 0.32em;
  background: #ffe8a3;
  color: #5a3d00;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(183, 121, 31, 0.28);
  font-weight: 650;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.need-data.need-data--block {
  display: block;
  padding: 12px 14px;
  line-height: 1.55;
  font-weight: 500;
  border-radius: 10px;
  -webkit-box-decoration-break: slice;
  box-decoration-break: slice;
}
  .header { background: var(--paper); }

@media (max-width: 980px) {
  .header__actions .account-menu { display: none; }
  .header__inner > .account-menu { display: block; }
  .header { background: var(--paper); backdrop-filter: none; }
  .hero__grid, .cards, .steps, .grid-2, .compliance, .split-contact, .band, .footer__grid, .advantage-list {
    grid-template-columns: 1fr;
  }
  .footer { padding: 36px 0 32px; }
  .footer__grid { gap: 28px; }
  .footer__warn {
    margin-top: 28px;
    padding-top: 22px;
  }
  .hero__grid {
    display: flex;
    flex-direction: column;
    gap: var(--lead-to-content);
  }
  .hero__column,
  .hero__calc {
    display: contents;
  }
  .hero__copy {
    order: 1;
  }
  .hero__showcase {
    order: 2;
    display: grid;
    grid-template-areas:
      "title"
      "phones"
      "lead";
    width: 100%;
    margin-top: 0;
    row-gap: var(--lead-to-content);
    column-gap: 0;
  }
  .hero__grid .calc {
    order: 3;
  }
  .hero__calc-cta {
    order: 4;
  }
  .hero__roles-copy {
    display: contents;
    max-width: none;
    padding: 0;
  }
  .hero__roles-title {
    grid-area: title;
    margin-bottom: 0;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 560;
    line-height: 1.05;
    letter-spacing: -0.03em;
  }
  .hero__roles-title__desk {
    display: none;
  }
  .hero__roles-title__mob {
    display: block;
  }
  .hero__roles-text {
    grid-area: lead;
    margin-top: 0;
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink-soft);
  }
  .hero__showcase .hero__mockup {
    grid-area: phones;
    order: unset;
    max-width: min(100%, 520px);
    padding: 0;
    justify-content: flex-start;
    gap: 12px;
  }
  .hero__mockup-img {
    flex: 0 0 calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2);
    max-width: none;
  }
  .borrow-page .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .borrow-page .hero__actions .btn {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
  .hero {
    padding-top: 32px;
    padding-bottom: 16px;
  }
  .hero.auth-hero {
    padding-top: 32px;
    padding-bottom: 0;
  }
  .section {
    padding: 48px 0;
  }
  main > .section:last-child {
    padding-bottom: 32px;
  }
  .section--tight {
    padding-top: 24px;
  }
  :root {
    --lead-to-content: 24px;
  }
  .page-hero { padding-top: 24px; }
  .page-hero + .section {
    padding-bottom: 40px;
  }
  .grid-2 {
    gap: 20px;
  }
  .band {
    align-items: start;
    padding: 28px 24px;
    gap: 20px;
  }
  .hero__aside {
    display: none;
  }
  .compliance { grid-template-columns: 1fr 1fr; }
  .header__inner {
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    row-gap: 0;
  }
  .logo {
    height: var(--header);
    flex: 0 1 auto;
  }
  .header__panel {
    display: grid;
    flex: 1 0 100%;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .header.is-open .header__panel {
    grid-template-rows: 1fr;
    border-bottom: none;
    position: relative;
  }
  .header.is-open .header__panel::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100vw;
    transform: translateX(-50%);
    border-bottom: 1px solid var(--line);
    pointer-events: none;
  }
  .header.is-overlay { border-bottom-color: transparent; }
  .header.is-overlay .header__panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    flex: none;
    padding: 0 20px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: none;
  }
  .header.is-overlay .header__panel-inner { min-height: min-content; }
  .header.is-overlay.is-open .header__panel { grid-template-rows: 1fr; }
  .header.is-overlay:not(.is-open) .header__panel { pointer-events: none; }
  .header__panel-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .header.is-open .header__panel-inner {
    opacity: 1;
    transform: none;
    padding-bottom: 16px;
  }
  .nav, .header__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }
  .nav { gap: 2px; }
  .header__actions { gap: 10px; }
  .header.is-open .nav a,
  .header.is-open .header__actions .btn {
    animation: menu-rise 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .header.is-open .nav a:nth-child(2) { animation-delay: 0.03s; }
  .header.is-open .nav a:nth-child(3) { animation-delay: 0.06s; }
  .header.is-open .nav a:nth-child(4) { animation-delay: 0.09s; }
  .header.is-open .nav a:nth-child(5) { animation-delay: 0.12s; }
  .header.is-open .header__actions .btn:nth-child(2) { animation-delay: 0.08s; }
  .nav a { padding: 6px 0; }
  .burger { display: inline-flex; }
  .header__inner > .nav,
  .header__inner > .header__actions {
    display: none;
  }
  .topbar__inner { display: none; }
}

@media (max-width: 640px) {
  .container { width: min(1160px, calc(100% - 28px)); }
  .header.is-overlay .header__panel { padding: 0 14px; }
  .compliance, .calc__result { grid-template-columns: 1fr; }
  .choice { flex-direction: column; }
  h1 { font-size: 38px; }
  .hero__lottie {
    transform: translateY(calc(-50% - 3px));
  }
  .section {
    padding: 40px 0;
  }
  main > .section:last-child {
    padding-bottom: 28px;
  }
  :root {
    --lead-to-content: 20px;
  }
  .page-hero { padding-top: 20px; }
  .page-hero + .section {
    padding-bottom: 32px;
  }
  .band {
    padding: 22px 18px;
    border-radius: 24px;
  }
}

@keyframes menu-rise {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
  .header__panel,
  .header__panel-inner,
  .burger__bars > span,
  .burger__bars > span:before,
  .burger__bars > span:after {
    transition: none;
  }
  .header.is-open .nav a,
  .header.is-open .header__actions .btn { animation: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.public-offers {
  --green: var(--field);
  --green-soft: rgba(27, 107, 67, 0.08);
  --surface: var(--card);
  --analytics-track: #e6ebe8;
}
.public-offers .borrower-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid var(--field);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: 800 13px/1.15 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.public-offers .borrower-outline-btn:hover { background: var(--green-soft); }
.public-offers .lender-offers-feed__filter-actions .borrower-outline-btn {
  font: 600 12px/1.35 var(--sans);
  letter-spacing: 0.04em;
}
.public-offers .lender-offers-feed__filters {
  margin: 0 0 18px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 248px;
  align-items: end;
  gap: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
}
.public-offers .lender-offers-feed__filter {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.public-offers .lender-offers-feed__filter-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
}
.public-offers .lender-offers-feed__range {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 12px minmax(72px, 1fr);
  gap: 8px;
  align-items: center;
}
.public-offers .lender-offers-feed__range em { font-style: normal; color: #8b978f; font-weight: 700; text-align: center; }
.public-offers .lender-offers-feed__bound {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(27, 107, 67, 0.08);
}
.public-offers .lender-offers-feed__bound b {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  text-transform: lowercase;
}
.public-offers .lender-offers-feed__bound input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 2.5em;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  appearance: textfield;
}
.public-offers .lender-offers-feed__bound input::placeholder { color: #a8b3ac; font-weight: 600; }
.public-offers .lender-offers-feed__bound input::-webkit-outer-spin-button,
.public-offers .lender-offers-feed__bound input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.public-offers .lender-offers-feed__filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  width: 248px;
  min-width: 0;
}
.public-offers .lender-offers-feed__filter-actions .borrower-outline-btn {
  display: flex;
  width: 100%;
  max-width: none;
  height: 42px;
  min-height: 42px;
  margin-inline: 0;
  padding: 0 12px;
  box-sizing: border-box;
}
.public-offers .lender-offers-feed__toolbar {
  margin: 0 0 14px;
  padding: 0 2px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 12px;
}
.public-offers .lender-offers-feed__toolbar p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.public-offers .lender-offers-feed__sort {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.public-offers .lender-offers-feed__sort .borrower-outline-btn {
  display: flex;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 44px;
  color: var(--field-dark);
}
.public-offers .lender-offers-feed__sort .borrower-outline-btn.is-on {
  background: var(--green-soft);
  border-color: var(--field);
  color: var(--field-dark);
}
.public-offers .lender-offers-feed__list { display: grid; gap: 12px; }
.public-offers .lender-offers-feed__card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 24, 48, 0.05);
  color: var(--ink);
}
.public-offers .lender-offers-feed__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.public-offers .lender-offers-feed__card-sum strong {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16em;
  font-size: clamp(26px, 7vw, 30px);
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}
.public-offers .lender-offers-feed__card-sum strong .byn-sign,
.public-offers .lender-offers-feed__stat b .byn-sign,
.public-offers .lender-offers-feed__stat small .byn-sign {
  display: inline-block;
  height: 0.72em;
  margin: 0 0 0.02em 0.11em;
  background-color: currentColor;
}
.public-offers .lender-offers-feed__card-rating {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.public-offers .lender-offers-feed__card-rating-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.public-offers .lender-offers-feed__card-rating-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.public-offers .lender-offers-feed__card-rating-value b {
  font-size: 15px;
  font-weight: 700;
}
.public-offers .lender-offers-feed__card-rule { height: 1px; background: #e6ebe8; }
.public-offers .lender-offers-feed__card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  align-items: stretch;
}
.public-offers .lender-offers-feed__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.public-offers .lender-offers-feed__stat-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1;
}
.public-offers .lender-offers-feed__stat:nth-child(1) { align-items: flex-start; text-align: left; }
.public-offers .lender-offers-feed__stat:nth-child(2) {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.public-offers .lender-offers-feed__stat:nth-child(3) { align-items: flex-end; text-align: right; }
.public-offers .lender-offers-feed__stat b {
  display: inline-flex;
  align-items: baseline;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.public-offers .lender-offers-feed__stat small {
  display: inline-flex;
  align-items: baseline;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.public-offers .lender-offers-feed__stat:nth-child(3) small { justify-content: flex-end; width: 100%; }
.public-offers .lender-offers-feed__bar {
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: var(--analytics-track);
  overflow: hidden;
}
.public-offers .lender-offers-feed__bar i { display: block; height: 100%; border-radius: inherit; background: var(--field); }
.public-offers .lender-offers-feed__bar i[data-rating-tone="high"] { background: var(--field); }
.public-offers .lender-offers-feed__bar i[data-rating-tone="mid"] { background: #e2a33a; }
.public-offers .lender-offers-feed__bar i[data-rating-tone="low"] { background: #e07a2f; }
.public-offers .lender-offers-feed__bar i[data-rating-tone="poor"] { background: #c9413d; }
.public-offers .lender-offers-feed__cta.role-card {
  border: 1.5px solid var(--field);
  border-radius: 12px;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .public-offers .lender-offers-feed__cta.role-card:hover {
    border-color: var(--field);
    background: var(--green-soft);
  }
}
@media (max-width: 1050px) {
  .public-offers .lender-offers-feed__filters {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .public-offers .lender-offers-feed__filter-actions {
    width: 100%;
  }
  .public-offers .lender-offers-feed__sort {
    grid-template-columns: 1fr;
  }
}
.public-offers .lender-offers-feed__empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.public-offers .lender-offers-feed__list > .lender-offers-feed__empty { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .public-offers .lender-offers-feed__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

.borrow-stack,
.home-offers-stack {
  display: grid;
  gap: var(--lead-to-content);
}

.borrow-stack > .section__head,
.home-offers-stack > .section__head {
  margin-bottom: 0;
}

.borrow-info-grid {
  margin-top: 0;
  align-items: stretch;
}

.borrow-info-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card);
}

.borrow-info-card__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--field-dark);
}

.borrow-info-card__title {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.borrow-info-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.borrow-info-card__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}

.borrow-info-card__list li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 8px;
  background-color: color-mix(in srgb, var(--field) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--field) 28%, var(--line));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2 6.4 11l6.1-6.6' stroke='%231b6b43' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.borrow-info-card__note,
.borrow-info-card__lead {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.borrow-info-card__foot {
  margin-top: auto;
  padding-top: 22px;
}

.borrow-info-card--cta .borrow-info-card__lead {
  margin-top: 0;
  flex: 1;
}

.borrow-info-card__foot .btn {
  width: 100%;
}
