.brand,
body,
button,
input,
select,
textarea {
  font-family: 'SansOri', 'SansOriFallback', Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-trust strong,
.steps li > span {
  font-family: 'SansOri', 'SansOriFallback', Arial, sans-serif !important;
}

h1,
h2 {
  font-weight: 400;
}

h3,
h4,
h5,
h6 {
  font-weight: 700;
}

nav {
  font-family: 'SansOri', 'SansOriFallback', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: .045em;
}

.button {
  font-family: 'SansOri', 'SansOriFallback', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .025em;
}

.brand {
  gap: 0;
}

.brand-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

.footer-logo {
  width: 178px;
  border-radius: 2px;
}

.legal span {
  display: block;
}

.legal-owner {
  margin-bottom: 6px;
  color: #b9acb3;
}

.field select {
  width: 100%;
  border: 1px solid #ddd3d8;
  border-radius: 10px;
  padding: 13px 42px 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.65;
  outline: none;
  transition: .2s;
}

.field select:focus {
  border-color: var(--plum2);
  box-shadow: 0 0 0 3px rgba(128, 83, 106, .1);
}

.field .select2-container {
  display: block;
  width: 100% !important;
  font-size: 14px;
}

.field .select2-container .select2-selection--single {
  height: 52px;
  border: 1px solid #ddd3d8;
  border-radius: 10px;
  background: #fff;
  outline: 0;
  transition: .2s;
}

.field .select2-container--focus .select2-selection--single,
.field .select2-container--open .select2-selection--single {
  border-color: var(--plum2);
  box-shadow: 0 0 0 3px rgba(128, 83, 106, .1);
}

.field .select2-container .select2-selection--single .select2-selection__rendered {
  height: 50px;
  padding: 0 45px 0 14px;
  color: var(--ink);
  line-height: 50px;
}

.field .select2-container .select2-selection--single .select2-selection__placeholder {
  color: #8a8387;
}

.field .select2-container .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 12px;
  width: 24px;
  height: 50px;
}

.field .select2-container .select2-selection--single .select2-selection__arrow b {
  border-color: #665d63 transparent transparent;
  border-width: 5px 4px 0;
}

.field .select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #665d63;
  border-width: 0 4px 5px;
}

.select2-container--open {
  z-index: 110;
}

.select2-dropdown {
  overflow: hidden;
  border: 1px solid #ddd3d8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(63, 38, 52, .16);
}

.select2-container--open .select2-dropdown--below {
  margin-top: 6px;
  border-top: 1px solid #ddd3d8;
  border-radius: 10px;
}

.select2-container--open .select2-dropdown--above {
  margin-top: -6px;
  border-bottom: 1px solid #ddd3d8;
  border-radius: 10px;
}

.select2-search--dropdown {
  padding: 10px;
}

.select2-search--dropdown .select2-search__field {
  height: 42px;
  border: 1px solid #ddd3d8 !important;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ink);
  font: 14px 'SansOri', 'SansOriFallback', Arial, sans-serif;
  outline: 0;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: var(--plum2) !important;
  box-shadow: 0 0 0 3px rgba(128, 83, 106, .1);
}

.select2-results__options {
  padding: 5px;
}

.select2-results__option {
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--plum);
  color: #fff;
}

.select2-container--default .select2-results__option--selected {
  background: var(--rose);
  color: var(--plum);
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: #7c7378;
  font-size: 10px;
  line-height: 1.45;
}

.field input:user-invalid,
.field select:user-invalid {
  border-color: #a93352;
}

.hero-grid {
  grid-template-areas: "copy form";
  grid-template-columns: minmax(0, .95fr) minmax(420px, .75fr);
  gap: clamp(40px, 5vw, 72px);
}

.hero-copy {
  grid-area: copy;
}

.hero-form {
  grid-area: form;
  align-self: center;
  width: 100%;
  max-width: 560px;
  justify-self: end;
}

.hero-form .form-title h3 {
  margin-bottom: 8px;
  font-size: clamp(23px, 2.2vw, 30px);
}

.hero-form .form-title p {
  margin: 0 0 25px;
  color: #655e63;
  font-size: 14px;
  line-height: 1.55;
}

.application-visual {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.application-cta {
  margin: 26px 0 18px;
}

.form-copy > small {
  display: block;
}

.application .floating-card {
  color: var(--ink);
}

.benefit-grid-photos {
  grid-template-columns: repeat(3, 1fr);
}

.benefit-grid-photos article {
  padding: 0;
  overflow: hidden;
}

.benefit-grid-photos article > img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.benefit-body {
  padding: 27px;
}

.benefit-body h3 {
  margin-top: 18px;
}

.application-photo {
  position: relative;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.application-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.application-photo::after {
  position: absolute;
  inset: 50% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(34, 19, 29, .84));
}

.application-photo figcaption {
  position: absolute;
  z-index: 1;
  right: 34px;
  bottom: 30px;
  left: 34px;
  display: grid;
  color: #fff;
}

.application-photo figcaption strong {
  font-family: 'SansOri', 'SansOriFallback', Arial, sans-serif;
  font-size: 32px;
  line-height: 1.2;
}

.footer-links {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px !important;
  justify-content: normal !important;
}

.dialog.open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vh, 48px);
}

