/* ═══ Чат-бот «Битуах Леуми» — стили (единый файл для всех страниц) ═══ */
  .chat-wrapper {
    width: 100%;
    max-width: 760px;
    margin: 32px auto;
    font-family: 'Manrope', -apple-system, sans-serif;
  }

  #main-chat {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden; /* было visible — из-за этого окно росло бесконечно и "скролл к сообщению" уводил всю страницу вниз */
    box-shadow: 0 8px 40px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.07);
    background: #f0f2f5;
    height: 640px;     /* фиксированная высота окна чата */
    max-height: 80vh;  /* чтобы не вылезало за пределы экрана на маленьких мониторах */
  }

  #chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #1a3a6b 0%, #1e4d9b 100%);
    flex-shrink: 0;
    border-radius: 18px 18px 0 0;
  }

  .avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
  }

  .avatar-img {
    width: 44px; height: 44px;
    border-radius: 50% !important; /* !important — тема сайта иногда переопределяет radius у img */
    object-fit: cover;
    border: 2.5px solid #22c55e;
    box-sizing: border-box; /* рамка внутри 44×44, иначе картинка рендерится 49×49 и online-dot «уезжает» влево-вверх */
    display: block;
  }

  .avatar-fallback {
    width: 44px; height: 44px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #4a9eff, #1a73e8);
    color: #fff; font-size: 17px; font-weight: 600;
    display: none; align-items: center; justify-content: center;
    border: 2px solid rgba(255,255,255,0.25);
    box-sizing: border-box;
    position: absolute; top: 0; left: 0;
  }

  .online-dot {
    position: absolute; bottom: 0; right: 0;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2.5px solid #fff;
    animation: pulse-dot 2.5s ease-in-out infinite;
    z-index: 2;
  }

  @keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
    50%       { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
  }

  .header-text { flex: 1; }
  .header-name { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
  .header-sub  { color: rgba(255,255,255,0.6); font-size: 12px; margin-top: 2px; }

  .header-badge {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    font-size: 11px; font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    letter-spacing: 0.02em;
  }

  .header-live-stats {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
  }

  .hls-item {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.88);
    white-space: nowrap;
    letter-spacing: 0.01em;
  }

  .hls-success {
    background: rgba(34,197,94,0.18);
    border-color: rgba(34,197,94,0.35);
    color: #86efac;
  }

  @media (max-width: 480px) {
    .hls-item { font-size: 10px; padding: 2px 8px; }
  }

  #chat-messages {
    padding: 14px 14px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;      /* занимает всё место между шапкой и полем ввода */
    min-height: 0;       /* без этого flex-контейнер не даёт скроллу заработать */
    overflow-y: auto;    /* скролл теперь внутри окна чата, а не всей страницы */
    scroll-behavior: smooth;
  }

  #chat-messages::-webkit-scrollbar { width: 4px; }
  #chat-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.14); border-radius: 2px; }

  .msg-row {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    animation: msg-in 0.28s cubic-bezier(0.22,0.61,0.36,1) both;
  }

  @keyframes msg-in {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  .msg-row.bot  { align-self: flex-start; max-width: 95%; }
  .msg-row.user { align-self: flex-end;   max-width: 80%; flex-direction: row-reverse; }

  /* Дополнительный отступ именно в точке смены говорящего — между
     сообщением менеджера и ответом клиента (и наоборот). Между
     несколькими сообщениями подряд от одного и того же отправителя
     (например: приветствие → вопрос → кнопки) отступ остаётся тесным
     (см. gap: 4px на #chat-messages выше) — они визуально одна реплика. */
  .msg-row.bot + .msg-row.user,
  .msg-row.user + .msg-row.bot {
    margin-top: 14px;
  }

  .msg-av-wrap { position: relative; flex-shrink: 0; }

  .msg-av {
    width: 30px; height: 30px;
    border-radius: 50% !important; object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #22c55e;
    display: block;
  }

  .msg-av-fallback {
    width: 30px; height: 30px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #4a9eff, #1a73e8);
    color: #fff; font-size: 12px; font-weight: 600;
    display: none; align-items: center; justify-content: center;
    flex-shrink: 0;
  }

  .msg-av-dot {
    position: absolute; bottom: 0; right: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    border: 1.5px solid #f0f2f5;
    z-index: 2;
  }

  .msg-bubble {
    padding: 10px 14px 20px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.58;
    word-break: break-word;
    position: relative;
  }

  .msg-row.bot .msg-bubble {
    background: #fff; color: #1a1a2e;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  }

  .msg-row.user .msg-bubble {
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(26,115,232,0.28);
  }

  .msg-meta {
    position: absolute;
    bottom: 5px; right: 10px;
    font-size: 11px; color: rgba(0,0,0,0.3);
    white-space: nowrap;
    line-height: 1;
  }

  .msg-row.user .msg-meta { color: rgba(255,255,255,0.5); }
  .msg-seen { letter-spacing: -1px; }

  .date-divider {
    text-align: center; font-size: 12px;
    color: rgba(0,0,0,0.38);
    background: rgba(0,0,0,0.055);
    padding: 3px 12px; border-radius: 10px;
    margin: 4px auto 6px; width: fit-content;
  }

  /* Typing */
  .typing-wrap {
    display: flex; align-items: center; gap: 7px;
    padding: 2px 14px 10px; flex-shrink: 0;
  }

  .typing-wrap.hidden { display: none; }

  .typing-av-img {
    width: 30px; height: 30px;
    border-radius: 50% !important; object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.8);
  }

  .typing-av-fallback {
    width: 30px; height: 30px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #4a9eff, #1a73e8);
    color: #fff; font-size: 12px; font-weight: 600;
    display: none; align-items: center; justify-content: center;
    flex-shrink: 0;
  }

  .typing-bubble {
    display: flex; align-items: center; gap: 9px;
    background: #fff;
    padding: 9px 14px;
    border-radius: 16px; border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  }

  .typing-label { font-size: 13px; color: rgba(0,0,0,0.4); font-style: italic; white-space: nowrap; }

  /* Voice recording indicator */
  .voice-recording-label {
    font-size: 13px; color: rgba(0,0,0,0.4); font-style: italic; white-space: nowrap;
  }

  .voice-recording-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
    animation: rec-blink 1.1s ease-in-out infinite;
  }

  @keyframes rec-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.15; }
  }

  /* Voice message bubble */
  .voice-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px 14px 22px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    min-width: 220px;
    max-width: 100%;
    position: relative;
  }

  .voice-play-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(26,115,232,0.35);
    transition: transform 0.12s;
  }

  .voice-play-btn:hover { transform: scale(1.08); }
  .voice-play-btn:active { transform: scale(0.94); }

  .voice-play-btn svg { margin-left: 2px; }

  .voice-waveform {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2.5px;
    height: 28px;
    overflow: hidden;
  }

  .voice-waveform span {
    display: inline-block;
    width: 3px;
    border-radius: 2px;
    background: #d1d5db;
    flex-shrink: 0;
    transition: background 0.15s;
  }

  .voice-waveform span.played { background: #1a73e8; }

  .voice-duration {
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .typing-dots { display: flex; gap: 4px; align-items: center; }

  .typing-dots span {
    width: 7px; height: 7px;
    background: #b0b4be; border-radius: 50%;
    display: inline-block;
    animation: bounce-dot 1.7s ease-in-out infinite;
  }

  .typing-dots span:nth-child(2) { animation-delay: 0.24s; }
  .typing-dots span:nth-child(3) { animation-delay: 0.48s; }

  @keyframes bounce-dot {
    0%, 55%, 100% { transform: translateY(0); opacity: 0.3; }
    27% { transform: translateY(-6px); opacity: 1; }
  }

  /* Loading */
  .loading-bubble {
    background: #fff; color: #555; font-style: normal; font-size: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-radius: 16px; border-bottom-left-radius: 4px;
  }

  .loading-spinner {
    width: 14px; height: 14px;
    border: 2px solid rgba(26,115,232,0.18);
    border-top-color: #1a73e8; border-radius: 50%;
    animation: spin 0.75s linear infinite; flex-shrink: 0;
  }

  #loading-text { transition: opacity 0.22s; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* Input */
  #chat-input-row {
    display: flex; align-items: stretch; flex-direction: column; gap: 8px;
    padding: 12px 14px;
    background: #fff; border-top: 1px solid rgba(0,0,0,0.055);
    flex-shrink: 0;
    max-height: 260px;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.4s ease, padding 0.4s ease;
    opacity: 1;
    border-radius: 0 0 18px 18px;
  }

  #chat-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
  }

  #chat-input-row.hidden-input {
    max-height: 0; opacity: 0; padding: 0;
    pointer-events: none; border: none;
  }

  #chat-input {
    flex: 1; padding: 11px 44px 11px 16px;
    font-size: 15px; font-family: inherit;
    border: 1.5px solid #e0e4ea; border-radius: 16px;
    outline: none; background: #f8f9fb; color: #1a1a2e;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
    resize: none;
    overflow-y: hidden;
    min-height: 72px;
    max-height: 140px;
    line-height: 1.5;
    display: block;
  }

  #chat-input::placeholder { color: #aab; }
  #chat-input:focus { border-color: #1a73e8; background: #fff; }
  #chat-input:disabled { background: #f3f4f6; border-color: #e0e4ea; cursor: not-allowed; }

  #chat-send {
    height: 44px; padding: 0 18px; border-radius: 10px;
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    align-self: flex-end;
    font-family: inherit; font-size: 15px; font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(26,115,232,0.32);
    transition: transform 0.15s, box-shadow 0.15s;
  }

  #chat-send:hover:not(:disabled) { transform: scale(1.07); box-shadow: 0 4px 14px rgba(26,115,232,0.42); }
  #chat-send:active:not(:disabled) { transform: scale(0.94); }
  #chat-send:disabled { background: #d1d5db; cursor: not-allowed; box-shadow: none; }

  /* Phone input mode: fixed +972 prefix on the left */
  #chat-input-wrap.phone-wrap { align-items: stretch; }
  #phone-prefix {
    display: none;
    align-items: center;
    padding: 0 10px 0 14px;
    font-size: 15px; font-weight: 700;
    color: #1a1a2e;
    background: #f8f9fb;
    border: 1.5px solid #e0e4ea;
    border-right: none;
    border-radius: 16px 0 0 16px;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
    transition: border-color 0.2s, background 0.2s;
  }
  #chat-input-wrap.phone-wrap #phone-prefix { display: flex; }
  #chat-input-wrap.phone-wrap #chat-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    height: 46px !important;
    min-height: 46px;
    max-height: 46px;
    box-sizing: border-box; /* иначе бордер добавляется поверх 46px (49px общей высоты) и контур рвётся на стыке с #phone-prefix */
    line-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 8px;
    padding-right: 44px;
    overflow: hidden;
    white-space: nowrap;
  }
  #chat-input-wrap.phone-wrap #phone-prefix {
    height: 46px;
    box-sizing: border-box;
  }
  #chat-input-wrap.phone-wrap.focused #phone-prefix { border-color: #1a73e8; background: #fff; }

  /* Progress card */
  .result-card {
    background: #fff;
    border-radius: 14px; border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    padding: 14px 16px;
    font-size: 14px; color: #1a1a2e;
    min-width: 230px; max-width: 100%;
  }

  .result-title {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: #9ca3af; margin-bottom: 13px;
  }

  .diag-row { margin-bottom: 12px; }

  .diag-label {
    font-size: 13px; color: #374151;
    margin-bottom: 5px;
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 6px;
  }

  .diag-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 76%; }
  .diag-pct  { font-weight: 600; flex-shrink: 0; }

  .bar-track {
    height: 8px; background: #f0f2f5;
    border-radius: 99px; overflow: hidden;
  }

  .bar-fill {
    height: 100%; border-radius: 99px;
    width: 0%;
    transition: width 1.15s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .total-row {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid #f0f2f5;
  }

  .total-label {
    font-size: 14px; font-weight: 600; color: #111827;
    margin-bottom: 7px;
    display: flex; justify-content: space-between; align-items: baseline;
  }

  .total-pct { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
  .bar-track.lg { height: 13px; }

  .result-note { margin-top: 9px; font-size: 12px; color: #b0b4be; text-align: right; }

  .cta-text {
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a2e;
  }

  .cta-highlight {
    display: inline-block;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
  }

  .cta-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 11px 20px;
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(26,115,232,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
  }

  .cta-btn:hover {
    transform: scale(1.03);
    box-shadow: none;
  }

  /* Quick-reply choice buttons */
  .choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  .choice-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid #1a73e8;
    background: #fff !important;
    color: #1a73e8 !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s, opacity 0.2s;
    white-space: normal;    /* было nowrap — длинные подписи не влезали на узких экранах */
    text-align: left;       /* было center — при переносе на 2–3 строки центрирование выглядело неровно */
    max-width: 100%;
    word-break: break-word;
    box-sizing: border-box;
  }

  .choice-btn:hover { background: #1a73e8 !important; color: #fff !important; }

  /* Привлекающая внимание главная кнопка (CTA) — подрагивает + яркая тень */
  .choice-btn.pulse {
    background: #1a73e8 !important;
    color: #fff !important;
    border-color: #1a73e8;
    box-shadow: 0 4px 16px rgba(26,115,232,.45);
    animation: ctaWiggle 1.8s ease-in-out infinite;
    transform-origin: center;
  }
  .choice-btn.pulse:hover {
    background: #1559c0 !important;
    box-shadow: 0 6px 22px rgba(26,115,232,.6);
  }
  @keyframes ctaWiggle {
    0%, 100%   { transform: scale(1) rotate(0deg); box-shadow: 0 4px 16px rgba(26,115,232,.45); }
    8%         { transform: scale(1.05) rotate(-1.4deg); box-shadow: 0 7px 26px rgba(26,115,232,.7), 0 0 0 6px rgba(26,115,232,.12); }
    16%        { transform: scale(1.05) rotate(1.4deg); box-shadow: 0 7px 26px rgba(26,115,232,.7), 0 0 0 6px rgba(26,115,232,.12); }
    24%        { transform: scale(1.04) rotate(-1deg); }
    32%        { transform: scale(1) rotate(0deg); box-shadow: 0 4px 16px rgba(26,115,232,.45); }
  }
  @media (prefers-reduced-motion: reduce) {
    .choice-btn.pulse { animation: none; }
  }

  /* Яркий стикер-приветствие в первом сообщении */
  .chat-sticker {
    display: inline-flex; align-items: center; gap: 7px;
    background: linear-gradient(135deg, #1a73e8, #34a853);
    color: #fff; font-weight: 700; font-size: 14px;
    padding: 7px 14px; border-radius: 16px;
    box-shadow: 0 3px 12px rgba(26,115,232,.4);
    margin-bottom: 4px;
    animation: stickerPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  }
  .chat-sticker .chat-sticker-emoji { font-size: 18px; line-height: 1; }

  /* Спокойная плашка про анонимность/безопасность (на шаге ввода диагнозов) */
  .chat-privacy {
    display: flex; align-items: flex-start; gap: 8px;
    background: #f0f7f2;
    border: 1px solid #cfe6d8;
    border-radius: 10px;
    padding: 9px 12px;
    margin-top: 4px;
    font-size: 12.5px; line-height: 1.45; color: #2f6b46;
  }
  .chat-privacy .chat-privacy-icon { font-size: 15px; line-height: 1.3; flex-shrink: 0; }
  .chat-privacy b { color: #1f5235; font-weight: 700; }
  @keyframes stickerPop {
    0%   { transform: scale(0.4) rotate(-8deg); opacity: 0; }
    70%  { transform: scale(1.08) rotate(2deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
  }

  /* Раскрывающийся блок «Почему это важно?» */
  .why-toggle {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 8px;
    color: #1a73e8; font-size: 13px; font-weight: 600;
    cursor: pointer; user-select: none;
    border-bottom: 1px dashed rgba(26,115,232,.5);
    width: fit-content;
  }
  .why-toggle .why-arrow { transition: transform 0.25s; font-size: 11px; }
  .why-toggle.open .why-arrow { transform: rotate(180deg); }
  .why-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, margin-top 0.35s ease;
    margin-top: 0;
  }
  .why-body.open { max-height: 700px; margin-top: 8px; }
  .why-body-inner {
    background: #f0f6ff;
    border-left: 3px solid #1a73e8;
    border-radius: 8px;
    padding: 10px 13px;
    font-size: 13px; line-height: 1.5; color: #3a4a5e;
  }

  .choice-btn.chosen {
    background: #1a73e8 !important;
    color: #fff !important;
    pointer-events: none;
  }

  .choice-btn.unchosen {
    opacity: 0.3;
    pointer-events: none;
  }

  .choice-btn.danger {
    border-color: #ef4444;
    color: #ef4444 !important;
    background: #fff !important;
  }

  .choice-btn.danger:hover { background: #ef4444 !important; color: #fff !important; }

  /* Выбранный «опасный» вариант: белый текст на красном фоне (не красный текст) */
  .choice-btn.danger.chosen {
    background: #ef4444 !important;
    border-color: #ef4444;
    color: #fff !important;
  }

  /* ─── Similar Cases Cards ─── */
  .sim-cases-header {
    font-size: 13px; font-weight: 700;
    color: #1E3A5F; letter-spacing: -0.01em;
    margin-bottom: 10px; padding: 4px 2px 0;
  }

  .sim-card {
    background: #fff;
    border-radius: 12px; overflow: hidden;
    border: 1px solid #E8EDF2;
    box-shadow: 0 2px 10px rgba(30,58,95,.09);
    margin-bottom: 10px;
    animation: msg-in 0.32s cubic-bezier(0.22,0.61,0.36,1) both;
  }
  .sim-card:last-child { margin-bottom: 0; }

  .sim-card-top {
    background: #ECFDF5;
    border-bottom: 1px solid #A7F3D0;
    padding: 10px 14px;
  }

  .sim-amounts-row {
    display: flex; align-items: center;
    justify-content: space-between; gap: 10px;
  }

  .sim-annual { flex: 1; }

  .sim-amount-year {
    font-size: clamp(17px, 2.6vh, 24px); font-weight: 800;
    color: #16A34A; line-height: 1.15;
  }

  .sim-amount-month {
    font-size: clamp(13px, 1.8vh, 16px); color: #4A5568; margin-top: 2px;
  }

  .sim-lump {
    flex-shrink: 0; text-align: right;
    padding-left: 10px; border-left: 1px solid #A7F3D0;
  }

  .sim-lump-amount {
    font-size: clamp(17px, 2.6vh, 24px); font-weight: 800;
    color: #1D4ED8; line-height: 1.15;
  }

  .sim-lump-label {
    font-size: clamp(11px, 1.4vh, 13px); color: #4A5568; margin-top: 2px;
  }

  .sim-card-body { display: flex; align-items: stretch; }

  .sim-card-left {
    flex: 1; padding: 12px 14px; min-width: 0;
  }

  .sim-case-num {
    font-size: 11px; color: #9ca3af;
    margin-bottom: 3px; letter-spacing: 0.03em;
  }

  .sim-case-name {
    font-size: 17px; font-weight: 700;
    color: #1E3A5F; margin-bottom: 4px;
  }

  .sim-case-diag {
    font-size: 14px; color: #4A5568; line-height: 1.45;
  }

  .sim-case-desc {
    font-size: 16px; color: #4A5568; line-height: 1.6;
    margin-top: 8px; border-top: 1px solid #E8EDF2; padding-top: 8px;
  }

  .sim-card-scan {
    flex: 0 0 96px;
    padding: 10px;
    background: #F5F7FA;
    border-left: 1px solid #E8EDF2;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 5px;
  }

  .sim-scan-frame {
    width: 100%; aspect-ratio: 1 / 1.414;
    background: #fff;
    border: 1px solid #E8EDF2; border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(30,58,95,.08);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
  }

  .sim-scan-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(30,58,95,.14);
  }

  .sim-scan-frame img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center; display: block;
  }

  .sim-scan-label {
    font-size: 10.5px; color: #4A5568;
    text-align: center; line-height: 1.3; letter-spacing: .02em;
  }

  @media (max-width: 520px) {
    .sim-card-body { flex-direction: column; }
    .sim-card-left { border-bottom: 1px solid #E8EDF2; }
    .sim-card-scan {
      flex: none; width: 100%;
      border-left: none; border-top: 1px solid #E8EDF2;
      padding: 14px 18px 18px;
    }
    .sim-scan-frame { max-width: 160px; margin: 0 auto; }
  }

/* ═══ Роутер услуг + «лёгкие» ветки (chatbot-router.js) ═══ */

/* Кнопка перехода в WhatsApp — фирменный зелёный, отдельно от .cta-btn */
.cta-btn.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 4px 14px rgba(37,211,102,0.4);
}
.cta-btn.whatsapp-btn:hover {
  box-shadow: none;
}
