:root {
  --c-home-info: rgba(16, 137, 189, 0.92);
  --c-home-apply: rgba(214, 63, 63, 0.7);
  --c-home-cta-text: #f1f1f1;
  --c-home-orange-top: #df7a48;
  --c-home-orange: #c95f34;
  --c-home-gold-top: #d3a23f;
  --c-home-gold: #bc8928;
  --c-home-blue-top: #7899d1;
  --c-home-blue: #6285bc;
  --c-home-green-top: #7da458;
  --c-home-green: #688947;
  --c-home-card-1: rgba(92, 104, 160, 0.24);
  --c-home-card-2: rgba(255, 172, 60, 0.24);
  --c-home-card-3: rgba(108, 123, 93, 0.24);
  --c-home-card-ink: #212734;
  --c-home-dlg-title: #233143;
  --c-home-dlg-text: #5f6c7b;
  --c-home-dlg-bg: #f5f7fb;
  --c-home-dlg-shade: #1f2937;
}

.art-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.home-hero {
  position: relative;
  height: 450px;
  overflow: hidden;
  background: var(--c-header);
  color: var(--c-white);
  font-size: 11px;
  line-height: 1.6;
}

.home-hero__media,
.home-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero__img {
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
}

.home-hero__tiles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.home-hero__tile {
  position: absolute;
  display: block;
  background-repeat: no-repeat;
  backface-visibility: hidden;
  will-change: opacity, transform;
  animation-name: hero-tile-out;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.33, 0, 0.22, 1);
}

@keyframes hero-tile-out {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  58% {
    opacity: 0.42;
    transform: translate3d(calc(var(--tile-x, 0px) * 0.36), calc(var(--tile-y, 0px) * 0.36), 0) scale(0.96);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--tile-x, 0px), var(--tile-y, 0px), 0) scale(0.82);
  }
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--w-wrap);
  margin-inline: auto;
}

.home-hero__links {
  position: absolute;
  top: 0;
  inset-inline-start: 5%;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  padding-top: 1em;
}

.home-hero__cta {
  display: block;
  padding: 0 10px;
  color: var(--c-home-cta-text);
  font-weight: 700;
  line-height: 1.6;
}

.home-hero__cta:hover,
.home-hero__cta:focus-visible {
  color: var(--c-white);
}

.home-hero__cta--info {
  font-size: 1.8em;
  background: var(--c-home-info);
}

.home-hero__cta--apply {
  padding-block: 10px;
  font-size: 2em;
  background: var(--c-home-apply);
}

.home-hero__title {
  position: absolute;
  bottom: 0;
  inset-inline-start: 5%;
  width: 90%;
  display: flex;
  justify-content: flex-end;
  margin: 0;
  color: var(--c-white);
  font-size: inherit;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.home-hero__title span {
  display: block;
  max-width: 100%;
  padding: 0 10px;
  background: var(--c-label);
  font-size: 2.5em;
  text-wrap: balance;
}

:lang(ar) .home-hero__title span {
  padding-bottom: 0.4em;
}

.home-hero__steps {
  display: none;
}

.step-pill {
  --pill-glow: color-mix(in srgb, color-mix(in srgb, var(--pill-top), var(--pill)) 28%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  width: 100%;
  min-height: 2.5em;
  margin: 0;
  padding: 0;
  border: 1px solid var(--pill);
  border-radius: 99px;
  background: linear-gradient(180deg, var(--pill-top) 0%, var(--pill) 100%);
  box-shadow: inset 1px 1px 0 0 color-mix(in srgb, var(--c-white) 10%, transparent), inset 0 2em 15px 0 color-mix(in srgb, var(--c-white) 20%, transparent), 0 14px 28px var(--pill-glow);
  color: var(--c-white);
  font-size: 2em;
  font-weight: 700;
  line-height: 2.4em;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.step-pill__icon {
  flex: 0 0 auto;
  width: 1.2em;
  height: 1.2em;
}

.step-pill__icon g {
  stroke-width: 3.3;
}

.step-pill:hover,
.step-pill:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.step-pill--apply {
  --pill-top: var(--c-home-orange-top);
  --pill: var(--c-home-orange);
}

.step-pill--payment {
  --pill-top: var(--c-home-gold-top);
  --pill: var(--c-home-gold);
}

.step-pill--result {
  --pill-top: var(--c-home-blue-top);
  --pill: var(--c-home-blue);
}

.home-steps {
  display: block;
}

.step-card {
  position: relative;
  padding: 22px 18px 26px;
  color: var(--c-home-card-ink);
}

.step-card--apply {
  background: var(--c-home-card-1);
}

.step-card--payment {
  background: var(--c-home-card-2);
}

.step-card--result {
  background: var(--c-home-card-3);
}

.step-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.step-card__num {
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.step-card__title {
  margin: 0;
  color: var(--c-home-card-ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.step-card__art {
  display: block;
  width: 100%;
  height: 210px;
  margin: 0 0 20px;
  object-fit: contain;
  object-position: 50% 50%;
}

.step-card__text {
  margin: 0;
  color: color-mix(in srgb, var(--c-home-card-ink) 82%, transparent);
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0.002em;
}

.step-card__hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.step-card__hit:focus-visible {
  outline-offset: -5px;
}

.step-dialog {
  --btn-top: var(--c-home-green-top);
  --btn-bottom: var(--c-home-green);
  --accent: color-mix(in srgb, var(--btn-top), var(--btn-bottom));
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --btn-glow: color-mix(in srgb, var(--accent) 24%, transparent);
  --dlg-line: color-mix(in srgb, var(--c-home-dlg-shade) 8%, transparent);
  width: min(500px, 96vw);
  max-height: calc(100vh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  background: transparent;
  color: var(--c-home-dlg-title);
}

.step-dialog::backdrop {
  background: var(--c-overlay);
}

.step-dialog--payment {
  --btn-top: var(--c-home-gold-top);
  --btn-bottom: var(--c-home-gold);
}

.step-dialog--result {
  --btn-top: var(--c-home-blue-top);
  --btn-bottom: var(--c-home-blue);
}

.step-dialog__panel {
  position: relative;
  overflow: hidden;
  padding: 24px 22px 26px;
  border: 1px solid var(--dlg-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--c-white) 95%, transparent), transparent 28%),
    radial-gradient(circle at 86% 88%, color-mix(in srgb, var(--c-white) 55%, transparent), transparent 24%),
    linear-gradient(180deg, var(--c-white) 0%, var(--c-home-dlg-bg) 100%);
  box-shadow: 0 26px 56px color-mix(in srgb, var(--c-home-dlg-shade) 16%, transparent), 0 8px 18px var(--dlg-line);
  text-align: center;
}

.step-dialog__panel::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 22px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: var(--accent);
}

.step-dialog__panel::after {
  content: "";
  position: absolute;
  inset-inline-end: -50px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: var(--accent-soft);
  filter: blur(24px);
  pointer-events: none;
}

.step-dialog__close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-black) 92%, transparent);
  color: color-mix(in srgb, var(--c-white) 58%, transparent);
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease;
}

.step-dialog__close .ui-icon g {
  stroke-width: 1.5;
}

.step-dialog__close:hover,
.step-dialog__close:focus-visible {
  color: var(--c-white);
  transform: rotate(90deg);
}

.step-dialog__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 156px;
  margin: 0 auto 18px;
  border: 1px solid color-mix(in srgb, var(--c-home-dlg-shade) 6%, transparent);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--c-white) 0%, var(--c-home-dlg-bg) 100%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--c-white) 90%, transparent);
}

