/* Flow page — differences and unique components only */

.page-flow .global-nav > .nav-item--simple > a[href="/flow/"] {
  color: var(--color-primary);
}

.flow-hero {
  background: radial-gradient(circle at 14% 18%, rgba(91, 181, 247, .24), transparent 34%),
    radial-gradient(circle at 88% 80%, rgba(21, 119, 222, .25), transparent 36%),
    linear-gradient(135deg, #031a31 0%, #063c7a 55%, #0b72db 100%);
}

.flow-hero::before {
  opacity: .18;
}

.flow-hero__inner {
  padding: 102px 0 90px;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 50px;
}

.flow-hero__title {
  font-size: clamp(2.5rem, 3.65vw, 3.45rem);
}

.flow-hero__lead {
  font-size: clamp(1rem, 1.55vw, 1.15rem);
}

.flow-hero__visual::before {
  inset: 26px 20px 40px 38px;
}

.flow-hero__frame--main {
  inset: 54px 0 32px 58px;
}

.flow-hero__frame--main::after {
  background: linear-gradient(180deg, transparent 56%, rgba(2,19,34,.32));
}

.flow-hero__frame--top {
  right: 20px;
  width: 43%;
}

.flow-hero__frame--bottom {
  width: 40%;
}

.flow-hero__route {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 17px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 17px;
  color: rgba(255,255,255,.86);
  background: rgba(3,30,53,.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 42px rgba(0,0,0,.24);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

.flow-hero__route-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #68c0ff;
  box-shadow: 0 0 0 5px rgba(104,192,255,.14);
}

.flow-hero__route i {
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(143,208,255,.35), #8fd0ff);
}

.flow-intro {
  padding: 112px 0 102px;
}

.flow-intro::before {
  content: "PROCESS";
}

.flow-journey {
  padding: 110px 0;
  color: #fff;
  background: radial-gradient(circle at 82% 12%, rgba(56,151,237,.18), transparent 34%),
    linear-gradient(145deg, #03182c, #062f5d 62%, #063c7a);
}

.flow-journey__inner {
  width: min(var(--container-width), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.55fr);
  gap: 72px;
  align-items: start;
}

.flow-journey__aside {
  position: sticky;
  top: 112px;
}

.flow-journey__aside .section__label {
  color: #8fd0ff;
}

.flow-journey__aside h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1.28;
  letter-spacing: -.045em;
}

.flow-journey__aside > p:not(.section__label) {
  margin: 22px 0 0;
  color: rgba(255,255,255,.7);
  line-height: 1.85;
}

.flow-journey__progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  color: #8fd0ff;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.flow-journey__progress i {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b72db, #8fd0ff);
}

.flow-steps {
  position: relative;
  margin: 0;
  padding: 0 0 0 40px;
  list-style: none;
  display: grid;
  gap: 20px;
}

.flow-steps::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 34px;
  bottom: 34px;
  width: 2px;
  background: linear-gradient(180deg, #208cef, rgba(143,208,255,.14));
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 29px 30px 27px;
  border: 1px solid rgba(143,208,255,.18);
  border-radius: 24px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 54px rgba(0,0,0,.15);
}

.flow-step::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 38px;
  width: 15px;
  height: 15px;
  border: 4px solid #0b72db;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 7px rgba(11,114,219,.15);
}

.flow-step--goal {
  border-color: rgba(134,206,255,.42);
  background: linear-gradient(135deg, rgba(11,114,219,.22), rgba(255,255,255,.07));
}

.flow-step__number {
  position: absolute;
  right: 22px;
  top: 13px;
  color: rgba(143,208,255,.13);
  font-size: 4.3rem;
  font-weight: 900;
  line-height: 1;
}

.flow-step__icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(143,208,255,.28);
  border-radius: 18px;
  color: #8fd0ff;
  background: rgba(6,60,122,.5);
}

.flow-step__icon svg {
  width: 28px;
  height: 28px;
}

.flow-step__body {
  position: relative;
  z-index: 2;
}

.flow-step__label {
  margin: 0 0 4px;
  color: #8fd0ff;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.flow-step h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.4;
}

.flow-step__body > p:not(.flow-step__label) {
  margin: 10px 0 0;
  color: rgba(255,255,255,.72);
  line-height: 1.78;
}

.flow-step ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.flow-step li {
  padding: 6px 11px;
  border: 1px solid rgba(143,208,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: rgba(3,24,44,.34);
  font-size: .75rem;
  font-weight: 700;
}

.flow-survey {
  padding: 112px 0;
  background: #f5faff;
}

.flow-survey__inner {
  width: min(var(--container-width), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 66px;
  align-items: center;
}

.flow-survey__visual {
  position: relative;
  min-height: 610px;
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 64px rgba(6,60,122,.16);
}

.flow-survey__visual img {
  width: 100%;
  height: 100%;
  min-height: 610px;
  object-fit: cover;
}

.flow-survey__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(2,19,34,.8));
}

.flow-survey__visual figcaption {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 26px;
  padding: 19px 21px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 17px;
  color: #fff;
  background: rgba(3,30,53,.7);
  backdrop-filter: blur(12px);
}

.flow-survey__visual strong,
.flow-survey__visual span {
  display: block;
}

.flow-survey__visual strong {
  font-size: 1.02rem;
}

