﻿:root {
  --color-black: #111823;
  --color-black-dark: #0d1218;
  --color-white: #ffffff;
  --color-page: #f4f7f5;
  --color-surface: #ffffff;
  --color-surface-muted: #eef4f0;
  --color-surface-strong: #e4ece7;
  --color-border: rgba(17, 24, 35, 0.12);
  --color-border-strong: rgba(17, 24, 35, 0.2);
  --color-text-muted: #667085;
  --color-primary: #21b685;
  --color-primary-hover: #178f67;
  --color-primary-soft: #e8f7f1;
  --color-telegram: #229ed9;
  --color-telegram-hover: #1587bd;
  --color-telegram-soft: #e9f6fc;
  --font-main: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
  --container-width: 1120px;
  --container-padding: 24px;
}
/* Montserrat is served locally and split by unicode subset. `optional` avoids
   late font swaps, which prevents first-load text jumps on slower connections. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: optional;
  src: url("../fonts/JTUSjIg1_i6t8kCHKm459W1hyzbi-2c82b901.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: optional;
  src: url("../fonts/JTUSjIg1_i6t8kCHKm459Wdhyzbi-1e82e2bf.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: optional;
  src: url("../fonts/JTUSjIg1_i6t8kCHKm459Wlhyw-49e242af.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  font-synthesis-weight: auto;
  text-size-adjust: 100%;
  color: var(--color-black-dark);
  background-color: var(--color-page);
}
body.menu-open {
  overflow: hidden;
}
.section {
  width: 100%;
}
.section--white {
  background-color: rgba(255, 255, 255, 0.86);
}
.section--gray {
  background-color: var(--color-page);
}
.section--black {
  color: var(--color-white);
  background-color: var(--color-black-dark);
}
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
body.loan-page {
  min-height: 100vh;
  background-color: var(--color-page);
}
.loan-header {
  border-bottom: 1px solid var(--color-border);
  background-color: rgba(255, 255, 255, 0.94);
}
.loan-header__container {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(136px, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.loan-header__logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}
.loan-header__logo-img {
  display: block;
  width: 136px;
  height: auto;
}
.loan-header__link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.loan-header__link:hover,
.loan-header__link:focus-visible {
  color: var(--color-black);
  background-color: var(--color-white);
}
.loan-main {
  min-height: calc(100svh - 76px - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0;
}
.loan-shell {
  display: flex;
  justify-content: center;
}
#loan-request-embed {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--container-padding);
}
#loan-request-embed * {
  box-sizing: border-box;
}
#loan-request-embed .request-card {
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid rgba(17, 24, 35, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(17, 24, 35, 0.12);
}
#loan-request-embed .request-top {
  margin-bottom: 18px;
}
#loan-request-embed .request-title {
  margin: 0;
  color: var(--color-black);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
}
#loan-request-embed .request-subtitle {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
#loan-request-embed .form-section {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
#loan-request-embed .op-field {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
#loan-request-embed .op-field + .op-field {
  margin-top: 0;
}
#loan-request-embed .op-label {
  display: block;
  margin: 0 0 7px;
  color: var(--color-black);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}
#loan-request-embed .op-input {
  width: 100%;
  min-height: 52px;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 35, 0.14);
  background: var(--color-white);
  padding: 0 14px;
  color: var(--color-black);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
#loan-request-embed .op-input::placeholder {
  color: #94a3b8;
}
#loan-request-embed .op-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(33, 182, 133, 0.14);
}
#loan-request-embed .op-document-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
}
#loan-request-embed .op-field.is-error .op-input {
  border-color: #dc2626;
  background: #fff7f7;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.07);
}
#loan-request-embed .op-field.is-success .op-input {
  border-color: var(--color-primary);
  background: #fbfffd;
}
#loan-request-embed .op-note {
  min-height: 18px;
  margin-top: 4px;
  color: #dc2626;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
}
#loan-request-embed .choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#loan-request-embed .choice-btn {
  min-height: 52px;
  border: 1px solid rgba(17, 24, 35, 0.14);
  border-radius: 8px;
  background: var(--color-white);
  color: #334155;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
#loan-request-embed .choice-btn:hover,
#loan-request-embed .choice-btn:focus-visible {
  border-color: var(--color-primary);
}
#loan-request-embed .choice-btn.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: #1f513d;
  box-shadow: 0 0 0 4px rgba(33, 182, 133, 0.12);
}
#loan-request-embed .op-field.is-error .choice-btn {
  border-color: #efb5b5;
}
#loan-request-embed .form-error {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff4f4;
  border: 1px solid #efb5b5;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
#loan-request-embed .form-error.is-visible {
  display: block;
}
#loan-request-embed .consent-section {
  gap: 8px;
}
#loan-request-embed .consent-field .op-note {
  margin-left: 32px;
}
#loan-request-embed .consent-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(17, 24, 35, 0.14);
  border-radius: 8px;
  background: var(--color-white);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
#loan-request-embed .consent-check:hover,
#loan-request-embed .consent-check:focus-within {
  border-color: var(--color-primary);
}
#loan-request-embed .consent-input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}
#loan-request-embed .consent-text {
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}
#loan-request-embed .op-field.is-error .consent-check {
  border-color: #dc2626;
  background: #fff7f7;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.07);
}
#loan-request-embed .op-field.is-success .consent-check {
  border-color: var(--color-primary);
  background: #fbfffd;
}
#loan-request-embed .consent-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--color-primary-soft);
  color: #526375;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}
#loan-request-embed .consent-box a {
  color: #236c54;
  font-weight: 800;
  text-decoration: underline;
}
#loan-request-embed .submit-area {
  margin-top: 14px;
}
#loan-request-embed .submit-btn {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--color-primary);
  color: var(--color-black-dark);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 14px 28px rgba(33, 182, 133, 0.24);
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}
#loan-request-embed .submit-btn:hover,
#loan-request-embed .submit-btn:focus-visible {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
#loan-request-embed .submit-btn:disabled {
  opacity: 0.78;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
#loan-request-embed .submit-btn__spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(13, 18, 24, 0.32);
  border-top-color: var(--color-black-dark);
  display: none;
  animation: opSpin 0.8s linear infinite;
}
#loan-request-embed .submit-btn.is-loading .submit-btn__spinner {
  display: inline-block;
}
.op-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.op-loading.is-open {
  display: block;
}
.op-loading__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
}
.op-loading__dialog {
  position: relative;
  z-index: 1;
  width: calc(100% - 32px);
  max-width: 360px;
  margin: 14vh auto 0;
  background: var(--color-white);
  border-radius: 8px;
  padding: 22px 18px 18px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.op-loading__title {
  margin: 0 0 6px;
  color: var(--color-black);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 800;
}
.op-loading__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  word-break: break-word;
}
.op-loading__spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 4px solid rgba(33, 182, 133, 0.22);
  border-top-color: var(--color-primary);
  animation: opSpin 0.8s linear infinite;
}
.op-toast-region {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  width: min(392px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  pointer-events: none;
}
.op-toast {
  --toast-accent: var(--color-primary);
  --toast-accent-soft: rgba(33, 182, 133, 0.12);
  --toast-border: rgba(33, 182, 133, 0.22);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 30px;
  gap: 12px;
  align-items: center;
  padding: 14px 12px 16px 14px;
  border: 1px solid var(--toast-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 249, 0.96)),
    var(--color-white);
  color: var(--color-black);
  box-shadow:
    0 22px 60px rgba(17, 24, 35, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  pointer-events: auto;
  opacity: 0;
  transform: translate3d(16px, -10px, 0) scale(0.98);
  transition:
    opacity 0.24s ease,
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.op-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.op-toast.is-leaving {
  opacity: 0;
  transform: translate3d(12px, -8px, 0) scale(0.98);
}
.op-toast--success {
  --toast-accent: var(--color-primary);
  --toast-accent-soft: rgba(33, 182, 133, 0.12);
  --toast-border: rgba(33, 182, 133, 0.24);
}
.op-toast--error {
  --toast-accent: #dc2626;
  --toast-accent-soft: rgba(220, 38, 38, 0.1);
  --toast-border: rgba(220, 38, 38, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(255, 248, 248, 0.96)),
    var(--color-white);
}
.op-toast__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--toast-border);
  border-radius: 8px;
  background: var(--toast-accent-soft);
  color: var(--toast-accent);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}
.op-toast__content {
  min-width: 0;
}
.op-toast__title {
  margin: 0;
  color: var(--color-black);
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 800;
}
.op-toast__message {
  margin: 4px 0 0;
  color: var(--color-text-muted);
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 600;
}
.op-toast__close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #98a2b3;
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}
.op-toast__close:hover,
.op-toast__close:focus-visible {
  color: var(--color-black);
  background: rgba(17, 24, 35, 0.06);
  outline: none;
}
.op-toast__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--toast-accent), transparent);
  opacity: 0.78;
  transform-origin: left;
  animation: opToastProgress var(--toast-duration, 3600ms) linear forwards;
}
.loan-footer {
  border-top: 1px solid var(--color-border);
  background-color: rgba(255, 255, 255, 0.72);
}
.loan-footer__container {
  min-height: 130px;
  display: grid;
  gap: 16px;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 22px;
}
.loan-footer__brand {
  display: grid;
  gap: 4px;
}
.loan-footer__brand strong {
  color: var(--color-black);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
.loan-footer__brand span {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.loan-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.loan-footer__links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.loan-footer__links a:hover,
.loan-footer__links a:focus-visible {
  color: var(--color-black);
  background-color: var(--color-white);
  border-color: var(--color-border-strong);
}
@keyframes opSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes opToastProgress {
  to {
    transform: scaleX(0);
  }
}
@media (max-width: 640px) {
  body.loan-page {
    padding-bottom: 0;
  }
  .loan-header__container {
    min-height: 68px;
  }
  .loan-header__logo-img {
    width: 124px;
  }
  .loan-header__link {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 13px;
  }
  .loan-main {
    min-height: calc(100svh - 68px);
    align-items: flex-start;
    padding: 20px 0;
  }
  #loan-request-embed {
    padding: 0;
  }
  #loan-request-embed .request-card {
    padding: 16px;
  }
  #loan-request-embed .request-title {
    font-size: 24px;
  }
  #loan-request-embed .op-document-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .op-loading__dialog {
    margin-top: 12vh;
  }
  .op-toast-region {
    top: 12px;
    right: 12px;
    width: calc(100vw - 24px);
  }
  .op-toast {
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    padding: 12px 10px 15px 12px;
  }
  .op-toast__icon {
    width: 34px;
    height: 34px;
  }
}
@media (max-height: 760px) {
  .loan-main {
    align-items: flex-start;
    padding: 16px 0;
  }
  .loan-shell {
    align-items: start;
  }
  #loan-request-embed .request-card {
    padding: 14px;
  }
  #loan-request-embed .request-top {
    margin-bottom: 10px;
  }
  #loan-request-embed .request-title {
    font-size: 22px;
  }
  #loan-request-embed .request-subtitle,
  #loan-request-embed .op-note,
  #loan-request-embed .consent-text,
  #loan-request-embed .consent-box,
  #loan-request-embed .form-error {
    font-size: 12px;
  }
  #loan-request-embed .consent-check {
    padding: 8px 10px;
  }
  #loan-request-embed .form-section {
    gap: 8px;
    margin-top: 8px;
  }
  #loan-request-embed .op-label {
    margin-bottom: 5px;
    font-size: 13px;
  }
  #loan-request-embed .op-input,
  #loan-request-embed .choice-btn {
    min-height: 42px;
    font-size: 13px;
  }
  #loan-request-embed .submit-btn {
    min-height: 42px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