.dialog-card {
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: calc(100dvh - clamp(32px, 10vh, 96px));
  margin: 0;
  overflow: hidden;
}

.dialog-content {
  min-height: 0;
  padding-right: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.success-dialog-card {
  position: relative;
  width: min(560px, 100%);
  padding: 48px 42px 40px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(244, 229, 232, .95), transparent 42%),
    #fff;
  border: 1px solid rgba(128, 83, 106, .12);
  outline: none;
}

.success-dialog-card::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 230px;
  height: 230px;
  content: "";
  border: 45px solid rgba(128, 83, 106, .055);
  border-radius: 50%;
  pointer-events: none;
}

.success-icon {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--plum2), var(--plum));
  border: 9px solid #f4e5e8;
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(93, 57, 78, .23);
  animation: success-pop .55s cubic-bezier(.2, .9, .25, 1.25) both;
}

.success-icon::before,
.success-icon::after {
  position: absolute;
  inset: -16px;
  content: "";
  border: 1px solid rgba(128, 83, 106, .22);
  border-radius: 50%;
  animation: success-ring 1.8s ease-out .3s infinite;
}

.success-icon::after {
  inset: -25px;
  animation-delay: .7s;
}

.success-icon span {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.success-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--plum2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.success-dialog-card h2 {
  margin: 0 0 13px;
  color: #35252e;
  font-family: 'SansOri', 'SansOriFallback', Arial, sans-serif;
  font-size: clamp(34px, 6vw, 46px);
  line-height: 1.08;
}

.success-dialog-card > p {
  max-width: 430px;
  margin: 0 auto;
  color: #655e63;
  font-size: 16px;
  line-height: 1.65;
}

.success-next-step {
  display: grid;
  gap: 5px;
  margin: 25px 0 12px;
  padding: 17px 19px;
  color: #4e3b46;
  text-align: left;
  background: rgba(244, 229, 232, .58);
  border: 1px solid rgba(128, 83, 106, .13);
  border-radius: 14px;
}

.success-next-step strong {
  color: var(--plum);
  font-size: 13px;
}

.success-next-step span {
  font-size: 14px;
  line-height: 1.5;
}

.success-dialog-card .success-note {
  color: #887d83;
  font-size: 12px;
}

.success-button {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 21px;
  gap: 10px;
}

.success-confetti i {
  position: absolute;
  z-index: 0;
  width: 9px;
  height: 18px;
  background: #c898aa;
  border-radius: 3px;
  transform: rotate(24deg);
  animation: confetti-float 2.4s ease-in-out infinite alternate;
}

.success-confetti i:nth-child(1) { top: 42px; left: 52px; }
.success-confetti i:nth-child(2) { top: 92px; left: 92px; width: 7px; height: 7px; background: #b8cdb9; border-radius: 50%; animation-delay: -.7s; }
.success-confetti i:nth-child(3) { top: 46px; right: 62px; background: #d8b56e; transform: rotate(-28deg); animation-delay: -.35s; }
.success-confetti i:nth-child(4) { top: 112px; right: 86px; width: 8px; height: 8px; border-radius: 50%; animation-delay: -1s; }
.success-confetti i:nth-child(5) { top: 150px; left: 46px; height: 13px; background: #d8b56e; transform: rotate(-14deg); animation-delay: -.5s; }
.success-confetti i:nth-child(6) { top: 160px; right: 42px; height: 13px; background: #b8cdb9; transform: rotate(35deg); animation-delay: -1.2s; }

@keyframes success-pop {
  from { opacity: 0; transform: scale(.62) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes success-ring {
  0% { opacity: .75; transform: scale(.72); }
  100% { opacity: 0; transform: scale(1.25); }
}

@keyframes confetti-float {
  from { translate: 0 -4px; }
  to { translate: 0 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .success-icon,
  .success-icon::before,
  .success-icon::after,
  .success-confetti i {
    animation: none;
  }
}

@media (max-width: 600px) {
  .brand-logo {
    width: 145px;
  }

  .footer-logo {
    width: 165px;
  }

  .dialog.open {
    align-items: stretch;
    padding: 12px;
  }

  .dialog-card {
    max-height: calc(100dvh - 24px);
    padding: 28px 22px;
  }

  .dialog-content {
    padding-right: 5px;
  }

  .success-dialog-card {
    align-self: center;
    padding: 38px 21px 26px;
  }

  .success-icon {
    width: 78px;
    height: 78px;
    margin-bottom: 18px;
  }

  .success-dialog-card > p {
    font-size: 14px;
  }

  .success-confetti i:nth-child(1),
  .success-confetti i:nth-child(5) {
    left: 22px;
  }

  .success-confetti i:nth-child(3),
  .success-confetti i:nth-child(6) {
    right: 22px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-areas:
      "form"
      "copy";
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-form {
    width: min(100%, 620px);
    max-width: none;
    justify-self: center;
  }

  .application-visual {
    width: min(100%, 540px);
    justify-self: center;
  }

  .benefit-grid-photos {
    grid-template-columns: 1fr 1fr;
  }

  .application-photo {
    min-height: 520px;
  }
}

@media (max-width: 600px) {
  .benefit-grid-photos {
    grid-template-columns: 1fr;
  }

  .benefit-grid-photos article > img {
    height: 220px;
  }

  .application-photo {
    min-height: 480px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
