    /* ===== Модальное окно логина ===== */

    .login-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(5px);
      z-index: 10000;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .login-modal.visible {
      display: flex;
    }

    .login-modal-content {
      background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
      border-radius: 20px;
      padding: 40px;
      max-width: 500px;
      width: 100%;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .login-modal-title {
      font-size: 1.8rem;
      font-weight: 700;
      margin-bottom: 30px;
      text-align: center;
      color: #ffffff;
    }

    .login-form {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .login-input {
      width: 100%;
      padding: 15px 20px;
      font-size: 1rem;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.2);
      color: #ffffff;
      outline: none;
      transition: all 0.3s ease;
    }

    .login-input::placeholder {
      color: rgba(255, 255, 255, 0.7);
    }

    .login-input:focus {
      border-color: rgba(255, 255, 255, 0.6);
      background: rgba(255, 255, 255, 0.25);
    }

    .login-button {
      width: 100%;
      padding: 15px 20px;
      font-size: 1.1rem;
      font-weight: 600;
      border: none;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.9);
      color: #667eea;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .login-button:hover {
      background: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .login-button:active {
      transform: translateY(0);
    }

    .login-button:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    .login-error {
      color: #ff6b6b;
      font-size: 0.9rem;
      text-align: center;
      margin-top: 10px;
      padding: 10px;
      background: rgba(255, 107, 107, 0.2);
      border-radius: 8px;
      display: none;
    }

    .login-error.visible {
      display: block;
    }

    @media (max-width: 768px) {
      body {
        padding-top: calc(26px + env(safe-area-inset-top, 0px));
      }

      .container {
        padding: 20px;
      }

      .funnels-grid {
        grid-template-columns: 1fr;
        gap: 15px;
      }

      .funnel-image {
        height: 180px;
      }


      .step-image {
        width: 55px;
        height: 55px;
      }

      .step-title {
        font-size: 0.95rem;
        height: 2.6em; /* Ровно 2 строки */
      }

      .step-status {
        font-size: 0.8rem;
      }

      .success-badge {
        width: 24px;
        height: 24px;
        font-size: 14px;
        line-height: 1;
        top: 6px;
        right: 6px;
      }

      .failed-badge {
        width: 24px;
        height: 24px;
        font-size: 16px;
        line-height: 1;
        top: 6px;
        right: 6px;
      }

      .step-card.clickable::after {
        font-size: 28px;
        right: 12px;
      }

      .step-card.clickable:hover::after {
        right: 8px;
      }

      .step-card.clickable .step-content {
        padding-right: 35px;
      }

      .login-modal-content {
        padding: 30px;
      }

      .login-modal-title {
        font-size: 1.5rem;
      }
    }
