/* Страница «Как клиент попадает в кабинет» */

.flowpage { background: var(--bg); }

.flowhead {
  background:
    radial-gradient(120% 130% at 82% -10%, rgba(19, 54, 195, .55) 0%, rgba(0, 8, 29, 0) 58%),
    radial-gradient(90% 120% at 8% 0%, rgba(0, 136, 255, .3) 0%, rgba(0, 8, 29, 0) 55%),
    var(--navy);
  color: #fff;
  padding: 18px 0 32px;
  border-bottom-left-radius: var(--r-xl);
  border-bottom-right-radius: var(--r-xl);
}
.flownav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.flownav__links { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.flownav__links a {
  font-size: 12.5px; color: rgba(255, 255, 255, .55);
  text-decoration: none; padding: 6px 11px; border-radius: 999px;
}
.flownav__links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.flownav__links a.is-active { color: #fff; background: rgba(255, 255, 255, .12); }

.flowhead__title { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 12px; max-width: 22ch; }
.flowhead__lead { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .6); max-width: 76ch; }

.flowmain { padding-bottom: 60px; }

.fsec { margin-top: 36px; }
.fsec__title { font-size: 19px; letter-spacing: -.01em; margin-bottom: 8px; }
.fsec__lead { font-size: 13.5px; line-height: 1.6; color: var(--muted); max-width: 82ch; margin-bottom: 18px; }
.fsec__lead code, .fstep__out { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

.fgrid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .fgrid { grid-template-columns: repeat(3, 1fr); } .fgrid--2 { grid-template-columns: repeat(2, 1fr); } .fgrid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fgrid--4 { grid-template-columns: repeat(4, 1fr); } }

.fcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 16px; box-shadow: var(--shadow);
}
.fcard__head { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.fcard__head .i { width: 17px; height: 17px; color: var(--blue); }
.fcard__note { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.fcard--form { border-color: #cfe4ff; }
.fcard--pay { border-color: #d9d2f5; }
.fcard--pay .fcard__head .i { color: #6d4fd8; }
.fcard--fiscal { border-color: #cfe9d8; }
.fcard--fiscal .fcard__head .i { color: var(--green); }
.fcard--muted { background: #fafbfd; }
.fcard--muted .fcard__head .i { color: #94a3b8; }

.flist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.flist li { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; flex-wrap: wrap; }
.flist__field { color: var(--muted); min-width: 78px; }
.flist__value { font-weight: 600; flex: 1 1 auto; word-break: break-word; }
.flist__req, .flist__opt {
  margin-left: auto; font-size: 10.5px; padding: 2px 6px; border-radius: 999px; white-space: nowrap;
}
.flist__req { background: #eaf4ff; color: #0b4f9e; }
.flist__opt { background: #f1f4f9; color: var(--muted); }

.fsteps { display: grid; gap: 10px; }
@media (min-width: 900px) { .fsteps { grid-template-columns: repeat(3, 1fr); } }
.fstep {
  display: flex; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 15px; box-shadow: var(--shadow);
}
.fstep__n {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: #eaf4ff; color: var(--blue); display: grid; place-items: center;
}
.fstep__n .i { width: 17px; height: 17px; }
.fstep__title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.fstep__title span {
  width: 18px; height: 18px; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 10.5px; display: grid; place-items: center; font-weight: 700;
}
.fstep__text { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 5px 0 8px; }
.fstep__out {
  display: inline-block; background: #f3f6fa; border-radius: 6px;
  padding: 3px 7px; color: var(--ink-2);
}

.fnote {
  display: flex; gap: 9px; align-items: flex-start;
  margin-top: 14px; font-size: 12.5px; line-height: 1.55; color: var(--muted);
}
.fnote .i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #9aa8bd; }
.fnote--accent {
  background: #f3f7fc; border: 1px solid #dfeaf9; border-radius: var(--r-m);
  padding: 13px 14px; color: var(--ink-2);
}
.fnote--accent .i { color: var(--blue); }
.fnote b { color: var(--ink); font-weight: 600; }

/* ── симуляция ── */

.fsec--demo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 22px; box-shadow: var(--shadow);
}
.simgrid { display: grid; gap: 16px; }
@media (min-width: 900px) { .simgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }

.simform { display: grid; gap: 11px; }
.simform__row { display: grid; gap: 11px; grid-template-columns: 1fr 1fr; }
.simform label { font-size: 11.5px; font-weight: 600; color: var(--ink-2); display: grid; gap: 5px; }
.simform input {
  border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 10px 11px; font: inherit; font-size: 13.5px; font-weight: 400; color: var(--ink);
  min-width: 0;
}
.simform input:focus { outline: 2px solid rgba(0, 136, 255, .3); border-color: var(--blue); }
.simform input:disabled { background: #f6f8fb; color: var(--muted); }
.simform__note { font-size: 11.5px; color: var(--muted); }

.simresult {
  background: #fafbfd; border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 16px; display: grid; gap: 16px;
}
.simempty {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  color: #9aa8bd; font-size: 13px; padding: 40px 0;
}
.rstep__label {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 8px;
}
.rcode {
  margin: 0; padding: 12px; border-radius: var(--r-m);
  background: var(--navy); color: #cfe4ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; line-height: 1.5;
  overflow-x: auto;
}
.rdeal { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.rdeal__row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 12px; font-size: 12.5px; border-bottom: 1px solid var(--line);
}
.rdeal__row:last-child { border-bottom: 0; }
.rdeal__row span { color: var(--muted); }
.rdeal__row b { font-weight: 600; text-align: right; word-break: break-all; }

.rlink { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 12px; }
.rlink code { font-size: 11.5px; word-break: break-all; flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.rlink__copy { background: none; border: 0; color: var(--blue); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rhint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.rnotifs { display: grid; gap: 8px; }
.rnotif { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 12px; }
.rnotif__ch { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.rnotif__ch .i { width: 14px; height: 14px; color: var(--blue); }
.rnotif__text { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.rnotif--telegram .rnotif__ch .i { color: #2aabee; }
.rnotif--email .rnotif__ch .i { color: #6d4fd8; }

@media (min-width: 720px) {
  .flowhead { padding: 22px 0 40px; }
  .flowhead__title { font-size: 38px; }
  .fsec { margin-top: 44px; }
  .fsec__title { font-size: 22px; }
}