.step-dialog__art::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 84px;
  border-radius: 999px;
  background: var(--accent-soft);
  filter: blur(18px);
  transform: translate(-50%, -50%);
}

.step-dialog__art svg {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  color: var(--accent);
}

.step-dialog__eyebrow {
  position: relative;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.step-dialog__title {
  position: relative;
  margin: 0 0 14px;
  color: var(--c-home-dlg-title);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.step-dialog__text {
  position: relative;
  max-width: 100%;
  margin: 0 auto 24px;
  color: var(--c-home-dlg-text);
  font-size: 14px;
  line-height: 1.62;
}

.step-dialog__actions {
  position: relative;
  margin: 0;
}

.step-dialog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 214px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--btn-top) 0%, var(--btn-bottom) 100%);
  box-shadow: 0 14px 28px var(--btn-glow), inset 0 1px 0 color-mix(in srgb, var(--c-white) 20%, transparent);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.step-dialog__btn:hover,
.step-dialog__btn:focus-visible {
  color: var(--c-white);
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 34px var(--btn-glow), inset 0 1px 0 color-mix(in srgb, var(--c-white) 20%, transparent);
}

@media (min-width: 550px) {
  .step-card__text {
    text-align: justify;
  }

  .home-hero {
    height: 300px;
    font-size: 1.8vw;
  }

  .home-hero__img {
    object-position: 50% 100%;
  }

  .step-card {
    padding: 26px 22px 30px;
  }

  .step-card__top {
    gap: 16px;
    margin-bottom: 20px;
  }

  .step-card__num {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }

  .step-card__title {
    font-size: 24px;
  }

  .step-card__art {
    height: 250px;
    margin-bottom: 22px;
  }

  .step-card__text {
    font-size: 17px;
  }

  .step-dialog__panel {
    padding: 30px 30px 32px;
    border-radius: 30px;
  }

  .step-dialog__panel::before {
    inset-inline: 26px;
  }

  .step-dialog__panel::after {
    inset-inline-end: -70px;
    bottom: -100px;
    width: 240px;
    height: 240px;
  }

  .step-dialog__close {
    top: 12px;
    inset-inline-end: 12px;
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .step-dialog__art {
    min-height: 182px;
    margin-bottom: 22px;
    border-radius: 24px;
  }

  .step-dialog__art::before {
    width: 180px;
    height: 96px;
  }

  .step-dialog__art svg {
    width: 106px;
    height: 106px;
  }

  .step-dialog__eyebrow {
    font-size: 12px;
  }

  .step-dialog__title {
    font-size: 22px;
  }

  .step-dialog__text {
    max-width: 340px;
    font-size: 15px;
    line-height: 1.7;
  }

  .step-dialog__btn {
    min-width: 238px;
    min-height: 54px;
    border-radius: 18px;
    font-size: 15px;
  }
}

@media (min-width: 850px) {
  .home-hero {
    height: 475px;
    font-size: 16px;
  }

  .home-hero__img {
    object-position: 50% 50%;
  }

  .home-hero__cta--info {
    font-size: 1.7em;
  }

  .home-hero__title {
    top: 30%;
    bottom: auto;
    justify-content: flex-start;
    padding-top: 1em;
  }

  .home-hero__steps {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .home-hero__steps li {
    flex: 0 0 32%;
    margin: 16px 0;
  }

  .home-hero__steps li:nth-child(2) {
    flex-basis: 33%;
  }

  .home-steps {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-pill,
  .step-dialog__btn,
  .step-dialog__close {
    transition: none;
  }
}

@media (min-width: 850px) {
  .home-hero__inner {
    margin-inline: max(var(--w-gutter), calc((100% - var(--w-wrap)) / 2));
  }
}