.flow-survey__visual span {
  margin-top: 4px;
  color: rgba(255,255,255,.62);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.flow-survey__copy h2 {
  margin: 0;
  color: var(--color-primary-deep);
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  line-height: 1.25;
  letter-spacing: -.045em;
}

.flow-survey__lead {
  margin: 20px 0 0;
  color: #50677d;
  line-height: 1.9;
}

.flow-survey__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.flow-survey__grid article {
  min-height: 176px;
  padding: 21px 20px;
  border: 1px solid #d4e5f4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(6,60,122,.06);
}

.flow-survey__grid span {
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.flow-survey__grid h3 {
  margin: 8px 0 0;
  color: var(--color-primary-deep);
  font-size: 1.04rem;
}

.flow-survey__grid p {
  margin: 7px 0 0;
  color: var(--color-muted);
  font-size: .9rem;
  line-height: 1.68;
}

.flow-preparation {
  padding: 108px 0;
}

.flow-preparation__inner {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
  align-items: start;
}

.flow-preparation h2 {
  margin: 0;
  color: var(--color-primary-deep);
  font-size: clamp(2rem, 3.3vw, 3.15rem);
  line-height: 1.32;
  letter-spacing: -.045em;
}

.flow-preparation__content > p {
  margin: 3px 0 0;
  color: #50677d;
  line-height: 1.9;
}

.flow-preparation__content ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.flow-preparation__content li {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 58px;
  padding: 9px 17px 9px 10px;
  border: 1px solid #d8e7f5;
  border-radius: 15px;
  color: var(--color-primary-deep);
  background: linear-gradient(135deg, #fff, #f7fbff);
  font-weight: 800;
}

.flow-preparation__content li span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #063c7a, #0b72db);
  font-size: .7rem;
}

@media (max-width: 1050px) {
    .flow-hero__inner {
      grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
      gap: 34px;
    }

    .flow-hero__title {
      font-size: clamp(2.35rem, 4vw, 2.82rem);
    }

    .flow-hero__visual {
      min-height: 440px;
    }

    .flow-hero__frame--main {
      left: 42px;
    }

    .flow-journey__inner {
      grid-template-columns: 1fr;
      gap: 46px;
    }

    .flow-journey__aside {
      position: static;
      max-width: 680px;
    }
}

@media (max-width: 820px) {
    .flow-hero {
      min-height: auto;
    }

    .flow-hero__inner {
      grid-template-columns: 1fr;
      gap: 42px;
      padding: 78px 0 64px;
    }

    .flow-hero__title-line {
      width: auto;
      white-space: normal;
      text-wrap: balance;
    }

    .flow-hero__copy {
      max-width: 700px;
    }

    .flow-hero__visual {
      min-height: 460px;
    }

    .flow-intro__inner,
    .flow-survey__inner,
    .flow-preparation__inner {
      grid-template-columns: 1fr;
      gap: 38px;
    }

    .flow-intro {
      padding: 84px 0 78px;
    }

    .flow-journey,
    .flow-survey,
    .flow-preparation {
      padding: 82px 0;
    }

    .flow-survey__visual,
    .flow-survey__visual img {
      min-height: 480px;
    }
}

@media (max-width: 600px) {
    .flow-hero__inner,
    .flow-intro__inner,
    .flow-journey__inner,
    .flow-survey__inner,
    .flow-preparation__inner {
      width: calc(100% - 28px);
    }

    .flow-hero__title {
      font-size: clamp(2.05rem, 10vw, 2.72rem);
    }

    .flow-hero__lead {
      font-size: .98rem;
      line-height: 1.82;
    }

    .flow-hero__actions {
      display: grid;
    }

    .flow-hero__actions .btn {
      width: 100%;
    }

    .flow-hero__visual {
      min-height: 365px;
    }

    .flow-hero__visual::before {
      inset: 18px 10px 30px 20px;
      border-radius: 25px;
    }

    .flow-hero__frame--main {
      inset: 44px 0 24px 28px;
      border-radius: 22px;
    }

    .flow-hero__frame--top {
      right: 10px;
      width: 45%;
      height: 34%;
      border-radius: 15px;
    }

    .flow-hero__frame--bottom {
      width: 42%;
      height: 36%;
      border-radius: 15px;
    }

    .flow-hero__route {
      right: 8px;
      bottom: 8px;
      max-width: calc(100% - 30px);
      overflow: hidden;
      padding: 11px 12px;
      font-size: .62rem;
    }

    .flow-hero__route i {
      width: 8px;
    }

    .flow-intro__title,
    .flow-survey__copy h2,
    .flow-preparation h2,
    .flow-journey__aside h2 {
      font-size: clamp(1.85rem, 8.5vw, 2.45rem);
    }

    .flow-steps {
      padding-left: 25px;
    }

    .flow-steps::before {
      left: 7px;
    }

    .flow-step {
      grid-template-columns: 1fr;
      gap: 16px;
      padding: 24px 20px 22px;
    }

    .flow-step::before {
      left: -25px;
      top: 33px;
      width: 13px;
      height: 13px;
    }

    .flow-step__icon {
      width: 50px;
      height: 50px;
      border-radius: 15px;
    }

    .flow-step__number {
      right: 16px;
      top: 14px;
      font-size: 3.6rem;
    }

    .flow-step ul {
      display: grid;
    }

    .flow-survey__visual,
    .flow-survey__visual img {
      min-height: 390px;
    }

    .flow-survey__visual figcaption {
      left: 15px;
      right: 15px;
      bottom: 14px;
    }

    .flow-survey__grid {
      grid-template-columns: 1fr;
    }

    .flow-survey__grid article {
      min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .flow-hero__visual::before {
      transform: none;
    }
}
