:root {
    color-scheme: light;
    --fp-bg: transparent;
    --fp-card: #ffffff;
    --fp-text: #11151c;
    --fp-muted: #6c7480;
    --fp-line: #dce1e8;
    --fp-line-strong: #c7ced8;
    --fp-blue: #1f6ff2;
    --fp-blue-dark: #145ccf;
    --fp-blue-soft: #eaf2ff;
    --fp-danger: #c73535;
    --fp-danger-soft: #fff0f0;
    --fp-success: #1d7b4f;
    --fp-success-soft: #e8f7ef;
    --fp-radius: 18px;
    --fp-shadow: 0 20px 60px rgba(22, 34, 51, .08);
  }

  * { box-sizing: border-box; }

  html { min-width: 320px; background: transparent; }

  body {
    margin: 0;
    min-height: 0;
    color: var(--fp-text);
    background: transparent;
    font-family: Ubuntu, Inter, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  button, input, select, textarea { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }

  .fp-shell { min-height: 0; }

  .fp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0;
  }

  .fp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--fp-text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
  }

  .fp-brand__mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: var(--fp-blue);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  }

  .fp-header__label {
    color: var(--fp-muted);
    font-size: 13px;
    letter-spacing: .04em;
  }

  .fp-main {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 70px;
  }

  .fp-intro { max-width: 760px; margin-bottom: 34px; }
  .fp-intro h1 {
    max-width: 720px;
    margin: 9px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -.035em;
  }
  .fp-intro > p:last-child {
    max-width: 700px;
    margin: 0;
    color: var(--fp-muted);
    font-size: 17px;
    line-height: 1.55;
  }

  .fp-kicker {
    margin: 0;
    color: var(--fp-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
  }

  .fp-card {
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid rgba(199, 206, 216, .78);
    border-radius: var(--fp-radius);
    background: var(--fp-card);
    box-shadow: var(--fp-shadow);
  }

  .fp-card--error { border-color: rgba(199, 53, 53, .25); }
  .fp-card--error h2 { margin-top: 0; }

  .fp-progress { margin-bottom: 38px; }
  .fp-progress__bar {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7ebf1;
  }
  .fp-progress__bar span {
    display: block;
    width: 16.666%;
    height: 100%;
    border-radius: inherit;
    background: var(--fp-blue);
    transition: width .26s ease;
  }
  .fp-progress__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: var(--fp-muted);
    font-size: 12px;
  }
  #fpStepTitle { color: var(--fp-text); font-weight: 600; }

  .fp-alert {
    margin: -14px 0 26px;
    padding: 13px 15px;
    border: 1px solid rgba(199, 53, 53, .22);
    border-radius: 12px;
    color: var(--fp-danger);
    background: var(--fp-danger-soft);
    font-size: 14px;
    line-height: 1.45;
  }

  .fp-step { display: none; }
  .fp-step.is-active { display: block; animation: fpFade .2s ease; }
  @keyframes fpFade { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }

  .fp-step__heading {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 28px;
  }
  .fp-step__heading > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    color: var(--fp-blue);
    background: var(--fp-blue-soft);
    font-size: 13px;
    font-weight: 700;
  }
  .fp-step__heading h2 { margin: 1px 0 6px; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
  .fp-step__heading p { margin: 0; color: var(--fp-muted); font-size: 14px; line-height: 1.45; }

  .fp-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .fp-type-card {
    position: relative;
    display: flex;
    min-height: 170px;
    padding: 18px;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid var(--fp-line);
    border-radius: 15px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }
  .fp-type-card:hover { border-color: var(--fp-line-strong); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(20, 35, 55, .07); }
  .fp-type-card.is-selected { border-color: var(--fp-blue); box-shadow: 0 0 0 3px var(--fp-blue-soft); }
  .fp-type-card input { position: absolute; opacity: 0; pointer-events: none; }
  .fp-type-card__icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #f1f4f8; font-size: 20px; }
  .fp-type-card.is-selected .fp-type-card__icon { color: var(--fp-blue); background: var(--fp-blue-soft); }
  .fp-type-card strong { display: block; font-size: 16px; line-height: 1.25; }
  .fp-type-card small { display: block; margin-top: 6px; color: var(--fp-muted); font-size: 12px; line-height: 1.35; }

  .fp-grid { display: grid; gap: 18px; }
  .fp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-field { position: relative; display: block; min-width: 0; }
  .fp-field--wide { grid-column: 1 / -1; }
  .fp-field > span, .fp-field > label > span {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
  }
  .fp-field b, .fp-consent b { color: var(--fp-danger); }
  .fp-field input,
  .fp-field select,
  .fp-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 1px solid var(--fp-line);
    border-radius: 11px;
    outline: none;
    color: var(--fp-text);
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  }
  .fp-field textarea { min-height: 104px; resize: vertical; line-height: 1.45; }
  .fp-field input::placeholder, .fp-field textarea::placeholder { color: #a5abb4; }
  .fp-field input:focus, .fp-field select:focus, .fp-field textarea:focus {
    border-color: var(--fp-blue);
    box-shadow: 0 0 0 3px var(--fp-blue-soft);
  }
  .fp-field.is-error input,
  .fp-field.is-error select,
  .fp-field.is-error textarea { border-color: var(--fp-danger); background: #fffafa; }
  .fp-field > small:not(.fp-field__error) { display: block; margin-top: 6px; color: var(--fp-muted); font-size: 11px; line-height: 1.4; }
  .fp-field__error { display: none; margin-top: 6px; color: var(--fp-danger); font-size: 11px; line-height: 1.35; }
  .fp-field.is-error .fp-field__error, .fp-field__error.is-visible { display: block; }
  .fp-field__counter { position: absolute; right: 10px; bottom: 9px; color: #a2a8b1; font-size: 10px; pointer-events: none; }


  .fp-company-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .fp-company-input__button {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--fp-line);
    border-radius: 11px;
    color: var(--fp-blue-dark);
    background: var(--fp-blue-soft);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }
  .fp-company-input__button:hover { border-color: var(--fp-blue); }
  .fp-company-input__button:disabled { cursor: wait; opacity: .65; }
  .fp-company-hint { display: block; margin-top: 7px; color: var(--fp-muted); font-size: 11px; line-height: 1.4; }
  .fp-company-status {
    margin-top: 9px;
    padding: 10px 12px;
    border: 1px solid var(--fp-line);
    border-radius: 10px;
    color: var(--fp-muted);
    background: #f8fafc;
    font-size: 12px;
  }
  .fp-company-status.is-loading::before {
    content: '';
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 7px;
    border: 2px solid #cbd5e1;
    border-top-color: var(--fp-blue);
    border-radius: 50%;
    vertical-align: -2px;
    animation: fpSpin .8s linear infinite;
  }
  .fp-company-results {
    display: grid;
    gap: 8px;
    max-height: 360px;
    margin-top: 9px;
    overflow: auto;
  }
  .fp-company-result {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--fp-line);
    border-radius: 11px;
    text-align: left;
    color: var(--fp-text);
    background: #fff;
    cursor: pointer;
  }
  .fp-company-result:hover, .fp-company-result:focus { border-color: var(--fp-blue); box-shadow: 0 0 0 3px var(--fp-blue-soft); outline: none; }
  .fp-company-result__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .fp-company-result strong { display: block; font-size: 13px; line-height: 1.35; }
  .fp-company-result small { display: block; margin-top: 4px; color: var(--fp-muted); font-size: 11px; line-height: 1.4; }
  .fp-company-result__badge { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: var(--fp-blue-dark); background: var(--fp-blue-soft); font-size: 10px; font-weight: 700; }
  .fp-company-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 9px;
    padding: 11px 12px;
    border: 1px solid #b9d2ff;
    border-radius: 11px;
    background: #f3f7ff;
  }
  .fp-company-selected strong, .fp-company-selected small { display: block; }
  .fp-company-selected strong { font-size: 12px; }
  .fp-company-selected small { margin-top: 3px; color: var(--fp-muted); font-size: 10px; }
  .fp-company-selected button { padding: 0; border: 0; color: var(--fp-blue-dark); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; white-space: nowrap; }

  .fp-category-list { display: grid; gap: 10px; margin-bottom: 12px; }
  .fp-category-group { padding: 12px; border: 1px solid var(--fp-line); border-radius: 12px; }
  .fp-category-group__title { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
  .fp-category-options { display: flex; flex-wrap: wrap; gap: 8px; }
  .fp-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--fp-line);
    border-radius: 999px;
    color: #3d4652;
    background: #fafbfc;
    cursor: pointer;
    font-size: 12px;
    user-select: none;
  }
  .fp-chip input { position: absolute; opacity: 0; pointer-events: none; }
  .fp-chip.is-selected { border-color: var(--fp-blue); color: var(--fp-blue-dark); background: var(--fp-blue-soft); }
  .fp-category-empty { padding: 15px; border: 1px dashed var(--fp-line-strong); border-radius: 12px; color: var(--fp-muted); font-size: 13px; }

  .fp-type-specific {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 14px;
    background: #f7f9fc;
  }
  .fp-check-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 48px;
    padding: 12px;
    border: 1px solid var(--fp-line);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.35;
  }
  .fp-check-field input { width: 18px; height: 18px; margin: 0; accent-color: var(--fp-blue); }

  .fp-upload {
    margin: 20px 0;
    padding: 18px;
    border: 1px dashed var(--fp-line-strong);
    border-radius: 14px;
    background: #fbfcfe;
  }
  .fp-upload__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .fp-upload__heading strong { display: block; margin-bottom: 4px; font-size: 14px; }
  .fp-upload__heading span { display: block; color: var(--fp-muted); font-size: 11px; line-height: 1.4; }
  .fp-file-list { display: grid; gap: 8px; margin-top: 14px; }
  .fp-file {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--fp-line);
    border-radius: 10px;
    background: #fff;
  }
  .fp-file strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .fp-file small { display: block; margin-top: 3px; color: var(--fp-muted); font-size: 10px; }
  .fp-file button { border: 0; color: var(--fp-danger); background: transparent; cursor: pointer; font-size: 12px; }

  .fp-review { display: grid; gap: 12px; margin-bottom: 24px; }
  .fp-review__item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--fp-line); }
  .fp-review__item span { color: var(--fp-muted); font-size: 12px; }
  .fp-review__item strong { font-size: 13px; font-weight: 600; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
  .fp-consent { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; font-size: 13px; line-height: 1.5; }
  .fp-consent input { width: 19px; height: 19px; margin-top: 1px; accent-color: var(--fp-blue); flex: 0 0 auto; }
  .fp-consent a { color: var(--fp-blue); }
  .fp-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

  .fp-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--fp-line);
  }
  .fp-actions__spacer { flex: 1 1 auto; }
  .fp-button {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 17px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, transform .16s ease, opacity .16s ease;
  }
  .fp-button:active { transform: translateY(1px); }
  .fp-button:disabled { opacity: .55; cursor: wait; }
  .fp-button--primary { color: #fff; background: var(--fp-blue); }
  .fp-button--primary:hover { background: var(--fp-blue-dark); }
  .fp-button--secondary { border-color: var(--fp-line); color: var(--fp-text); background: #fff; }
  .fp-button--secondary:hover { border-color: var(--fp-line-strong); background: #f8fafc; }

  .fp-submit-state, .fp-success { text-align: center; }
  .fp-submit-state h2, .fp-success h2 { margin: 18px 0 8px; font-size: 28px; }
  .fp-submit-state > p, .fp-success > p { color: var(--fp-muted); }
  .fp-loader {
    width: 34px;
    height: 34px;
    margin: 0 auto 12px;
    border: 3px solid #dfe7f5;
    border-top-color: var(--fp-blue);
    border-radius: 50%;
    animation: fpSpin .8s linear infinite;
  }
  @keyframes fpSpin { to { transform: rotate(360deg); } }
  .fp-success__icon { display: grid; width: 52px; height: 52px; margin: 0 auto 18px; place-items: center; border-radius: 50%; color: var(--fp-success); background: var(--fp-success-soft); font-size: 26px; font-weight: 700; }
  .fp-success strong { display: inline-block; margin: 4px 0 8px; padding: 11px 16px; border-radius: 10px; color: var(--fp-blue-dark); background: var(--fp-blue-soft); font-size: 18px; letter-spacing: .03em; }

  .fp-upload-progress { max-width: 560px; margin: 24px auto 0; }
  .fp-upload-progress > div { height: 7px; overflow: hidden; border-radius: 999px; background: #e5eaf1; }
  .fp-upload-progress > div span { display: block; width: 0; height: 100%; background: var(--fp-blue); transition: width .2s ease; }
  .fp-upload-progress p { color: var(--fp-muted); font-size: 12px; }

  .fp-footer { padding: 0 20px 28px; color: #9299a3; text-align: center; font-size: 11px; }

  [hidden] { display: none !important; }

  @media (max-width: 760px) {
    .fp-company-input { grid-template-columns: 1fr; }
    .fp-company-input__button { width: 100%; }
    .fp-company-selected { align-items: flex-start; flex-direction: column; }
    .fp-header, .fp-main { width: min(100% - 24px, 900px); }
    .fp-header { padding: 16px 0; }
    .fp-main { padding-top: 14px; }
    .fp-intro { margin-bottom: 24px; }
    .fp-intro h1 { font-size: clamp(32px, 11vw, 48px); }
    .fp-intro > p:last-child { font-size: 15px; }
    .fp-card { padding: 22px 16px; border-radius: 15px; }
    .fp-type-grid, .fp-grid--2, .fp-type-specific { grid-template-columns: 1fr; }
    .fp-type-card { min-height: 128px; }
    .fp-step__heading { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
    .fp-step__heading > span { width: 42px; height: 42px; border-radius: 12px; }
    .fp-step__heading h2 { font-size: 23px; }
    .fp-upload__heading { align-items: flex-start; flex-direction: column; }
    .fp-review__item { grid-template-columns: 1fr; gap: 5px; }
    .fp-actions { position: sticky; bottom: 0; z-index: 4; margin: 28px -16px -22px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); }
    .fp-button { min-height: 46px; }
  }

  @media (max-width: 440px) {
    .fp-header__label { display: none; }
    .fp-progress__meta { font-size: 11px; }
    .fp-actions .fp-button { flex: 1 1 0; padding-inline: 12px; }
    .fp-actions__spacer { display: none; }
  }


  /* FRINO Partners 2.2.3 — исправление выбора вариантов */
  .fp-section-gap { margin-top: 24px; }
  .fp-category-list--compact { max-height: 330px; overflow: auto; padding-right: 6px; }
  .fp-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0 12px; }
  .fp-choice-grid--small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fp-choice-stack { display: grid; gap: 8px; margin-top: 10px; }
  .fp-choice {
    position: relative;
    display: flex;
    min-height: 44px;
    padding: 10px 12px;
    align-items: center;
    border: 1px solid var(--fp-line);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
  }
  .fp-choice:hover { border-color: var(--fp-line-strong); background: #f8fbff; }
  .fp-choice.is-selected { border-color: var(--fp-blue); background: var(--fp-blue-soft); box-shadow: 0 0 0 1px rgba(35,111,235,.08); }
  .fp-choice input { position: absolute; opacity: 0; pointer-events: none; }
  .fp-choice span { font-size: 13px; font-weight: 600; line-height: 1.25; }
  .fp-subcard { margin-top: 24px; padding: 20px; border: 1px solid var(--fp-line); border-radius: 15px; background: #fafbfd; }
  .fp-subcard--accent { border-color: #c9dafa; background: linear-gradient(180deg, #f7faff 0%, #fbfdff 100%); }
  .fp-subcard__heading { display: flex; margin-bottom: 16px; align-items: flex-start; justify-content: space-between; gap: 16px; }
  .fp-subcard__heading strong { display: block; font-size: 16px; }
  .fp-subcard__heading span { display: block; margin-top: 4px; color: var(--fp-muted); font-size: 12px; }
  .fp-details { margin-top: 20px; border: 1px solid var(--fp-line); border-radius: 13px; background: #fff; }
  .fp-details summary { padding: 15px 17px; cursor: pointer; font-size: 13px; font-weight: 700; }
  .fp-details[open] summary { border-bottom: 1px solid var(--fp-line); }
  .fp-details > .fp-field { padding: 16px; }
  .fp-check-field--boxed { min-height: 48px; padding: 12px 14px; border: 1px solid var(--fp-line); border-radius: 11px; background: #fff; align-self: end; }
  .fp-review--compact { margin-top: 24px; padding: 18px; border: 1px solid var(--fp-line); border-radius: 14px; background: #fafbfd; }
  .fp-review__heading { display: flex; margin-bottom: 10px; align-items: baseline; justify-content: space-between; gap: 12px; }
  .fp-review__heading strong { font-size: 15px; }
  .fp-review__heading span { color: var(--fp-muted); font-size: 11px; }
  .fp-review--compact .fp-review__item { grid-template-columns: minmax(120px, .6fr) minmax(0, 1.8fr) auto; align-items: center; }
  .fp-review__item button { border: 0; padding: 4px 0; color: var(--fp-blue); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }

  @media (max-width: 900px) {
    .fp-choice-grid, .fp-choice-grid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 760px) {
    .fp-choice-grid, .fp-choice-grid--small { grid-template-columns: 1fr; }
    .fp-category-list--compact { max-height: 280px; }
    .fp-subcard { padding: 16px; }
    .fp-review__heading { align-items: flex-start; flex-direction: column; }
    .fp-review--compact .fp-review__item { grid-template-columns: 1fr; }
  }


  /* FRINO Partners 2.2.5 — активное состояние без галочек */
  .fp-chip.is-selected,
  .fp-choice.is-selected {
    border-color: var(--fp-blue);
    color: var(--fp-blue-dark);
    background: var(--fp-blue-soft);
    box-shadow: 0 0 0 2px rgba(35, 111, 235, .10);
  }


  /* FRINO Partners 2.2.6 — компактные справочники и умные подсказки */
  .fp-step[data-step="2"] > .fp-field + .fp-field { margin-top: 20px; }

  .fp-category-scroll {
    position: relative;
    margin-bottom: 9px;
    border-radius: 12px;
  }
  .fp-category-list { gap: 7px; margin-bottom: 0; }
  .fp-category-list--compact {
    max-height: 252px;
    padding: 0 8px 44px 0;
    overflow-y: scroll;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: #8b929b #eef1f5;
  }
  .fp-category-list--compact::-webkit-scrollbar { width: 11px; }
  .fp-category-list--compact::-webkit-scrollbar-track { border-radius: 999px; background: #eef1f5; }
  .fp-category-list--compact::-webkit-scrollbar-thumb { border: 2px solid #eef1f5; border-radius: 999px; background: #8b929b; }
  .fp-category-group { padding: 9px 10px; border-radius: 10px; }
  .fp-category-group__title { margin: 0 0 7px; font-size: 12px; }
  .fp-category-options { gap: 6px; }
  .fp-chip { min-height: 30px; padding: 5px 9px; font-size: 11.5px; }

  .fp-category-scroll::after {
    content: '';
    position: absolute;
    z-index: 1;
    right: 12px;
    bottom: 0;
    left: 0;
    height: 58px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.96) 58%, #fff 100%);
    pointer-events: none;
    transition: opacity .16s ease;
  }
  .fp-category-scroll.is-at-end::after,
  .fp-category-scroll:not(.is-scrollable)::after { opacity: 0; }

  .fp-scroll-hint {
    position: absolute;
    z-index: 3;
    right: 50%;
    bottom: 8px;
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid #c6d8f7;
    border-radius: 999px;
    color: var(--fp-blue-dark);
    background: rgba(245,249,255,.97);
    box-shadow: 0 7px 18px rgba(31,111,242,.12);
    transform: translateX(50%);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }
  .fp-scroll-hint span { display: inline-block; margin-right: 5px; animation: fpHintDown 1.2s ease-in-out infinite; }
  @keyframes fpHintDown { 0%,100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }

  #fpSpecializationChoices {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 8px 0 9px;
  }
  #fpSpecializationChoices .fp-choice {
    min-height: 34px;
    padding: 7px 10px;
    flex: 0 1 auto;
    border-radius: 999px;
  }
  #fpSpecializationChoices .fp-choice span { font-size: 12px; font-weight: 600; }

  .fp-step[data-step="2"] input[name="customCategories"],
  .fp-step[data-step="2"] input[name="customSpecializations"] {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 12.5px;
  }

  .fp-taxonomy-suggestions {
    display: grid;
    gap: 4px;
    max-height: 260px;
    margin-top: 7px;
    padding: 6px;
    overflow-y: auto;
    border: 1px solid #bfd3f6;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(20,42,75,.12);
  }
  .fp-taxonomy-suggestions__heading {
    padding: 4px 7px 3px;
    color: var(--fp-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .fp-taxonomy-suggestion {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: 100%;
    padding: 9px 10px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    text-align: left;
    color: var(--fp-text);
    background: #f8fafc;
    cursor: pointer;
  }
  .fp-taxonomy-suggestion:hover,
  .fp-taxonomy-suggestion:focus { border-color: #a9c7f8; background: var(--fp-blue-soft); outline: none; }
  .fp-taxonomy-suggestion em,
  .fp-taxonomy-suggestion strong,
  .fp-taxonomy-suggestion small { display: block; }
  .fp-taxonomy-suggestion em { margin-bottom: 2px; color: var(--fp-blue-dark); font-size: 9px; font-style: normal; font-weight: 700; text-transform: uppercase; }
  .fp-taxonomy-suggestion strong { font-size: 12px; line-height: 1.25; }
  .fp-taxonomy-suggestion small { margin-top: 2px; color: var(--fp-muted); font-size: 10px; }
  .fp-taxonomy-suggestion > b { color: var(--fp-blue-dark); font-size: 10px; white-space: nowrap; }
  .fp-taxonomy-empty { padding: 10px 11px; color: var(--fp-muted); font-size: 11px; line-height: 1.4; }

  .fp-chip.is-suggested,
  .fp-choice.is-suggested { animation: fpSuggestedPulse .9s ease; }
  @keyframes fpSuggestedPulse {
    0%,100% { box-shadow: 0 0 0 2px rgba(35,111,235,.10); }
    45% { box-shadow: 0 0 0 6px rgba(35,111,235,.18); }
  }

  @media (max-width: 760px) {
    .fp-category-list--compact { max-height: 230px; }
    .fp-scroll-hint { max-width: calc(100% - 44px); overflow: hidden; text-overflow: ellipsis; }
    #fpSpecializationChoices { gap: 6px; }
    #fpSpecializationChoices .fp-choice { min-height: 32px; padding: 6px 9px; }
  }


  /* FRINO Partners 2.2.7 — компактные интервалы второго шага */
  .fp-step[data-step="2"] > .fp-field + .fp-field {
    margin-top: 14px;
  }

  .fp-step[data-step="2"] > .fp-grid {
    margin-top: 16px;
    gap: 14px;
  }

  .fp-step[data-step="2"] > .fp-grid.fp-section-gap {
    margin-top: 18px;
  }

  .fp-step[data-step="2"] .fp-choice-stack {
    gap: 6px;
    margin-top: 7px;
  }

  .fp-step[data-step="2"] .fp-choice-stack .fp-choice {
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 10px;
  }

  .fp-step[data-step="2"] .fp-choice-stack .fp-choice span {
    font-size: 12.5px;
    line-height: 1.2;
  }

  .fp-step[data-step="2"] input[name="customSpecializations"] {
    margin-bottom: 0;
  }

  @media (max-width: 760px) {
    .fp-step[data-step="2"] > .fp-grid {
      margin-top: 14px;
      gap: 12px;
    }

    .fp-step[data-step="2"] .fp-choice-stack .fp-choice {
      min-height: 38px;
      padding: 7px 10px;
    }
  }

  /* FRINO Partners 5.1.1 — WordPress embed cleanup */
  .fp-header,
  .fp-footer {
    display: none !important;
  }

  .fp-shell {
    min-height: auto;
    background: transparent;
  }

  .fp-main {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 0 0 28px;
  }

  .fp-intro {
    max-width: 760px;
    margin: 0 0 26px;
  }

  @media (max-width: 760px) {
    .fp-main {
      width: min(900px, calc(100% - 24px));
      padding-bottom: 22px;
    }

    .fp-intro {
      margin-bottom: 20px;
    }
  }

/* FRINO Partners 5.1.2 — интеграция в страницу FRINO */
html, body, .fp-shell { background: transparent !important; }
.fp-header, .fp-footer { display: none !important; }
body, .fp-shell { min-height: 0 !important; }
.fp-main {
  width: min(1180px, 100%) !important;
  margin: 0 auto !important;
  padding: 0 0 20px !important;
}
.fp-intro {
  max-width: 820px !important;
  margin: 0 0 24px !important;
}
.fp-intro h1 {
  margin-top: 7px !important;
  margin-bottom: 12px !important;
}
.fp-intro > p:last-of-type { margin-bottom: 0 !important; }
.fp-crmd-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--fp-blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.fp-crmd-link:hover {
  color: var(--fp-blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fp-card { box-shadow: 0 12px 36px rgba(22,34,51,.055) !important; }
@media (max-width: 760px) {
  .fp-main { width: 100% !important; padding: 0 0 14px !important; }
  .fp-intro { margin-bottom: 18px !important; }
  .fp-crmd-link { margin-top: 10px; font-size: 13px; }
}

/* FRINO Partners 5.1.5 — фиксированный вводный блок */
.fp-intro > p:not(.fp-kicker) {
  max-width: 900px;
  margin: 0 0 9px;
  color: var(--fp-muted);
  font-size: 16px;
  line-height: 1.48;
}
.fp-intro > p:not(.fp-kicker):last-of-type {
  margin-bottom: 0;
}

/* FRINO Partners 5.1.6 — компактный вводный блок */
.fp-intro {
  max-width: 900px !important;
  margin-bottom: 20px !important;
}
.fp-intro h1 {
  max-width: 780px !important;
  margin: 6px 0 12px !important;
  font-size: clamp(42px, 4.4vw, 58px) !important;
  line-height: 1.00 !important;
}
.fp-intro > p:not(.fp-kicker) {
  max-width: 880px !important;
  margin: 0 0 7px !important;
  font-size: 15px !important;
  line-height: 1.42 !important;
}
.fp-intro .fp-privacy-note {
  color: var(--fp-text) !important;
  font-weight: 500;
}
.fp-crmd-link {
  margin-top: 6px !important;
}

/* FRINO Partners 5.1.7 — компактное единое описание */
.fp-intro {
  max-width: 980px !important;
  margin-bottom: 16px !important;
}
.fp-intro h1 {
  max-width: 820px !important;
  margin: 5px 0 10px !important;
}
.fp-intro > p:not(.fp-kicker) {
  max-width: 960px !important;
  margin: 0 0 5px !important;
  color: var(--fp-text) !important;
  font-size: 14px !important;
  line-height: 1.36 !important;
  font-weight: 400 !important;
}
.fp-intro > p:not(.fp-kicker):last-of-type {
  margin-bottom: 0 !important;
  color: var(--fp-text) !important;
  font-weight: 400 !important;
}
.fp-crmd-link {
  margin-top: 5px !important;
  font-size: 13px !important;
}

/* FRINO Partners 5.1.8 — форма без вводного блока */
.fp-intro,
.fp-kicker,
.fp-crmd-link {
  display: none !important;
}
.fp-main {
  padding-top: 0 !important;
}

/* FRINO Partners 5.1.9 — утверждённая структура первого шага */
.fp-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.fp-step[data-step="1"] .fp-grid--2 {
  gap: 14px 16px;
}
.fp-step[data-step="1"] .fp-section-gap {
  margin-top: 16px;
}
@media (max-width: 760px) {
  .fp-type-grid {
    grid-template-columns: 1fr !important;
  }
}


/* FRINO Partners 5.2.0 — восстановленная согласованная форма */
.fp-directions .fp-help {
  display: block;
  margin: 4px 0 10px;
  color: var(--fp-muted);
  font-size: 12px;
  line-height: 1.35;
}
.fp-selected-directions {
  display: grid;
  gap: 7px;
  margin-bottom: 8px;
}
.fp-direction-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--fp-blue);
  border-radius: 10px;
  background: var(--fp-blue-soft);
}
.fp-direction-card > div {
  min-width: 0;
  flex: 1 1 auto;
}
.fp-direction-card strong {
  display: block;
  color: var(--fp-blue-dark);
  font-size: 13px;
  line-height: 1.25;
}
.fp-direction-card small {
  display: block;
  margin-top: 2px;
  color: var(--fp-muted);
  font-size: 10px;
  line-height: 1.25;
}
.fp-direction-card button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  color: var(--fp-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.fp-directions-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 7px;
}
.fp-directions-toolbar span {
  color: var(--fp-muted);
  font-size: 10px;
}
.fp-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fp-blue);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.fp-text-button--danger { color: #a13a3a; }
.fp-all-categories {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  background: #fff;
}
.fp-choice-grid--hidden-helper {
  margin-top: 10px;
}
.fp-compact-grid .fp-choice-stack { gap: 6px; }
.fp-compact-grid .fp-choice { min-height: 38px; padding: 7px 10px; }
.fp-terms-card { margin-top: 16px; }
.fp-subcard__heading--actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.fp-button--small {
  min-height: 36px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
}
.fp-manager-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--fp-line);
}
.fp-inline-validation {
  display: block;
  min-height: 14px;
  margin-top: 4px;
  font-size: 10px;
  color: var(--fp-muted);
}
.fp-inline-validation.is-warning { color: #a76b13; }
.fp-details--inline { margin-top: 10px; }
.fp-choice-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 760px) {
  .fp-directions-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .fp-choice-grid--2 { grid-template-columns: 1fr; }
  .fp-subcard__heading--actions {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* FRINO Partners 5.2.2 — селекты, поиск направлений и быстрые очистки */

/* Стрелка select с нормальным внутренним отступом от правого края */
.fp-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 46px !important;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #11151c 50%),
    linear-gradient(135deg, #11151c 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Поле поиска с крестиком справа */
.fp-clearable-input {
  position: relative;
}
.fp-clearable-input input {
  padding-right: 48px !important;
}
.fp-input-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: #f1f4f8;
  color: #66707e;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.fp-input-clear:hover {
  color: var(--fp-text);
  background: #e8edf4;
}
.fp-input-clear[hidden] {
  display: none !important;
}

/* Блок выбранных направлений + очистить всё */
.fp-selected-directions-wrap {
  margin: 0 0 10px;
}
.fp-selected-directions-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 6px;
}
.fp-selected-directions-toolbar > span {
  color: var(--fp-muted);
  font-size: 11px;
  font-weight: 600;
}
.fp-clear-all-directions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7a838f;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.fp-clear-all-directions > span {
  font-size: 18px;
  line-height: 1;
}
.fp-clear-all-directions:hover {
  color: var(--fp-danger);
}
.fp-clear-all-directions[hidden] {
  display: none !important;
}

/* Более аккуратные внутренние отступы поиска и выпадающих подсказок */
.fp-directions .fp-clearable-input input {
  min-height: 50px;
  padding-left: 14px !important;
}
.fp-taxonomy-suggestions {
  margin-top: 7px !important;
  padding: 9px !important;
}
.fp-taxonomy-suggestions__heading {
  padding: 2px 4px 7px !important;
}
.fp-taxonomy-suggestion {
  padding: 10px 11px !important;
}
.fp-taxonomy-suggestion > span {
  padding-right: 12px;
}

@media (max-width: 760px) {
  .fp-field select {
    padding-right: 44px !important;
    background-position:
      calc(100% - 21px) 50%,
      calc(100% - 15px) 50%;
  }
}

/* FRINO Partners 5.2.3 — публичное название / бренд */
.fp-step[data-step="1"] input[name="brandName"] + small {
  display: block;
  margin-top: 5px;
  color: var(--fp-muted);
  font-size: 10px;
  line-height: 1.3;
}


/* FRINO Partners 5.2.4 — оформление восстановлено из последней версии базы подрядчиков */
/* FRINO Partners 2.5.0 — анкета компаний */

  body {
    font-size: 16px;
  }

  .fp-main {
    width: min(940px, calc(100% - 40px));
  }

  .fp-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-type-card {
    min-height: 142px;
  }

  .fp-step__heading h2 {
    font-size: 30px;
  }

  .fp-step__heading p {
    font-size: 15px;
  }

  .fp-field > span,
  .fp-field > label > span {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
  }

  .fp-field > span em {
    color: var(--fp-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
  }

  .fp-field input,
  .fp-field select,
  .fp-field textarea {
    font-size: 15px;
  }

  .fp-field select,
  .fp-dynamic-card .fp-field select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 42px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%23545d69' d='M5.4 7.3a1 1 0 0 1 1.4 0L10 10.5l3.2-3.2a1 1 0 1 1 1.4 1.4l-3.9 3.9a1 1 0 0 1-1.4 0L5.4 8.7a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
  }

  .fp-choice {
    font-weight: 400;
  }

  .fp-choice span,
  .fp-step[data-step="2"] .fp-choice-stack .fp-choice span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
  }

  .fp-subcard__heading strong,
  .fp-dynamic-section__heading strong,
  .fp-dynamic-card__heading strong {
    font-size: 16px;
    font-weight: 750;
  }

  .fp-subcard__heading span,
  .fp-dynamic-section__heading span,
  .fp-dynamic-card__heading span {
    font-size: 12px;
  }

  .fp-company-manual {
    display: inline-flex;
    margin-top: 9px;
    padding: 0;
    border: 0;
    color: var(--fp-blue-dark);
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
  }

  .fp-company-manual:hover {
    text-decoration: underline;
  }

  .fp-company-selected.is-manual {
    border-color: #cbd4df;
    background: #f7f9fc;
  }

  .fp-step[data-step="2"] > .fp-grid,
  .fp-step[data-step="2"] > .fp-grid.fp-section-gap {
    margin-top: 18px;
    gap: 16px;
  }

  .fp-step[data-step="2"] .fp-conditional-field {
    margin-top: 16px;
  }

  .fp-step[data-step="2"] .fp-work-options,
  .fp-step[data-step="2"] .fp-delivery-field {
    margin-top: 18px;
  }

  .fp-designer-terms {
    margin-top: 24px !important;
  }

  .fp-designer-terms #fpDesignerTermsDetails,
  .fp-designer-terms #fpDesignerDiscussion {
    margin-top: 16px;
  }

  .fp-terms-grid {
    margin-top: 16px;
    gap: 16px;
  }

  .fp-terms-comment {
    margin-top: 18px;
  }

  .fp-terms-comment textarea {
    min-height: 92px;
  }

  .fp-primary-person-fields {
    margin-top: 14px;
  }

  .fp-contact-grid {
    margin-top: 16px;
  }

  .fp-messenger-toggles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
  }

  .fp-messenger-toggles .fp-check-field {
    min-height: 44px;
    margin: 0;
    padding: 9px 11px;
  }

  .fp-messenger-toggles .fp-check-field span {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
  }

  .fp-messenger-field input.is-synced {
    color: #3d4b5d;
    background: #f5f8fc;
  }

  .fp-messenger-status {
    display: block !important;
    margin-top: 6px !important;
    color: var(--fp-muted) !important;
    font-size: 11px !important;
    font-weight: 600;
  }

  .fp-messenger-status.is-ready {
    color: var(--fp-success) !important;
  }

  .fp-messenger-status.is-warning {
    color: #a56814 !important;
  }

  .fp-messenger-note {
    margin: 11px 0 0;
    color: var(--fp-muted);
    font-size: 11px;
    line-height: 1.45;
  }

  .fp-dynamic-card .fp-messenger-toggles {
    grid-column: 1 / -1;
  }

  .fp-dynamic-card .fp-messenger-field {
    min-width: 0;
  }

  .fp-step[data-step="3"] > .fp-subcard + .fp-subcard {
    margin-top: 18px;
  }

  .fp-step[data-step="3"] .fp-grid {
    gap: 16px;
  }

  .fp-details--compact {
    margin-top: 14px;
  }

  .fp-legal-note {
    font-size: 12px;
    line-height: 1.5;
  }

  @media (max-width: 760px) {
    .fp-main {
      width: min(100% - 24px, 940px);
    }

    .fp-type-grid,
    .fp-grid--2,
    .fp-messenger-toggles {
      grid-template-columns: 1fr;
    }

    .fp-type-card {
      min-height: 118px;
    }

    .fp-field > span,
    .fp-field > label > span {
      font-size: 13.5px;
    }

    .fp-choice span,
    .fp-step[data-step="2"] .fp-choice-stack .fp-choice span {
      font-size: 13.5px;
    }

    .fp-step[data-step="2"] > .fp-grid,
    .fp-step[data-step="2"] > .fp-grid.fp-section-gap {
      margin-top: 16px;
      gap: 12px;
    }

    .fp-step[data-step="3"] .fp-grid {
      gap: 12px;
    }
  }

/* Финальные коррекции для WordPress-версии */
.fp-field input,
.fp-field select,
.fp-field textarea {
  font-weight: 400 !important;
}

/* Выборы не выглядят жирными */
.fp-choice,
.fp-choice span,
.fp-step[data-step="2"] .fp-choice-stack .fp-choice span {
  font-weight: 400 !important;
}

/* Заголовки полей остаются акцентом, значения — обычным начертанием */
.fp-field > span,
.fp-field > label > span {
  font-weight: 600 !important;
}

/* Единая светлая системная тема для выпадающих списков */
.fp-field select,
.fp-dynamic-card .fp-field select,
.fp-field select option,
.fp-dynamic-card .fp-field select option {
  color-scheme: light !important;
  color: var(--fp-text) !important;
  background-color: #fff !important;
  font-weight: 400 !important;
}

/* Старая аккуратная SVG-стрелка вместо составной CSS-стрелки */
.fp-field select,
.fp-dynamic-card .fp-field select {
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-right: 46px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%23545d69' d='M5.4 7.3a1 1 0 0 1 1.4 0L10 10.5l3.2-3.2a1 1 0 1 1 1.4 1.4l-3.9 3.9a1 1 0 0 1-1.4 0L5.4 8.7a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  background-size: 14px !important;
}

/* Условия дизайнеров — интервалы из последней согласованной версии */
.fp-designer-terms {
  margin-top: 24px !important;
}
.fp-designer-terms #fpDesignerTermsDetails,
.fp-designer-terms #fpDesignerDiscussion {
  margin-top: 16px !important;
}
.fp-terms-grid {
  margin-top: 16px !important;
  gap: 16px !important;
}
.fp-terms-comment {
  margin-top: 18px !important;
}

/* На всякий случай исключаем старую составную стрелку */
.fp-field select {
  background-color: #fff !important;
}


/* FRINO Partners 5.2.5 — скидка клиенту и вознаграждение дизайнера разделены */
.fp-discount-reward-relation {
  margin-top: 2px;
}
.fp-discount-reward-relation > small:not(.fp-field__error) {
  margin-top: 6px;
  color: var(--fp-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}


/* FRINO Partners 5.2.6 — способ выплаты и комиссии */
.fp-card-fee-fields {
  margin-top: 2px;
  padding: 14px;
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  background: #f8fafc;
}
.fp-card-fee-fields > span {
  margin-bottom: 10px !important;
}
.fp-card-fee-fields .fp-grid {
  gap: 14px !important;
}


/* FRINO Partners 5.2.7 — множественные способы выплаты */
.fp-payout-methods > small:first-of-type {
  display: block;
  margin: 3px 0 8px;
  color: var(--fp-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}


/* FRINO Partners 5.2.8 — свой вариант агентского вознаграждения */
.fp-custom-agency-rate {
  display: block;
  margin-top: 8px;
}
.fp-custom-agency-rate > span {
  display: block;
  margin-bottom: 5px;
  color: var(--fp-muted);
  font-size: 11px;
  font-weight: 400;
}
.fp-custom-agency-rate[hidden] {
  display: none !important;
}


/* FRINO Partners 5.2.9 — накопительное агентское вознаграждение */
.fp-progressive-agency-rate {
  display: block;
  margin-top: 8px;
}
.fp-progressive-agency-rate > span {
  display: block;
  margin-bottom: 5px;
  color: var(--fp-muted);
  font-size: 11px;
  font-weight: 400;
}
.fp-progressive-agency-rate > small {
  display: block;
  margin-top: 5px;
  color: var(--fp-muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
}
.fp-progressive-agency-rate[hidden] {
  display: none !important;
}


/* FRINO Partners 5.3.1 — комиссия без отдельного поля размера */
.fp-card-fee-fields .fp-field > span em {
  color: var(--fp-muted);
  font-size: .88em;
  font-style: normal;
  font-weight: 400;
}


/* FRINO Partners 5.3.2 — комиссия: срок удержания + ручной размер */
.fp-card-fee-fields input[name="cardTransferFeeRate"] + small {
  display: block;
  margin-top: 5px;
  color: var(--fp-muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
}


/* FRINO Partners 5.3.3 — связь скидки с вознаграждением рядом со скидкой клиенту */
.fp-discount-reward-relation {
  align-self: start;
  margin-top: 0 !important;
}
.fp-discount-reward-relation > small:not(.fp-field__error) {
  display: block;
  margin-top: 5px;
  color: var(--fp-muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
}


/* FRINO Partners 5.3.4 — компактный блок комиссии */
.fp-card-fee-note {
  display: block;
  margin: 3px 0 11px;
  color: var(--fp-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}
.fp-card-fee-fields input[name="cardTransferFeeRate"] + small {
  display: block;
  margin-top: 5px;
  color: var(--fp-muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
}


/* FRINO Partners 5.4.0 — структура бизнеса, география и контакты */
.fp-business-structure {
  display: grid;
  gap: 16px;
}
.fp-business-structure .fp-help {
  display: block;
  margin: 3px 0 8px;
  color: var(--fp-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}
.fp-business-structure .fp-choice,
.fp-business-structure .fp-choice span {
  font-weight: 400 !important;
}
.fp-business-structure .fp-choice {
  min-height: 42px;
}

.fp-regions-field[hidden] {
  display: none !important;
}

#fpMainGeographyCustom[hidden] {
  display: none !important;
}
#fpMainGeographyCustom:not([hidden]) {
  margin-top: 8px;
}

.fp-main-phone-field {
  margin-top: 10px;
  margin-bottom: 10px;
}
.fp-messenger-same-grid {
  margin-top: 6px;
  margin-bottom: 12px;
}
.fp-messenger-same-grid .fp-check-field--boxed {
  min-height: 48px;
  padding: 10px 12px;
}
.fp-messenger-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--fp-blue);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
.fp-messenger-link[hidden] {
  display: none !important;
}
.fp-inline-validation.is-warning {
  color: #b45309;
}


/* FRINO Partners 5.4.2 — только согласованные правки */

/* Поле городов/регионов не прилипает к географии и следующему блоку */
.fp-regions-field:not([hidden]) {
  display: block !important;
  margin-top: 18px !important;
  margin-bottom: 22px !important;
}

/* После удаления лишних блоков "Формат работы" держим компактным */
.fp-business-structure {
  margin-top: 4px !important;
  gap: 0 !important;
}

/* Контактный блок */
.fp-main-phone-field {
  margin-top: 14px !important;
  margin-bottom: 12px !important;
}
.fp-messenger-same-grid {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  row-gap: 12px !important;
}

/* Согласие визуально отделено от материалов */
.fp-consent {
  margin-top: 18px !important;
  margin-bottom: 14px !important;
  padding-top: 2px;
}

/* Служебные WhatsApp/MAX-подписи и ссылки больше не используются */
.fp-messenger-link,
.fp-inline-validation {
  display: none !important;
}

/* На третьем шаге компактнее структура компании */
.fp-company-structure-card {
  margin-bottom: 14px !important;
}


/* FRINO Partners 5.4.3 — точечные правки шагов 2–3 */

/* Нормальный отступ перед "Формат работы" */
.fp-business-structure {
  margin-top: 22px !important;
  margin-bottom: 14px !important;
}
.fp-business-structure .fp-help {
  display: block;
  margin-top: 5px;
  margin-bottom: 10px;
}

/* Структура компании теперь на втором шаге */
.fp-company-structure-step2 {
  margin-top: 4px;
  margin-bottom: 18px;
}

/* Поле другого города/филиала */
.fp-contact-branch-custom:not([hidden]) {
  display: block !important;
  margin-top: 10px;
  margin-bottom: 2px;
}

/* Чекбоксы WhatsApp / MAX строго по вертикальному центру */
.fp-messenger-same-grid .fp-check-field--boxed {
  display: flex !important;
  align-items: center !important;
  min-height: 58px;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
.fp-messenger-same-grid .fp-check-field--boxed input[type="checkbox"] {
  flex: 0 0 auto;
  align-self: center;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.fp-messenger-same-grid .fp-check-field--boxed > span {
  display: flex;
  align-items: center;
  min-height: 24px;
  line-height: 1.3;
}

/* После удаления материалов согласие не требует большого верхнего отступа */
.fp-consent {
  margin-top: 14px !important;
}



/* FRINO Partners 5.4.9 — иконки Telegram и MAX */
.fp-directory-preview-head {
  margin: 18px 0 10px;
  color: #697386;
  font-size: 12px;
  font-weight: 400;
}
.fp-directory-card {
  overflow: hidden;
  border: 1px solid #e1e5ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 35, 52, .05);
}
.fp-directory-row {
  display: grid;
  align-items: center;
}
.fp-directory-row--top {
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 18px;
  min-height: 92px;
  padding: 16px 20px;
}
.fp-directory-brand {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.fp-directory-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, #11c489 0%, #00b977 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
}
.fp-directory-name {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.fp-directory-name strong {
  overflow: hidden;
  color: #15181d;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-directory-name span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 400;
}
.fp-directory-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}
.fp-directory-status,
.fp-directory-score,
.fp-directory-rate {
  display: inline-flex;
  min-height: 34px;
  padding: 7px 11px;
  align-items: center;
  gap: 6px;
  border: 1px solid #e1e5ea;
  border-radius: 11px;
  background: #fff;
  color: #333941;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.fp-directory-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
}
.fp-directory-score svg,
.fp-directory-rate svg {
  width: 17px;
  height: 17px;
}
.fp-directory-score--up { color: #b9bec7; }
.fp-directory-score--down { color: #ff714f; }
.fp-directory-rate { color: #7b9df0; }
.fp-directory-score b,
.fp-directory-rate b {
  color: #20242a;
  font-size: 12px;
  font-weight: 600;
}
.fp-directory-menu {
  padding: 0 0 2px 6px;
  color: #111827;
  font-size: 18px;
  letter-spacing: 3px;
}
.fp-directory-row--tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 54px;
  padding: 11px 20px;
  border-top: 1px solid #e8ebef;
  border-bottom: 1px solid #e8ebef;
  background: #fafafa;
}
.fp-directory-tag {
  display: inline-flex;
  min-height: 30px;
  padding: 5px 12px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
  color: #4c5159;
  font-size: 11px;
  font-weight: 400;
}
.fp-directory-tag--more,
.fp-directory-tag--empty { color: #8a919c; }
.fp-directory-row--contacts {
  grid-template-columns: minmax(180px, .9fr) minmax(130px, .8fr) minmax(210px, 1.2fr) minmax(170px, .9fr);
  gap: 14px;
  min-height: 70px;
  padding: 12px 20px;
}
.fp-directory-socials {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}
.fp-directory-social {
  display: inline-flex;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.fp-directory-social svg { width: 18px; height: 18px; }
.fp-directory-social--mail { background: #f2f3f4; color: #111; }
.fp-directory-social--wa { background: #2fbe54; }
.fp-directory-social--tg { background: #27A5E7; }
.fp-directory-social--ig { background: linear-gradient(135deg,#f9ce34 0%,#ee2a7b 52%,#6228d7 100%); }
.fp-directory-social--max { background: linear-gradient(180deg, #667085 0%, #505A6D 100%); }
.fp-directory-social--muted { background: #f2f3f4; color: #a4a9b1; }
.fp-directory-contact {
  min-width: 0;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #50555d;
}
.fp-directory-contact svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #9aa3b1;
}
.fp-directory-contact span {
  overflow: hidden;
  color: #4a4f56;
  font-size: 11px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-directory-contact--phone { justify-content: flex-end; }
.fp-preview-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 6px;
}
.fp-preview-actions .fp-text-button { font-size: 11px; }
@media (max-width: 1180px) {
  .fp-directory-row--top { grid-template-columns: 1fr; }
  .fp-directory-metrics { justify-content: flex-start; }
  .fp-directory-row--contacts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fp-directory-contact--phone { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .fp-directory-row--top,
  .fp-directory-row--tags,
  .fp-directory-row--contacts { padding-left: 14px; padding-right: 14px; }
  .fp-directory-brand { grid-template-columns: 48px minmax(0,1fr); }
  .fp-directory-avatar { width: 48px; height: 48px; border-radius: 12px; font-size: 15px; }
  .fp-directory-name strong { font-size: 18px; }
  .fp-directory-row--contacts { grid-template-columns: 1fr; }
}

/* FRINO Partners 5.4.19 — final normalized social icons */
.fp-directory-name strong {
  font-size: 22px;
}

.fp-directory-name span,
.fp-directory-status,
.fp-directory-score,
.fp-directory-rate,
.fp-directory-tag {
  font-size: 12px;
}

.fp-directory-score b,
.fp-directory-rate b {
  font-size: 13px;
}

.fp-directory-row--contacts {
  gap: 12px;
}

.fp-directory-socials {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

.fp-directory-social {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

/* Почта остаётся отдельной крупной кнопкой, как в референсе. */
.fp-directory-social--mail {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f2f3f4;
  color: #111;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

.fp-directory-social--mail svg {
  width: 22px;
  height: 22px;
}

/* Все четыре соцсети используют только новые PNG-файлы пользователя. */
.fp-directory-social--wa,
.fp-directory-social--tg,
.fp-directory-social--ig,
.fp-directory-social--max {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 34px 34px;
  box-shadow: none;
}

.fp-directory-social--wa { background-image: url("social-whatsapp-v5420.png"); }
.fp-directory-social--tg { background-image: url("social-telegram-v5420.png"); }
.fp-directory-social--ig { background-image: url("social-instagram-v5420.png"); }
.fp-directory-social--max { background-image: url("social-max-v5420.png"); }

.fp-directory-social--wa svg,
.fp-directory-social--tg svg,
.fp-directory-social--ig svg,
.fp-directory-social--max svg {
  display: none;
}

.fp-directory-contact span {
  font-size: 15px;
  line-height: 1.2;
}

.fp-directory-contact svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 760px) {
  .fp-directory-name strong { font-size: 19px; }
  .fp-directory-socials { gap: 10px; }
  .fp-directory-social--mail { width: 42px; height: 42px; }
  .fp-directory-social--wa,
  .fp-directory-social--tg,
  .fp-directory-social--ig,
  .fp-directory-social--max {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    background-size: 32px 32px;
  }
  .fp-directory-contact span { font-size: 14px; }
}


/* FRINO Partners 5.4.20 — exact user logos; new filenames bypass browser cache */
.fp-directory-socials {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
}
.fp-directory-social--wa,
.fp-directory-social--tg,
.fp-directory-social--ig,
.fp-directory-social--max {
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 36px 36px !important;
  box-shadow: none !important;
}
.fp-directory-social--wa { background-image: url("social-whatsapp-v5420.png") !important; }
.fp-directory-social--tg { background-image: url("social-telegram-v5420.png") !important; }
.fp-directory-social--ig { background-image: url("social-instagram-v5420.png") !important; }
.fp-directory-social--max { background-image: url("social-max-v5420.png") !important; }
.fp-directory-social--wa svg,
.fp-directory-social--tg svg,
.fp-directory-social--ig svg,
.fp-directory-social--max svg { display: none !important; }
@media (max-width: 760px) {
  .fp-directory-socials { gap: 9px !important; }
  .fp-directory-social--wa,
  .fp-directory-social--tg,
  .fp-directory-social--ig,
  .fp-directory-social--max {
    flex-basis: 34px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    background-size: 34px 34px !important;
  }
}


/* FRINO Partners 5.4.23 — маркировка Instagram / Meta */
.fp-meta-mark {
  color: #d13d3d;
  font-size: .72em;
  line-height: 1;
  vertical-align: super;
}
.fp-meta-disclaimer {
  margin: 8px 0 0;
  color: var(--fp-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}
.fp-meta-disclaimer sup {
  color: #d13d3d;
  font-size: .9em;
}


/* FRINO Partners 5.4.24 — мультивыбор и семантическая таксономия */
.fp-taxonomy-suggestion.is-selected {
  border-color: #9fbcf0 !important;
  background: #edf4ff !important;
}
.fp-taxonomy-suggestion.is-selected > b {
  color: #667085 !important;
}


/* FRINO Partners 5.4.27 — success UX + dynamic iframe height */
.fp-success__icon {
  width: 64px !important;
  height: 64px !important;
  margin: 0 auto 18px !important;
  border-radius: 17px !important;
  color: #fff !important;
  background: #73c948 !important;
  box-shadow: none !important;
  font-size: 34px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.fp-success__next {
  display: grid;
  gap: 5px;
  max-width: 650px;
  margin: 22px auto 0;
  padding: 16px 18px;
  border: 1px solid #e5e9ef;
  border-radius: 14px;
  color: var(--fp-text);
  background: #f8fafc;
  text-align: left;
}
.fp-success__next b {
  font-size: 13px;
  font-weight: 600;
}
.fp-success__next span {
  color: var(--fp-muted);
  font-size: 12px;
  line-height: 1.5;
}
.fp-success__invite {
  display: inline-flex;
  min-height: 46px;
  margin-top: 16px;
  padding: 10px 24px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #73c948;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.fp-success__invite:hover { background: #68ba40; }
.fp-success__invite-note {
  display: block;
  min-height: 17px;
  margin-top: 7px;
  color: var(--fp-muted);
  font-size: 11px;
}


/* FRINO Partners 5.4.28 — финальная иконка успеха + устойчивый UX по высоте */
.fp-success__icon {
  display: grid !important;
  width: 72px !important;
  height: 72px !important;
  margin: 0 auto 18px !important;
  place-items: center !important;
  border-radius: 22px !important;
  color: #fff !important;
  background: #73c948 !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
.fp-success__icon svg {
  display: block;
  width: 72px;
  height: 72px;
}
.fp-success__icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 5.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fp-success__application {
  display: grid;
  justify-items: center;
  gap: 7px;
}
.fp-success__copy {
  padding: 0;
  border: 0;
  color: var(--fp-blue-dark);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
}
.fp-success__copy:hover { text-decoration: underline; }
.fp-success__copy-note {
  min-height: 14px;
  color: var(--fp-muted);
  font-size: 10px;
}


/* 5.4.40: браузер не должен менять позицию страницы при смене высоты шага. */
html,
body,
.fp-shell,
.fp-main {
  overflow-anchor: none;
}




/* FRINO Partners 5.4.46 — финальный экран без лишнего зазора до футера */
.fp-submit-state,
.fp-success {
  box-sizing: border-box;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0 !important;
}

.fp-submit-state[hidden],
.fp-success[hidden] {
  display: none !important;
}

.fp-main.fp-terminal-state {
  padding-bottom: 0 !important;
}

@media (max-width: 760px) {
  .fp-submit-state,
  .fp-success {
    min-height: 220px;
  }
}
