/* CashCheck — вёрстка по референсу (центральная карточка + зелёный блок + двухколоночный квиз) */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

  *, *::before, *::after { box-sizing: border-box; }

  :root {
    --ink: #12243b;
    --ink-soft: #405269;
    --muted: #718096;
    --paper: #edf2ef;
    --card: #ffffff;
    --line: #d9e2de;
    --green: #155c46;
    --green-2: #0faa63;
    --green-lite: #e8f5ee;
    --shadow: 0 18px 45px -28px rgba(18, 36, 59, 0.42);
    --plex: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  }

  html { -webkit-text-size-adjust: 100%; }

  body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background:
      radial-gradient(circle at 10% 0%, rgba(15, 170, 99, 0.09), transparent 32%),
      linear-gradient(180deg, #f4f7f5 0%, var(--paper) 100%) fixed;
    background-color: var(--paper);
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  [hidden] { display: none !important; }

  /* как у референса: заголовки набраны IBM Plex Sans (шрифт виджета), остальное — системным шрифтом */
  h1, h2, h3, h4, h5, h6 { font-family: var(--plex); }

  button,
  input {
    font: inherit;
  }

  button {
    -webkit-tap-highlight-color: transparent;
  }

  .c-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  .c-wrap {
    width: min(1040px, 100%);
    margin: 0 auto;
    padding: 0 12px;
  }

  .c-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: calc(16px + env(safe-area-inset-top)) 0 10px;
  }

  .c-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #155c46, #0faa63);
    box-shadow: 0 10px 20px -12px rgba(21, 92, 70, 0.8);
  }

  .c-logo svg {
    width: 25px;
    height: 25px;
  }

  /* Вместо телефона в шапке — гео-охват */
  .c-geo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid rgba(21, 92, 70, 0.16);
    border-radius: 99px;
    background: var(--green-lite);
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }

  .c-geo svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
  }

  .c-stage {
    flex: 1;
    padding: 0 0 38px;
  }

  .c-screen {
    display: none;
  }

  .c-screen.is-active {
    display: block;
    animation: ccq-rise 0.28s ease both;
  }

  @keyframes ccq-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }

  .c-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  /* Первый экран */
  .c-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(345px, 0.88fr);
    gap: 34px;
    padding: 42px;
    overflow: hidden;
    position: relative;
    align-items: center;
  }

  .c-hero::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    right: -220px;
    top: -220px;
    border: 42px solid rgba(15, 170, 99, 0.06);
    border-radius: 50%;
    pointer-events: none;
  }

  .c-eyebrow {
    margin-bottom: 26px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .c-title {
    max-width: 640px;
    margin: 0 0 24px;
    color: var(--ink) !important;
    -webkit-text-fill-color: var(--ink) !important;
    font-size: clamp(32px, 4.1vw, 50px);
    line-height: 1.02;
    letter-spacing: -0.01em;
    font-weight: 850;
  }

  .c-title span {
    display: block;
    color: var(--green) !important;
    -webkit-text-fill-color: var(--green) !important;
  }

  .c-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
  }

  .c-fact {
    min-width: 0;
    padding: 12px 10px;
    border-right: 1px solid var(--line);
  }

  .c-fact:last-child {
    border-right: 0;
  }

  .c-fact b {
    display: block;
    font-size: 14.5px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .c-fact small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
  }

  .c-btn {
    width: auto;
    min-height: 54px;
    border: 0;
    border-radius: 13px;
    padding: 15px 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #19c876 0%, #0da55d 100%);
    box-shadow: 0 13px 28px -15px rgba(13, 165, 93, 0.9);
    font-size: 16px;
    font-weight: 800;
    transition: transform 0.12s ease, filter 0.15s ease;
  }

  .c-btn:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
  }

  .c-btn:active {
    transform: none;
  }

  .c-btn:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
  }

  .c-btn:focus-visible {
    outline: 3px solid rgba(15, 170, 99, 0.35);
    outline-offset: 2px;
  }

  .c-note {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
  }

  /* Повтор кнопки после условий — только в одноколоночной раскладке */
  .c-cta-bottom {
    display: none;
    margin-top: 18px;
    padding: 18px 16px;
    border: 1px solid rgba(21, 92, 70, 0.16);
    border-radius: 15px;
    background: linear-gradient(180deg, #f2faf6, #e9f5ee);
    text-align: center;
  }

  .c-cta-bottom p {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.5;
  }

  /* Яркая панель «Что важно знать» */
  .c-benefits {
    align-self: center;
    padding: 26px 24px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(158deg, #0f7a52 0%, #12a768 58%, #17c07a 100%);
    box-shadow: 0 22px 42px -26px rgba(15, 122, 82, 0.85);
  }

  .c-benefits h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: #fff;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    font-weight: 850;
  }

  .c-benefits h2::before {
    content: "";
    width: 4px;
    height: 22px;
    flex: 0 0 4px;
    border-radius: 99px;
    background: #d5ffe9;
  }

  .c-benefits ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
  }

  .c-benefits li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 11px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
  }

  .c-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #0f7a52;
    background: #fff;
    font-size: 13px;
    font-weight: 900;
  }

  /* Вопросы */
  .c-q-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
    align-items: start;
  }

  .c-qcard {
    padding: 32px;
  }

  .c-meter {
    display: flex;
    align-items: center;
    gap: 13px;
  }

  .c-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .c-track {
    height: 6px;
    flex: 1;
    overflow: hidden;
    border-radius: 99px;
    background: #e4eae7;
  }

  .c-fill {
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #155c46, #0faa63);
    transition: width 0.3s ease;
  }

  .c-question {
    margin: 21px 0 20px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.16;
    letter-spacing: -0.025em;
  }

  .c-options {
    display: grid;
    gap: 10px;
  }

  .c-option {
    position: relative;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    font-size: 15.5px;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .c-option:hover {
    border-color: rgba(21, 92, 70, 0.55);
    background: #fcfefd;
  }

  .c-option:active {
    transform: scale(0.995);
  }

  .c-option:focus-within {
    outline: 3px solid rgba(15, 170, 99, 0.3);
    outline-offset: 2px;
  }

  .c-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .c-radio {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: grid;
    place-items: center;
    border: 2px solid #cdd8d3;
    border-radius: 50%;
  }

  .c-option.is-selected {
    border-color: var(--green);
    background: var(--green-lite);
  }

  .c-option.is-selected .c-radio {
    border: 6px solid var(--green);
  }

  .c-back {
    margin-top: 18px;
    border: 0;
    padding: 8px 2px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 14px;
  }

  .c-side {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
  }

  .c-adviser,
  .c-profile {
    padding: 20px;
  }

  .c-adviser-head {
    padding-left: 11px;
    border-left: 3px solid var(--green);
  }

  .c-adviser-head b {
    display: block;
    font-size: 14px;
  }

  .c-adviser-head small {
    color: var(--muted);
    font-size: 11.5px;
  }

  .c-adviser-text {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 11px;
    color: var(--ink-soft);
    background: var(--green-lite);
    font-size: 13.5px;
  }

  .c-profile-title {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .c-profile-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dotted var(--line);
    font-size: 12.5px;
  }

  .c-profile-row:last-child {
    border-bottom: 0;
  }

  .c-profile-row span:last-child {
    max-width: 155px;
    color: var(--green);
    font-weight: 700;
    text-align: right;
  }

  /* Планшеты */
  @media (max-width: 920px) {
    .c-hero {
      grid-template-columns: 1fr;
      gap: 24px;
      padding: 30px;
    }

    .c-q-layout {
      grid-template-columns: 1fr;
    }

    .c-side {
      position: static;
      grid-template-columns: 1fr 1fr;
      order: -1;
    }

    .c-cta-bottom {
      display: block;
    }

    .c-cta-bottom .c-btn {
      width: 100%;
    }
  }

  /* Мобильные */
  @media (max-width: 620px) {
    .c-wrap {
      padding: 0 12px;
    }

    .c-hero {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .c-hero::after {
      display: none;
    }

    .c-hero > div:first-child {
      display: contents;
    }

    /* Кнопка стоит в потоке — до блока «Что важно знать», дубль внизу */
    .c-eyebrow { order: 1; }
    .c-title { order: 2; }
    .c-facts { order: 3; }
    .c-cta-zone { order: 4; }
    .c-benefits { order: 5; }
    .c-cta-bottom { order: 7; }

    .c-top {
      padding-top: calc(10px + env(safe-area-inset-top));
      padding-bottom: 8px;
    }

    .c-geo {
      padding: 6px 11px;
      font-size: 12px;
    }

    .c-stage {
      padding-top: 3px;
      padding-bottom: 18px;
    }

    .c-hero,
    .c-qcard {
      padding: 20px 16px;
      border-radius: 17px;
    }

    .c-eyebrow {
      margin-bottom: 12px;
      font-size: 11px;
    }

    .c-title {
      margin-bottom: 16px;
      font-size: clamp(27px, 7.6vw, 34px);
      line-height: 1.07;
    }

    .c-facts {
      grid-template-columns: 1fr 1fr;
      margin-bottom: 16px;
    }

    .c-fact {
      border-bottom: 1px solid var(--line);
    }

    .c-fact:nth-child(2n) {
      border-right: 0;
    }

    .c-fact:nth-last-child(-n + 2) {
      border-bottom: 0;
    }

    .c-benefits {
      margin-top: 18px;
      padding: 18px 16px;
      border-radius: 15px;
    }

    .c-benefits h2 {
      margin-bottom: 12px;
      font-size: 18px;
    }

    .c-benefits li {
      padding: 10px 11px;
      font-size: 13.5px;
    }

    .c-btn {
      width: 100%;
      min-height: 56px;
      font-size: 16.5px;
    }

    .c-note {
      margin-top: 9px;
      font-size: 12px;
    }

    .c-q-layout {
      gap: 10px;
    }

    .c-side {
      display: block;
      order: -1;
    }

    /* На телефоне подсказка специалиста сверху и короче. */
    .c-adviser {
      padding: 12px 14px;
      border-radius: 14px;
    }

    .c-adviser-head {
      display: none;
    }

    .c-adviser-text {
      margin: 0;
      padding: 0;
      background: transparent;
      color: var(--ink-soft);
      font-size: 12.5px;
      line-height: 1.4;
    }

    .c-profile {
      display: none;
    }

    .c-meter {
      gap: 9px;
    }

    .c-count {
      font-size: 10.5px;
    }

    .c-question {
      margin: 16px 0 15px;
      font-size: clamp(21px, 6.6vw, 26px);
    }

    .c-option {
      min-height: 56px;
      padding: 13px;
      font-size: 15px;
    }

    .c-back {
      margin-top: 14px;
      padding: 10px 2px;
    }
  }

  @media (max-width: 380px) {
    .c-hero,
    .c-qcard {
      padding-left: 13px;
      padding-right: 13px;
    }

    .c-fact b {
      font-size: 13.5px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

  /* ---------- Логотип CashCheck (свой, текстовый) ---------- */
  .c-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
  }
  .c-brand b { color: var(--green); font-weight: 800; }
  .c-logo svg { width: 24px; height: 24px; }

  /* Шапка на экране контактов — белая полоса, как у референса */
  .c-topbar { position: relative; z-index: 2; transition: background 0.2s ease; }
  body.is-native .c-topbar {
    background: #fff;
    box-shadow: 0 8px 24px -18px rgba(18, 36, 59, 0.5);
    margin-bottom: 26px;
  }

  .c-back.is-hidden { visibility: hidden; }
  .c-question { font-weight: 500; color: #2d2d2d; }
  .c-option { width: 100%; text-align: left; color: var(--ink); font-family: inherit; line-height: 1.35; }

  /* ---------- Шаг 6: контакты (две колонки) ---------- */
  .c-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
    gap: 40px;
    align-items: center;
    min-height: min(690px, calc(100vh - 140px));
    padding: 20px 0 30px;
    font-family: var(--plex);
    color: #2b2b2b;
  }
  .c-contact__left { padding-left: 34px; }
  .c-contact__left h2 {
    margin: 0 0 50px;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
  }
  .c-contact__left p { margin: 0 0 14px; font-size: 19px; line-height: 1.5; }
  .c-contact__left p.c-contact__hint {
    font-size: 15px;
    color: var(--green);
    font-weight: 500;
  }
  .c-form {
    padding: 44px 54px 40px;
    border-radius: 24px;
    background: #dfe7e2;
  }
  .c-form__meter { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
  .c-form__meter .c-count { color: var(--muted); font-family: inherit; }
  .c-form__title {
    margin: 0 0 26px;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.2;
  }
  .c-field { display: block; margin-bottom: 22px; }
  .c-field span { display: block; margin-bottom: 6px; font-size: 16px; }
  .c-field input {
    width: 100%;
    height: 68px;
    padding: 0 20px;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #fafafa;
    color: #222;
    font: inherit;
    font-size: 20px;
    outline: none;
    transition: border-color 0.15s ease;
  }
  .c-field input:focus { border-color: #9ed8b8; }
  .c-field input.is-invalid { border-color: #e0715d; }
  .c-field input::placeholder { color: #a7adb0; }
  .c-submit {
    width: 100%;
    height: 68px;
    border: 0;
    border-radius: 6px;
    background: #1fa463;
    color: #fff;
    font: inherit;
    font-size: 21px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
  }
  .c-submit:hover { background: #17924f; }
  .c-submit:disabled { opacity: 0.6; cursor: wait; }
  .c-error {
    margin: 12px 0 0;
    padding: 9px 12px;
    border-radius: 6px;
    background: #fdf1ee;
    color: #8f4032;
    font-size: 14px;
  }
  .consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.6;
    color: #2b2b2b;
    cursor: pointer;
  }
  .consent input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 2px 0 0;
    accent-color: #1fa463;
    cursor: pointer;
  }
  .consent input.is-invalid { outline: 2px solid #e0715d; outline-offset: 2px; }
  .consent a { color: #1fa463; text-decoration: none; }
  .consent a:hover { text-decoration: underline; }
  .c-form .c-back { margin-top: 12px; }

  /* ---------- Юридический подвал ---------- */
  .c-footer { padding: 6px 0 calc(26px + env(safe-area-inset-bottom)); }
  .legal-footer {
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
  }
  .legal-footer p { margin: 0 0 10px; }
  .legal-footer p:last-child { margin-bottom: 0; }
  .legal-footer__services { color: var(--ink-soft); font-weight: 600; }
  .legal-footer a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
  .legal-footer__requisites { color: var(--ink-soft); }
  .c-footer__brand { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

  /* ---------- Страница «Спасибо» ---------- */
  .c-thanks {
    display: grid;
    place-items: center;
    min-height: min(640px, calc(100vh - 220px));
    padding: 60px 24px;
    border: 1px solid #e6ebe8;
    background: #f4f6f4;
    font-family: var(--plex);
    color: #2b2b2b;
    text-align: center;
  }
  .c-thanks svg { width: 50px; height: 50px; margin-bottom: 40px; fill: none; color: #1fa463; }
  .c-thanks h1 { margin: 0 0 24px; font-size: 36px; font-weight: 500; line-height: 1.2; }
  .c-thanks p { max-width: 520px; margin: 0 auto 16px; font-size: 17px; line-height: 1.7; }
  .c-thanks .c-thanks__home { display: inline-block; margin-top: 18px; color: var(--green); font-size: 15px; }

  @media (max-width: 920px) {
    .c-contact { grid-template-columns: 1fr; gap: 22px; min-height: 0; }
    .c-contact__left { padding-left: 0; }
    .c-contact__left h2 { margin-bottom: 14px; }
  }

  @media (max-width: 620px) {
    .c-brand { font-size: 16px; gap: 8px; }
    body.is-native .c-topbar { margin-bottom: 14px; }
    .c-contact { padding: 4px 0 18px; gap: 14px; }
    .c-contact__left h2 { font-size: 26px; margin-bottom: 8px; }
    .c-contact__left p { font-size: 15.5px; margin-bottom: 6px; }
    .c-contact__left p.c-contact__hint { font-size: 14px; }
    .c-form { padding: 22px 16px 20px; border-radius: 17px; }
    .c-form__title { font-size: 24px; margin-bottom: 16px; }
    .c-field { margin-bottom: 14px; }
    .c-field span { font-size: 14.5px; }
    .c-field input { height: 56px; font-size: 17px; padding: 0 14px; }
    .c-submit { height: 58px; font-size: 18px; }
    .consent { font-size: 13px; margin-top: 16px; }
    .legal-footer { padding: 16px 14px; border-radius: 17px; font-size: 12.5px; }
    .c-thanks { padding: 44px 16px; min-height: 0; }
    .c-thanks svg { margin-bottom: 26px; }
    .c-thanks h1 { font-size: 28px; }
    .c-thanks p { font-size: 15.5px; }
  }
